« Back to channel list

#RubyOnRails - 07 May 2017

« Back 1 day Forward 1 day »
[00:01:06] Pumukel: has joined #RubyOnRails
[00:06:24] patarr: has joined #RubyOnRails
[00:25:12] ravster: has joined #RubyOnRails
[00:31:21] spheric: has joined #RubyOnRails
[00:42:56] Blaze_Boy: has joined #RubyOnRails
[01:03:44] shilon: has joined #RubyOnRails
[01:13:30] Technodrome: has joined #RubyOnRails
[01:31:56] zacts: has joined #RubyOnRails
[01:32:00] hennign: has joined #RubyOnRails
[01:44:05] akshat: has joined #RubyOnRails
[02:00:54] ejnahc: has joined #RubyOnRails
[02:02:45] Pumukel: has joined #RubyOnRails
[02:14:30] patarr: has joined #RubyOnRails
[02:30:30] irishfromua: has joined #RubyOnRails
[02:57:51] Jameser: has joined #RubyOnRails
[03:04:13] Pumukel: has joined #RubyOnRails
[03:25:07] atrius: has joined #RubyOnRails
[03:27:28] fmcgeough: has joined #RubyOnRails
[03:48:07] srinidhi: has joined #RubyOnRails
[03:52:48] Jameser: has joined #RubyOnRails
[04:04:57] Pumukel: has joined #RubyOnRails
[04:13:20] roamingdog: has joined #RubyOnRails
[04:13:21] Jameser: has joined #RubyOnRails
[04:26:57] Technodrome: has joined #RubyOnRails
[04:39:08] uks: has joined #RubyOnRails
[05:06:25] Pumukel: has joined #RubyOnRails
[05:08:06] duderonomy: has joined #RubyOnRails
[05:23:04] apparition: has joined #RubyOnRails
[05:44:42] arBmind: has joined #RubyOnRails
[06:02:41] KeyJoo: has joined #RubyOnRails
[06:07:11] Pumukel: has joined #RubyOnRails
[06:11:33] xall_: has joined #RubyOnRails
[06:19:26] conta: has joined #RubyOnRails
[06:20:03] xall: has joined #RubyOnRails
[06:31:04] kies^: has joined #RubyOnRails
[06:42:24] Technodrome: has joined #RubyOnRails
[06:48:26] srinidhi: has joined #RubyOnRails
[06:58:05] dionysus69: has joined #RubyOnRails
[07:08:27] Pumukel: has joined #RubyOnRails
[07:15:21] patarr: has joined #RubyOnRails
[07:29:00] arup_r: has joined #RubyOnRails
[07:29:36] tofutoon: has joined #RubyOnRails
[07:31:08] arup_r: I have row in my table. But I don't see that while querying it. Any idea what bug I have in my sql? https://gist.github.com/aruprakshit/e1ca24436876e12df5215b2fc266984a
[07:32:46] Technodrome: has joined #RubyOnRails
[08:04:00] defsdoor: has joined #RubyOnRails
[08:04:28] User458764: has joined #RubyOnRails
[08:08:57] Pumukel: has joined #RubyOnRails
[08:19:40] lxsameer: has joined #RubyOnRails
[08:24:01] xco: has joined #RubyOnRails
[08:28:58] rgr_: has joined #RubyOnRails
[08:30:48] dionysus69: has joined #RubyOnRails
[08:48:21] AzaToth: has joined #RubyOnRails
[08:57:58] marr: has joined #RubyOnRails
[09:06:09] markit: has joined #RubyOnRails
[09:09:54] Pumukel: has joined #RubyOnRails
[09:16:16] patarr: has joined #RubyOnRails
[09:17:43] User458764: has joined #RubyOnRails
[09:20:11] blackmesa: has joined #RubyOnRails
[09:25:06] roamingdog: has joined #RubyOnRails
[09:25:07] blackmesa: has joined #RubyOnRails
[09:28:58] ruurd: has joined #RubyOnRails
[09:37:36] User458764: has joined #RubyOnRails
[09:49:57] tofutoon: I'm trying to test this patch of ActiveRecord: https://github.com/raisin/rails/tree/structural-or-add-joins When I run, 'TESTOPTS="--verbose" bundle exec rake test:postgresql', I'm getting 3 skips. However, I'm getting these 3 skips in the master branch as well. This patch allows queries to be joined with 'or' when one side of the or has a joins in it. Any thoughts on this patch? I'm thinking about submitting a pull request.
[09:57:29] srinidhi: has joined #RubyOnRails
[10:00:52] Jameser: has joined #RubyOnRails
[10:09:06] wethu: has joined #RubyOnRails
[10:10:41] Pumukel: has joined #RubyOnRails
[10:15:35] shilon: has joined #RubyOnRails
[10:24:58] |RicharD|: has joined #RubyOnRails
[10:29:05] blackmesa: has joined #RubyOnRails
[10:38:10] kristofferR: has joined #RubyOnRails
[10:38:32] shilon: Hello, can anyone help me with this https://github.com/carrierwaveuploader/carrierwave/issues/418 I have made the last comment… If anyone has any solution please tell me…
[10:48:56] shilon: has joined #RubyOnRails
[10:49:46] shilon: has joined #RubyOnRails
[10:50:31] shilon: has joined #RubyOnRails
[10:51:33] shilon: has joined #RubyOnRails
[10:52:21] shilon: has joined #RubyOnRails
[10:53:09] shilon: has joined #RubyOnRails
[10:53:36] shilon: has joined #RubyOnRails
[10:54:36] shilon: has joined #RubyOnRails
[10:55:16] shilon: has joined #RubyOnRails
[10:56:14] shilon: has joined #RubyOnRails
[10:56:59] shilon: has joined #RubyOnRails
[10:57:39] shilon: has joined #RubyOnRails
[10:58:15] wethu: has joined #RubyOnRails
[10:58:36] shilon: has joined #RubyOnRails
[10:59:26] shilon: has joined #RubyOnRails
[11:00:11] shilon: has joined #RubyOnRails
[11:00:58] shilon: has joined #RubyOnRails
[11:01:52] shilon: has joined #RubyOnRails
[11:02:36] shilon: has joined #RubyOnRails
[11:03:10] User458764: has joined #RubyOnRails
[11:03:26] shilon: has joined #RubyOnRails
[11:04:01] shilon: has joined #RubyOnRails
[11:05:00] shilon: has joined #RubyOnRails
[11:05:49] shilon: has joined #RubyOnRails
[11:06:35] shilon: has joined #RubyOnRails
[11:07:22] shilon: has joined #RubyOnRails
[11:12:09] Pumukel: has joined #RubyOnRails
[11:17:12] patarr: has joined #RubyOnRails
[11:33:29] ych14_: has joined #RubyOnRails
[11:35:56] ych14_: hi, i have an activejob (sidekiq) that i want to store in db with its arguments (without running) and run it sometime later (it's undefined thats why i am not using performlater). i tried save x = MyJob.new(arguments) and then run with x.perform(*x.arguments)
[11:36:30] ych14_: i feel that there's a better way. and i think its kind buggy because i end up in an infinite loop when i run the last command
[11:47:38] nacho_: has joined #RubyOnRails
[11:48:20] nacho_: Hello all, anyone with experience on emblem-rails and related gems around?
[11:49:00] nacho_: I know it isn't maintained anymore (to my sad surprise) and wonder what to do with a precompilation issue that I found
[11:52:56] rgr: has joined #RubyOnRails
[11:59:25] ravster: has joined #RubyOnRails
[12:12:57] Pumukel: has joined #RubyOnRails
[12:13:03] francuz: has joined #RubyOnRails
[12:23:37] francuz: Hello everyone, I'm kinda new to the web-dev world(been coding for a while tho) and in a conversation with a friend the doctrine extensions that allows to make the models you want loggable, softdeleteable, blameable and others popped out. I find most of those utility very usefull in some cases and would like to know what is the best way to have those in rails, (I know i can easily implement them out of several gems
[12:23:37] francuz: and stuff, but i was wondering if there maybe is some kind of automated way of doing it, some big cool gem i didn't find for example, or a rails composer template, or whatever),
[12:38:36] morfin: has joined #RubyOnRails
[12:39:43] hive-mind: has joined #RubyOnRails
[12:39:55] morfin: can i somehow render stuff using render_to_string from somewhere like daemon running in background?
[12:40:46] morfin: i need to update my grid with ActionCable when new record has been created
[12:48:55] User458764: has joined #RubyOnRails
[12:59:23] sandstrom: has joined #RubyOnRails
[13:17:55] patarr: has joined #RubyOnRails
[13:31:25] francuz: has joined #RubyOnRails
[13:36:09] blackmesa: has joined #RubyOnRails
[13:50:26] User458764: has joined #RubyOnRails
[14:01:02] ayonkhan: has joined #RubyOnRails
[14:03:26] User458764: has joined #RubyOnRails
[14:07:38] feelx: has joined #RubyOnRails
[14:14:31] Pumukel: has joined #RubyOnRails
[14:15:52] patarr: has joined #RubyOnRails
[14:16:26] User458764: has joined #RubyOnRails
[14:19:16] srinidhi: has joined #RubyOnRails
[14:19:48] irishfromua: has joined #RubyOnRails
[14:30:32] User458764: has joined #RubyOnRails
[14:30:51] waseem_: has joined #RubyOnRails
[14:38:02] DLSteve: has joined #RubyOnRails
[14:39:07] rgr: has joined #RubyOnRails
[14:41:19] User458764: has joined #RubyOnRails
[14:42:10] blackmesa: has joined #RubyOnRails
[14:47:12] ravster: has joined #RubyOnRails
[14:51:59] irishfromua: has joined #RubyOnRails
[15:10:43] ych: has joined #RubyOnRails
[15:15:32] mahloun: has joined #RubyOnRails
[15:18:03] Technodrome: has joined #RubyOnRails
[15:27:51] ravster: has left #RubyOnRails: ("ERC (IRC client for Emacs 24.5.1)")
[15:37:42] pankaj: has joined #RubyOnRails
[15:47:21] jscheel: has joined #RubyOnRails
[15:53:26] pankaj: Hell=, Is anybody out there?
[15:58:37] pankaj: Hello, Is anybody out there. I am having problem with suez gem in rails.
[16:06:40] waseem_: pankaj: Yes
[16:08:02] pankaj: waseem_: Everytime I start suez server and execute command using suez it executes fine but after that the terminal gets hang and I am unable to type anything on it.
[16:08:56] waseem_: pankaj: What is suez?
[16:09:34] pankaj: waseem_: It is a gem in rails that results in faster processing of rails commands.
[16:10:09] waseem_: pankaj: Where is its documentation?
[16:12:29] pankaj: waseem_: Wait. Providing you with link.
[16:13:17] pankaj: waseem_: I am very sorry because I mispelt the name of gem. It is 'zeus'.
[16:15:59] waseem_: pankaj: The issue that you mentioned sounds like a bug to me. You should contact its developers or file an issue on Github.
[16:18:52] danielsousaio: has joined #RubyOnRails
[16:21:04] ruurd: pankaj ehm why not use spring?
[16:21:23] danielsousaio: How can I profile a Rails application? I need to know how much RAM I need to host my app. The traffic will be close to none as it's a single user and private access.
[16:22:19] pankaj: waseem_: Sorry for late response. Thanks for suggestion. But I searched for this error and nothing I found same that is happening with me.
[16:23:06] pankaj: ruurd: The moment you told I was dealing with spring. What are extra features that spring supports rather then faster processing of rails commands?
[16:24:35] akshat: has joined #RubyOnRails
[16:29:53] spheric: has joined #RubyOnRails
[16:32:32] pLaTo0n: has joined #RubyOnRails
[16:34:56] pankaj: How do I use 'commands' gem in rails?
[16:37:11] chouhoulis: has joined #RubyOnRails
[16:38:54] sonOfRa: has joined #RubyOnRails
[16:42:58] Aherin: has joined #RubyOnRails
[16:45:00] |RicharD|: hi guys, there is a way for skip the validations of a polyformic model ?
[16:45:26] |RicharD|: I want set commentable_id and commentable_type later, not during the creation of the record
[16:51:36] Technodrome: has joined #RubyOnRails
[16:52:10] somerandomteen: has joined #RubyOnRails
[16:52:36] somerandomteen: Hi there! Anyone here got any experience working with CarrierWave and/or Fog in Ruby apps?
[16:54:57] User458764: has joined #RubyOnRails
[16:55:29] User458764: has joined #RubyOnRails
[16:57:05] waseem_: somerandomteen: What's your question?
[16:57:57] somerandomteen: I'm looking at the fog_public option for an S3 bucket I'm using with Carrierwave, but I'm not entirely sure what effect it has - I can't seem to find the relevant docs for it.
[16:58:16] somerandomteen: I want to make the files I upload only accessible to logged-in users - is that the way I would go about that>?
[16:59:39] shilon: has joined #RubyOnRails
[17:04:45] waseem_: has joined #RubyOnRails
[17:08:18] |RicharD|: somerandomteen: not sure about CarrierWave
[17:08:30] |RicharD|: but i've just read this yesterday for paperclip
[17:08:45] |RicharD|: https://github.com/thoughtbot/paperclip/wiki/Restricting-Access-to-Objects-Stored-on-Amazon-S3
[17:08:49] |RicharD|: pretty simple
[17:18:09] lxsameer: has joined #RubyOnRails
[17:19:45] antib: has joined #RubyOnRails
[17:27:34] waseem_: has joined #RubyOnRails
[17:30:40] blackmesa: has joined #RubyOnRails
[17:31:46] sandstrom: has joined #RubyOnRails
[17:44:47] shinzah: has joined #RubyOnRails
[17:45:49] User458764: has joined #RubyOnRails
[17:46:13] shinzah: I'm trying to build some specs for a OAuth flow, using the OAuth2 library to do so. But when I build a client like so: OAuth2::Client.new and give it a `site` (localhost:3000) where my server is running I lose all my mocks because the test sersver is not running on the same port I think. Any tips?
[17:46:33] gambl0re: has joined #RubyOnRails
[17:47:02] shinzah: The site property is required to build the authorize URL which I use to fill in my mocked data. But this mocked data is unknown because of the localhost:3000
[17:50:17] DLSteve: has joined #RubyOnRails
[17:57:48] netzfisch: has joined #RubyOnRails
[17:58:12] JDeen: Hello... I am wondering if we can customize the path of a form in SimpleForm... for example I have an resource 'upload'... but the controller is 'my_uploads', how can we instruct the helper to generate URLs with `my_upload` instead of `upload`
[18:00:16] JDeen: without manually defining the url for create and edit... like `simple_form_for @upload, url: (@upload.persisted? ? blah : blah), method: (@upload.persisted? ? blah : balh)
[18:03:21] blackmesa: has joined #RubyOnRails
[18:06:45] markpur: has joined #RubyOnRails
[18:17:38] morfin: has joined #RubyOnRails
[18:18:29] morfin: is there any way to render_to_string outside of Controllers?
[18:20:43] Pumukel: has joined #RubyOnRails
[18:23:50] xibalba: has joined #RubyOnRails
[18:29:06] xibalba: has joined #RubyOnRails
[18:30:26] markpur: hi, a bit of an odd question perhaps, can somebody tell me what this controller rspec test would put on the wire: data={format:'json',id:'6'};post "/api", data
[18:33:20] markpur: or where i can find the documentation for it. I suspect that rspec doesn't even make network connections? so my effort in just making a test case seem to have been in vain
[18:40:38] User458764: has joined #RubyOnRails
[19:27:44] shilon: has joined #RubyOnRails
[19:29:44] catileptic: has joined #RubyOnRails
[19:33:40] hnanon: has joined #RubyOnRails
[19:34:38] hnanon: Job has one Upgrade, Upgrade belongs to Job.
[19:34:48] hnanon: @jobs = Job.joins(:upgrade).where("upgrade.expiration".to_date > Date.today).distinct
[19:35:08] hnanon: Error: invalid date
[19:36:03] hnanon: upgrade.expiration.to_date returns a date in the console (after defining upgrade, of course).
[19:38:37] hnanon: Is my join/where syntax correct?
[19:45:16] jammanbo: has joined #RubyOnRails
[19:46:40] hnanon: This worked: @jobs = Job.joins(:upgrade).where("upgrades.expiration > ?", Date.today).distinct
[19:47:17] jammanbo: Are defaults in procs evaluated at load time or when the proc is executed? ->(is_this_safe = 1.day.ago) { ... }
[19:48:50] northfurr: has joined #RubyOnRails
[19:50:33] daydream: has joined #RubyOnRails
[19:52:26] spheric: has joined #RubyOnRails
[19:53:21] spheric_: has joined #RubyOnRails
[19:54:40] roamingdog: has joined #RubyOnRails
[19:57:18] chouhoulis: has joined #RubyOnRails
[20:13:01] Pumukel: has joined #RubyOnRails
[20:48:10] blackmesa: has joined #RubyOnRails
[21:00:10] francuz: hi, does rails work well with ruby 2.4 yet or should i stay on 2.3 for now?
[21:00:42] northfurr: has joined #RubyOnRails
[21:02:40] Pumukel: has joined #RubyOnRails
[21:06:23] xco: i’m getting “undefined method `thumbnail' for nil:NilClass” can someone please help me debug this: https://gist.github.com/siaw23/190e414dd38101310cec904869a6aedd#file-view-html-erm-L84 an extra pair of eyes could help
[21:06:46] xco: i put 3 related files in the gist
[21:08:26] shilon: has joined #RubyOnRails
[21:14:00] loechel: has joined #RubyOnRails
[21:28:41] shilon: hello, can someone help with this? I’m struggling for 2 days now! https://gist.github.com/jamesalbuquerque/53933376a00cb16620e4b48f1c54b550
[21:31:27] andywww: has joined #RubyOnRails
[21:34:18] xco: @Shilon which line are you getting the error on?
[21:34:46] shilon: xco: no error, it creates everything besides the string for the cover image
[21:34:54] shilon: it’s always nil
[21:45:10] cpruitt: has joined #RubyOnRails
[21:45:21] xco: Shilon: which line is always nil? what are you expecting?
[21:45:52] shilon: I’m expecting filename.jpg/png and I get cover: nil
[21:50:52] cpruitt: has joined #RubyOnRails
[21:52:35] cpruitt: has joined #RubyOnRails
[21:55:35] netzfisch: has joined #RubyOnRails
[21:58:33] northfurr: has joined #RubyOnRails
[22:01:24] loechel: has joined #RubyOnRails
[22:02:36] kies^: has joined #RubyOnRails
[22:11:51] Talltree_: has joined #RubyOnRails
[22:13:45] planigan_: has joined #RubyOnRails
[22:21:18] jhass|off: has joined #RubyOnRails
[22:21:32] Kilobyte22: has joined #RubyOnRails
[22:29:46] spectra: has joined #RubyOnRails
[22:33:12] Radar: GOOD MORNING
[22:34:19] Radar: Shilon: It would help if you showed us the exact error you're getting.
[22:34:35] shilon: I found the rror Radar :)
[22:34:44] shilon: thanks anyway
[22:35:02] shilon: Radar: I had to use carrierwave_globalize
[22:37:37] akshat: has joined #RubyOnRails
[22:42:45] gambl0re: has joined #RubyOnRails
[22:54:36] patarr: has joined #RubyOnRails
[22:59:05] railsnewbie12: has joined #RubyOnRails
[23:00:27] xco: i’m getting “undefined method `thumbnail' for nil:NilClass” can someone please help me debug this: https://gist.github.com/siaw23/190e414dd38101310cec904869a6aedd#file-view-html-erm-L84 an extra pair of eyes could help
[23:00:34] xco: : i put 3 related files in the gist
[23:02:31] railsnewbie12: Question about usig Kube frame work with rails. I have a a scaffold called skill where User can enter a skill a title and duration. It uses the css and javascript to do the animation, but when I have more than one skill I it will show the first content of the entered skill
[23:03:22] railsnewbie12: Gist: https://gist.github.com/BryanSingh/3acb6a4ac952ecc5574aa85c7290e99b
[23:06:09] Pumukel: has joined #RubyOnRails
[23:19:41] romeoh: has joined #RubyOnRails
[23:28:26] GodFather: has joined #RubyOnRails
[23:42:39] DLSteve: has joined #RubyOnRails
[23:45:49] testercsgo: has joined #RubyOnRails
[23:46:41] wethu: has joined #RubyOnRails
[23:47:12] testercsgo: Hi Guys, I am using the code from the 2nd answer in this link : http://stackoverflow.com/questions/24746906/ruby-on-rails-saving-in-two-tables-from-one-form . I am wondering how I can make it so if the address already exists in the address model to skip adding a new address and show no error (in my case, I am using google placeid to check if exists)? Thanks heaps :)
[23:52:02] planigan: has joined #RubyOnRails
[23:55:10] testercsgo: In addition to not adding a new address, I still want to use that address id in the newly created 'hotel'