« Back to channel list

#RubyOnRails - 27 April 2016

« Back 1 day Forward 1 day »
[00:00:05] baweaver: has joined #RubyOnRails
[00:00:16] zel: has joined #RubyOnRails
[00:00:21] ctrlrsf: has joined #RubyOnRails
[00:01:48] smathy: Darmani, it's the "impress the devs" part that's critical, if you can't sell yourself then don't take this route, if you doubt your abilities to create cool shit don't take this route, if you're not an autodidact then don't take this route.
[00:02:34] smathy: I don't even remember exactly how long we were in support, it was less than 12 months though, I remember that.
[00:03:24] DragonPunch: has joined #RubyOnRails
[00:04:01] Darmani: smathy: Good to know.
[00:06:59] bob434: has joined #RubyOnRails
[00:13:30] twilling: has joined #RubyOnRails
[00:14:24] baweaver: has joined #RubyOnRails
[00:15:08] idefine: has joined #RubyOnRails
[00:18:42] AoifeOToole: has joined #RubyOnRails
[00:21:26] DoctorMonocular: has joined #RubyOnRails
[00:21:28] emachnic: has joined #RubyOnRails
[00:21:43] tvon[laptop]: has joined #RubyOnRails
[00:25:14] bronson: has joined #RubyOnRails
[00:26:13] quazimodo: has joined #RubyOnRails
[00:26:15] quazimod1: has joined #RubyOnRails
[00:29:13] chipotle: has joined #RubyOnRails
[00:30:46] hutchy: has joined #RubyOnRails
[00:30:48] RegulationD: has joined #RubyOnRails
[00:31:20] quazimod2: has joined #RubyOnRails
[00:31:46] poolparty: has joined #RubyOnRails
[00:32:13] jeffleeismyhero: Can anyone recommend a drop-in replacement for acts-as-taggable-on?
[00:32:18] macsteps: has joined #RubyOnRails
[00:33:40] smathy: jeffleeismyhero, no idea how drop-in it is: https://github.com/mattetti/acts_as_taggable_on_steroids
[00:34:15] jeffleeismyhero: One that's maintained.
[00:34:30] aloneintheworld: has joined #RubyOnRails
[00:34:46] jeffleeismyhero: Even if it's not a drop in, I'm open to switching.
[00:35:32] jeffleeismyhero: The ones I've come across so far are unmaintained. While acts-as-taggable-on works, it's become a performance bottleneck (tagged_with queries are slow).
[00:35:43] poolparty: I've been reading the documentation on ActiveSupport Notifications, but I can't find a list hooks and the explanation of what their payload means
[00:36:10] ss_much: has joined #RubyOnRails
[00:36:24] poolparty: for example, I see the hook "process_action.action_controller", but what does this hook tell me?
[00:36:56] poolparty: is it the time that it takes process the whole action from start to finish? I'm looking for hook documentation at that level. ideas?
[00:37:18] smathy: poolparty, no idea how good this is but: http://guides.rubyonrails.org/active_support_instrumentation.html
[00:37:30] hutchy: @smathy thanks for your answer regarding my contact forrm and its controller
[00:37:43] smathy: hutchy, np.
[00:38:10] godzillaenlacasa: has joined #RubyOnRails
[00:38:16] poolparty: smathy: thanks, yeah, I've seen that. It's almost everything I need. it describes the payload but not the context of the hook and when it's running
[00:38:42] hutchy: Now i’m pondering what to name that controller, seeing as I already have a model called Contact as in people who are contacts to a real estate property
[00:39:21] smathy: hutchy, many people use something generic for these sorts of things like SiteController
[00:42:48] hutchy: @smathy awesome that works, I’m sure i will find other things that will fit into this controller
[00:45:16] jowiar: has joined #RubyOnRails
[00:46:12] edwinvdgraaf: has joined #RubyOnRails
[00:48:44] Ropeney: has joined #RubyOnRails
[00:51:32] jaequery: has joined #RubyOnRails
[00:51:40] idefine_: has joined #RubyOnRails
[00:56:44] twilling: has joined #RubyOnRails
[00:57:04] idefine: has joined #RubyOnRails
[00:58:52] chouhoulis: has joined #RubyOnRails
[01:03:59] jstransky: has joined #RubyOnRails
[01:04:12] akshat: has joined #RubyOnRails
[01:06:14] chouhoulis: has joined #RubyOnRails
[01:08:01] macsteps: has joined #RubyOnRails
[01:08:08] poolparty: has anyone here used the New Relic Ruby agent to instrument Sidekiq jobs before? It seems like it's plug and play, not sure if it's free
[01:08:21] poolparty: ACTION is looking for the quickest way to instrument Sidekiq jobs that aren't his
[01:09:41] chouhoulis: has joined #RubyOnRails
[01:11:12] sevenseacat: has joined #RubyOnRails
[01:11:58] benlieb: has joined #RubyOnRails
[01:12:08] one_zero: has joined #RubyOnRails
[01:15:09] lemur: has joined #RubyOnRails
[01:20:38] moeabdol: has joined #RubyOnRails
[01:22:48] bbrowning: has joined #RubyOnRails
[01:25:02] idefine: has joined #RubyOnRails
[01:25:34] timdotrb: has joined #RubyOnRails
[01:30:09] SeanLazer: has joined #RubyOnRails
[01:32:06] idefine_: has joined #RubyOnRails
[01:32:38] _Tariq: has joined #RubyOnRails
[01:33:44] rohit: has joined #RubyOnRails
[01:34:36] idefine: has joined #RubyOnRails
[01:34:53] pawnbox: has joined #RubyOnRails
[01:35:02] jstransky: has joined #RubyOnRails
[01:38:27] jstransky: has joined #RubyOnRails
[01:38:33] Vircung: has joined #RubyOnRails
[01:39:56] Cohedrin: has joined #RubyOnRails
[01:44:19] benlieb: has joined #RubyOnRails
[01:46:51] baweaver: has joined #RubyOnRails
[01:47:26] blackmesa: has joined #RubyOnRails
[01:49:58] Cohedrin: has joined #RubyOnRails
[01:51:23] jowiar: has joined #RubyOnRails
[01:52:21] rohit: has joined #RubyOnRails
[01:53:10] RLa: has joined #RubyOnRails
[01:55:31] idefine_: has joined #RubyOnRails
[01:56:33] bronson: has joined #RubyOnRails
[01:58:09] Caerus: has joined #RubyOnRails
[01:58:53] rakm: has joined #RubyOnRails
[02:01:14] rakm: i'm using using rubocop and getting an error on an activerecorc query that looks like this: http://pastie.org/10814453. The rubocop error is "Style/MultilineOperationIndentation", which by default is set to 'aligned'. does anyone know what the correct indentation or what this is referring to?
[02:01:30] rakm: here's the setting for this rubocop https://github.com/bbatsov/rubocop/blob/master/config/default.yml#L668
[02:04:03] rickmasta: has joined #RubyOnRails
[02:05:37] jstransky: has joined #RubyOnRails
[02:06:00] ensyde: has joined #RubyOnRails
[02:07:11] bronson: has joined #RubyOnRails
[02:08:13] idefine: has joined #RubyOnRails
[02:08:47] chipotle: has joined #RubyOnRails
[02:08:50] macsteps: has joined #RubyOnRails
[02:15:51] maletor_: has joined #RubyOnRails
[02:20:01] timdotrb_: has joined #RubyOnRails
[02:20:39] Cache_Money: has joined #RubyOnRails
[02:21:39] Vircung: has joined #RubyOnRails
[02:22:03] idefine: has joined #RubyOnRails
[02:24:52] idefine: has joined #RubyOnRails
[02:26:09] tsherman: has joined #RubyOnRails
[02:27:07] tvon[laptop]: If I'm using rack test, can I hit the test server via host:port within a test?
[02:32:14] RegulationD: has joined #RubyOnRails
[02:32:42] RLa: has left #RubyOnRails: ("Leaving")
[02:36:49] idefine_: has joined #RubyOnRails
[02:37:19] SteenJobs: has joined #RubyOnRails
[02:38:30] idefine__: has joined #RubyOnRails
[02:40:09] idefine: has joined #RubyOnRails
[02:49:04] wethu: has joined #RubyOnRails
[02:49:54] pyemkey: has joined #RubyOnRails
[02:52:16] p1k: has joined #RubyOnRails
[02:53:40] nozpheratu: has joined #RubyOnRails
[02:54:45] blackmesa: has joined #RubyOnRails
[02:55:59] idefine: has joined #RubyOnRails
[02:57:39] idefine_: has joined #RubyOnRails
[02:58:13] gambl0re: has joined #RubyOnRails
[02:59:12] dezull: has joined #RubyOnRails
[02:59:42] tildes: has joined #RubyOnRails
[03:00:52] baweaver: has joined #RubyOnRails
[03:01:33] HenriettaSalt: has joined #RubyOnRails
[03:04:30] berserk_ren: has joined #RubyOnRails
[03:07:24] gambl0re: has joined #RubyOnRails
[03:08:45] yfeldblum: has joined #RubyOnRails
[03:08:45] moeabdol: has joined #RubyOnRails
[03:12:35] fedexo: has joined #RubyOnRails
[03:14:09] idefine: has joined #RubyOnRails
[03:15:27] dmz: has joined #RubyOnRails
[03:20:24] tildes: has joined #RubyOnRails
[03:24:32] lxsameer: has joined #RubyOnRails
[03:25:22] bronson: has joined #RubyOnRails
[03:26:01] Cache_Money: has joined #RubyOnRails
[03:28:19] brendan-: has joined #RubyOnRails
[03:29:29] idefine_: has joined #RubyOnRails
[03:36:54] drim: has joined #RubyOnRails
[03:37:01] idefine: has joined #RubyOnRails
[03:37:25] drim: what can cause AbstractController::DoubleRenderError when using fresh_when?
[03:42:01] pawnbox: has joined #RubyOnRails
[03:46:01] baweaver: has joined #RubyOnRails
[03:47:33] Ropeney: drim, !gist or put a "and return" at the end of the render method that your expecting it to stop at (render doesn't end the function, two renders that can be called is bad)
[03:52:33] djbkd: has joined #RubyOnRails
[03:53:55] drim: Ropeney I only have 1 render in the method
[03:54:35] sevenseacat: show us the code? :)
[03:56:14] blackmesa: has joined #RubyOnRails
[03:57:56] emachnic: has joined #RubyOnRails
[03:58:42] drim: https://gist.github.com/jeremymarc/fdf1923fe9943f0ce28387456156fea4
[04:03:18] drim: my guess is because of the fresh_when
[04:03:48] drim: the errors occurs sometimes.. when removing fresh_when no issue at all
[04:06:32] idefine: has joined #RubyOnRails
[04:06:56] srinidhi: has joined #RubyOnRails
[04:09:48] Tref: has joined #RubyOnRails
[04:09:54] macsteps: has joined #RubyOnRails
[04:10:18] pawnbox: has joined #RubyOnRails
[04:10:42] konsolebox: has joined #RubyOnRails
[04:11:01] Weavel: has joined #RubyOnRails
[04:11:13] agent_white: has joined #RubyOnRails
[04:12:52] Radar: drim: fresh_when won't stop the execution of the method.
[04:13:08] Radar: drim: You might want to use stale? instead of fresh_when
[04:13:12] Radar: o/ agent_white
[04:13:44] jaequery: has joined #RubyOnRails
[04:18:45] SteenJobs: has joined #RubyOnRails
[04:19:11] arquebus: has joined #RubyOnRails
[04:19:18] IrishGringo: has joined #RubyOnRails
[04:20:26] baweaver: has joined #RubyOnRails
[04:22:34] HenriettaSalt: has joined #RubyOnRails
[04:24:39] Ropeney: drim, did you fix it? what Radar said or fresh_when(blah) and return
[04:26:21] bronson: has joined #RubyOnRails
[04:30:39] jaequery: has joined #RubyOnRails
[04:33:27] pyemkey: has joined #RubyOnRails
[04:33:44] Devalo: has joined #RubyOnRails
[04:34:58] sneakerhax: has joined #RubyOnRails
[04:40:26] yfeldblum: has joined #RubyOnRails
[04:40:48] claytonzaugg: has joined #RubyOnRails
[04:41:26] yfeldblum: has joined #RubyOnRails
[04:46:59] Devalo: has joined #RubyOnRails
[04:47:05] PedramT: has joined #RubyOnRails
[04:49:59] claytonzaugg: has joined #RubyOnRails
[04:50:46] Tref: has joined #RubyOnRails
[04:53:15] dezull: has joined #RubyOnRails
[04:56:51] moeabdol: has joined #RubyOnRails
[04:58:00] blackmesa: has joined #RubyOnRails
[05:04:20] DZj091231kld: has joined #RubyOnRails
[05:06:45] Cohedrin: has joined #RubyOnRails
[05:06:55] bob434: has joined #RubyOnRails
[05:07:55] navneet_: has joined #RubyOnRails
[05:16:02] sp1rs: has joined #RubyOnRails
[05:23:21] HenriettaSalt: has joined #RubyOnRails
[05:23:34] jenrzzz: has joined #RubyOnRails
[05:25:34] bronson: has joined #RubyOnRails
[05:29:22] bob434: has joined #RubyOnRails
[05:29:39] baweaver: has joined #RubyOnRails
[05:32:29] Macaveli: has joined #RubyOnRails
[05:33:58] sandelius: has joined #RubyOnRails
[05:34:56] marcdel: has joined #RubyOnRails
[05:35:49] billy1234: has joined #RubyOnRails
[05:37:12] billy1234: i have a question. if I have a variable assigned a string that consists only of numbers, like temp = "1234", and I attempt have db table named "users" with a column "remote_id" of type integer, and I run user = User.new; user.remote_id = temp; user.save;
[05:37:37] billy1234: will that generate an error?
[05:37:42] sevenseacat: try it and see
[05:39:29] billy1234: i don't have access to the console yet which is why im asking in here, does anyone know?
[05:39:53] Ropeney: your going to push code to production on the hopes people in here are correct without testing?
[05:40:20] billy1234: ropeney: are you talking to me?
[05:40:30] billy1234: did I say I was pushing anything to production?
[05:40:38] billy1234: I'm asking a pretty basic question, does anyone know?
[05:41:12] Ropeney: yes it should work
[05:41:22] billy1234: thank you ropeney
[05:41:36] moeabdol: has joined #RubyOnRails
[05:41:41] Ropeney: not having access to console, sounds like its on production is all
[05:42:07] Ropeney: i'd hate to say yes it works, then have your site break and feel bad
[05:43:20] moeabdol: has joined #RubyOnRails
[05:44:06] sevenseacat: thats the sort of thing that if you dont know, its easy to spin up a new app and check
[05:44:24] billy1234: ropeney - haha no problem, ill get access to the server here again here in a bit, wanted to check on that
[05:44:58] sevenseacat: especially instead of testing on production servers
[05:45:07] billy1234: but no youre fine everything will be tested as always, theres a group involved
[05:45:19] sevenseacat: I do not condone in any way 'trying shit out on the server to see if it works'
[05:45:26] billy1234: *sigh* sevenseacat nothing is being tested on production servers just had a quick question
[05:45:36] billy1234: thank you all
[05:45:59] bob434: has joined #RubyOnRails
[05:46:08] sevenseacat: just reinforcing the point because people get the wrong idea.
[05:46:11] Sadin: has joined #RubyOnRails
[05:47:59] Tref: has joined #RubyOnRails
[05:48:19] timdotrb_: has joined #RubyOnRails
[05:50:47] xardion: has joined #RubyOnRails
[05:51:31] dionysus69: has joined #RubyOnRails
[05:53:03] sp1rs: has joined #RubyOnRails
[05:58:37] morfin: has joined #RubyOnRails
[05:58:52] euphoriaa: has joined #RubyOnRails
[06:01:02] blackmesa: has joined #RubyOnRails
[06:02:18] morfin: docs says that it's better way to use joins for LEFT OUTER JOIN but is there way to do that without writing database-specific SQL?
[06:03:28] morfin: heard there is some gem called Squeel but not sure that's what i want
[06:03:51] sp1rs: has joined #RubyOnRails
[06:03:52] Ropeney: i'd stick to the SQL
[06:04:09] Ropeney: I don't know other gems, just adds more dependencies
[06:04:18] morfin: btw Squeel also allows writing conditions in where like hmm >=
[06:06:07] Ropeney: just looked at it, does make it more "ruby like" but I don't see the advantage of it over SQL
[06:06:09] arBmind: has joined #RubyOnRails
[06:07:15] morfin: yes, same here)
[06:07:26] brianpWins: has joined #RubyOnRails
[06:07:28] morfin: just one more unessesary layer over SQL
[06:08:23] solars: has joined #RubyOnRails
[06:12:19] quazimod3: has joined #RubyOnRails
[06:13:02] PedramT: has joined #RubyOnRails
[06:15:04] sandelius: has joined #RubyOnRails
[06:15:46] navneet__: has joined #RubyOnRails
[06:18:30] pLaToOn: has joined #RubyOnRails
[06:20:08] RahulT: has joined #RubyOnRails
[06:22:31] sp1rs: has joined #RubyOnRails
[06:24:23] jaequery: has joined #RubyOnRails
[06:27:10] gambl0re: has joined #RubyOnRails
[06:30:10] Tref: has joined #RubyOnRails
[06:31:17] smoitra: has joined #RubyOnRails
[06:33:25] fruitstand: has left #RubyOnRails: ("Leaving")
[06:33:53] RegulationD: has joined #RubyOnRails
[06:34:52] GriffinHeart: has joined #RubyOnRails
[06:36:07] tildes: has joined #RubyOnRails
[06:43:36] stardiviner: has joined #RubyOnRails
[06:43:42] pawnbox: has joined #RubyOnRails
[06:47:21] Hardik_: has joined #RubyOnRails
[06:48:27] thehardikjoshi: Is there any gem which does profiling of gems mentioned in the Gemfile ?
[06:52:09] dezull: has joined #RubyOnRails
[06:52:23] DoubleMalt: has joined #RubyOnRails
[06:54:18] gambl0re: has joined #RubyOnRails
[06:55:45] konsolebox: has joined #RubyOnRails
[06:55:57] noodle: has joined #RubyOnRails
[06:57:17] kareeoleez: has joined #RubyOnRails
[06:57:35] kareeoleez: what is "ri" that appears when installing a gem ?
[06:57:46] kareeoleez: and --no-ri for example
[06:59:33] sevenseacat: kareeoleez: `man ri`
[07:00:24] kareeoleez: it says I am stupid
[07:00:35] Ropeney: kareeoleez or http://rubylearning.com/satishtalim/ruby_ri_tool.html
[07:00:51] kareeoleez: I didn't think at all that it has a manpage
[07:00:55] kareeoleez: thanks and sorry :)
[07:01:25] gavit: has joined #RubyOnRails
[07:01:47] jlyndon: has joined #RubyOnRails
[07:01:51] pfg: has joined #RubyOnRails
[07:01:55] machty: has joined #RubyOnRails
[07:01:55] magically: has joined #RubyOnRails
[07:01:58] sypheren: has joined #RubyOnRails
[07:02:21] iamdevnul: has joined #RubyOnRails
[07:02:21] bedouin: has joined #RubyOnRails
[07:02:22] Hates_: has joined #RubyOnRails
[07:02:25] mattwithoos: has joined #RubyOnRails
[07:02:35] alxndr: has joined #RubyOnRails
[07:02:40] daemonwrangler: has joined #RubyOnRails
[07:02:42] jcp: has joined #RubyOnRails
[07:02:46] ELCALOR: has joined #RubyOnRails
[07:03:10] jxf: has joined #RubyOnRails
[07:03:13] AntiSpamMeta: has joined #RubyOnRails
[07:03:18] BBHoss: has joined #RubyOnRails
[07:03:27] Expanse: has joined #RubyOnRails
[07:03:45] acalewin: has joined #RubyOnRails
[07:03:49] shwoodard_: has joined #RubyOnRails
[07:03:50] lipoqil: has joined #RubyOnRails
[07:03:50] hjdivad: has joined #RubyOnRails
[07:03:51] Obi_obi: has joined #RubyOnRails
[07:03:51] sdn90: has joined #RubyOnRails
[07:03:55] deeprave: has joined #RubyOnRails
[07:04:03] jlpeters: has joined #RubyOnRails
[07:04:04] blackmesa: has joined #RubyOnRails
[07:04:18] swgillespie: has joined #RubyOnRails
[07:04:25] Hosh: has joined #RubyOnRails
[07:04:45] sypheren: has joined #RubyOnRails
[07:04:48] kumavis: has joined #RubyOnRails
[07:05:09] AckZ: has joined #RubyOnRails
[07:05:13] joaomdmoura__: has joined #RubyOnRails
[07:06:28] bruce_lee: has joined #RubyOnRails
[07:06:33] ferr: has joined #RubyOnRails
[07:07:13] lubekpl: has joined #RubyOnRails
[07:07:30] moeabdol: has joined #RubyOnRails
[07:08:06] ur5us: has joined #RubyOnRails
[07:08:08] enkristoffer: has joined #RubyOnRails
[07:09:03] futilegames: has joined #RubyOnRails
[07:12:30] chouhoulis: has joined #RubyOnRails
[07:13:00] comrad: has joined #RubyOnRails
[07:13:45] andrew9184: has joined #RubyOnRails
[07:17:04] pawnbox: has joined #RubyOnRails
[07:17:10] Meow-J: has joined #RubyOnRails
[07:18:50] Devalo: has joined #RubyOnRails
[07:20:20] gambl0re: has joined #RubyOnRails
[07:20:20] gambl0re: has joined #RubyOnRails
[07:21:58] emachnic: has joined #RubyOnRails
[07:26:29] HenriettaSalt: has joined #RubyOnRails
[07:27:19] bronson: has joined #RubyOnRails
[07:27:32] mark_66: has joined #RubyOnRails
[07:32:20] tagaulap: has joined #RubyOnRails
[07:33:41] kareeoleez: does anyone have any idea why Bundler::PermissionError: There was an error while trying to write to `/usr/local/lib/ruby/gems/2.3/cache`. It is likely that you need to grant write permissions for that path. might happen ?
[07:33:45] Nuck: has joined #RubyOnRails
[07:34:31] sevenseacat: because you dont have write permissions for that path, i presume
[07:37:09] UglyVendetta: has joined #RubyOnRails
[07:39:30] navneet_: has joined #RubyOnRails
[07:40:11] Tref: has joined #RubyOnRails
[07:41:47] aganov: has joined #RubyOnRails
[07:42:30] diegoaguilar: has joined #RubyOnRails
[07:43:12] Ergo: has joined #RubyOnRails
[07:44:50] brianpWins_: has joined #RubyOnRails
[07:44:58] robbyoconnor: has joined #RubyOnRails
[07:47:26] lubekpl: hey guys! quick question, how would you go about implementing user roles in a sinatra based app (no db) which is connected to a rails backend api ? I'm having trouble wrapping my head around it. Especially when it comes to displaying menu based on roles...
[07:50:50] lubekpl: just to clear up, the sinatra app is like a microservice only showing views, everyting else is in the rails app
[07:53:56] roshanavand: has joined #RubyOnRails
[07:56:00] mikecmpbll: has joined #RubyOnRails
[07:57:02] AzaToth: has joined #RubyOnRails
[07:57:28] duderono_: has joined #RubyOnRails
[07:59:41] jsrn: has joined #RubyOnRails
[07:59:52] rrawlins: has joined #RubyOnRails
[08:00:39] DaniG2k: has joined #RubyOnRails
[08:03:16] DaniG2k_: has joined #RubyOnRails
[08:05:00] navneet_: has joined #RubyOnRails
[08:05:52] blackmesa: has joined #RubyOnRails
[08:07:05] UglyVendetta: Is macbook Air enough for Rails development?
[08:07:37] blackhuey: has joined #RubyOnRails
[08:07:51] htmldrum: has joined #RubyOnRails
[08:08:50] moep: has joined #RubyOnRails
[08:09:19] darutoko: has joined #RubyOnRails
[08:09:21] DaniG2k: has joined #RubyOnRails
[08:11:04] finnnnnnnnnnn: has joined #RubyOnRails
[08:11:46] petor: has joined #RubyOnRails
[08:11:54] mikecmpb_: has joined #RubyOnRails
[08:13:15] renegadeandy: has joined #RubyOnRails
[08:13:39] AimlessRAven: has joined #RubyOnRails
[08:13:51] chouhoulis: has joined #RubyOnRails
[08:15:28] Ergo^: has joined #RubyOnRails
[08:16:51] thorgi: has joined #RubyOnRails
[08:18:46] baweaver: has joined #RubyOnRails
[08:19:09] marr: has joined #RubyOnRails
[08:25:44] snowy: has joined #RubyOnRails
[08:27:14] HenriettaSalt: has joined #RubyOnRails
[08:28:18] bronson: has joined #RubyOnRails
[08:45:52] stardiviner: has joined #RubyOnRails
[08:46:27] AimlessRAven: has joined #RubyOnRails
[08:46:51] ferr: has joined #RubyOnRails
[08:48:00] AimlessRAven: https://gist.github.com/anonymous/72f3440cea8e6dc9a8ea2b6245c55e92
[08:48:10] AimlessRAven: why my paginate return me pages but not paginate my users
[08:51:45] tildes_: has joined #RubyOnRails
[08:54:11] blackmesa: has joined #RubyOnRails
[08:56:06] iamvery: has joined #RubyOnRails
[08:58:11] AlexJakeGreen: has joined #RubyOnRails
[08:58:17] pawnbox: has joined #RubyOnRails
[09:03:09] Ergo: has joined #RubyOnRails
[09:04:30] qejk: has joined #RubyOnRails
[09:07:04] mikecmpbll: AimlessRaven : you don't appear to be using @users in your view
[09:07:38] Isthar: has joined #RubyOnRails
[09:08:30] AimlessRAven: mikecmpbll: yeah tnx
[09:12:53] skislak: has joined #RubyOnRails
[09:14:33] chouhoulis: has joined #RubyOnRails
[09:20:19] Devalo: has joined #RubyOnRails
[09:20:28] n008f4g_: has joined #RubyOnRails
[09:21:19] sp1rs: has joined #RubyOnRails
[09:27:59] HenriettaSalt: has joined #RubyOnRails
[09:29:09] bronson: has joined #RubyOnRails
[09:30:08] iamvery: has joined #RubyOnRails
[09:33:14] moeabdol: has joined #RubyOnRails
[09:42:00] kareeoleez: Can I set the config.time_zone dynamically by /etc/localtime ?
[09:42:19] kareeoleez: or somehow "sync" Rails time_zone (default) with the system one ?
[09:47:04] jenrzzz: has joined #RubyOnRails
[09:47:38] marcdel: has joined #RubyOnRails
[09:49:26] Quintasan: https://github.com/svenfuchs/rails-i18n/issues/643
[09:49:35] Quintasan: Does anyone have any ideas why this works so randomly?
[09:53:37] alexhartley: has joined #RubyOnRails
[09:55:02] navneet: has joined #RubyOnRails
[10:01:31] yfeldblum: has joined #RubyOnRails
[10:03:03] chipotle: has joined #RubyOnRails
[10:07:05] michael_mbp: If you have rescue YourExceptionClass => e; foo; rescue => e, bar; end does bar get reached if YourExceptionClass errors out?
[10:07:14] michael_mbp: testing in rb
[10:08:09] iamvery: has joined #RubyOnRails
[10:10:25] antgel: has joined #RubyOnRails
[10:15:23] chouhoulis: has joined #RubyOnRails
[10:17:28] PedramT: has joined #RubyOnRails
[10:18:39] workmad3: michael_mbp: iirc, no
[10:19:49] baweaver: has joined #RubyOnRails
[10:21:12] alfie_max15: has joined #RubyOnRails
[10:21:21] alfie_max15: i've got a question
[10:22:00] alfie_max15: lets assume i have a model, Review and i'm trying to create a bunch of reviews at a time by passing in an array of hashes
[10:22:16] alfie_max15: like Review.create(array_of_hashes)
[10:22:26] workmad3: alfie_max15: it'll fail
[10:22:37] htmldrum: has joined #RubyOnRails
[10:23:02] petor: has joined #RubyOnRails
[10:23:07] alfie_max15: really? why so?
[10:23:42] workmad3: oh, wait... when did ActiveRecord start supporting that? :D
[10:23:42] alfie_max15: actually that part is working for me. my question was, what if one of the hashes contain values that might cause a validation failure
[10:23:53] elaptics: workmad3: apparently pretty much always
[10:24:07] alfie_max15: would other records be saved?
[10:24:12] elaptics: workmad3: I got asked the same question the other day, I assured them it wasn't possible. And then I read the docs... :(
[10:24:22] rodfersou: has joined #RubyOnRails
[10:24:50] workmad3: elaptics: haha :)
[10:24:56] workmad3: elaptics: glad it wasn't just me then
[10:25:03] elaptics: alfie_max15: you'd need to query each object that was returned and check if it was persisted or not
[10:25:34] elaptics: workmad3: just shows much/often it's actually needed.
[10:25:35] workmad3: alfie_max15: a quick check in the console reveals the answer as "Any that fail validation will not be saved"
[10:25:40] alfie_max15: actually, i don't care if it persisted, i just want to make sure the ones that validates persist
[10:26:08] elaptics: alfie_max15: it would be a pretty useless method if it didn't :)
[10:26:49] alfie_max15: i mean, if 1 out of 100 fails i want the 99 to be saved, because my validation is that the one trying to be saved is already present or not (uniqueness)
[10:27:02] mdw: has joined #RubyOnRails
[10:27:16] alfie_max15: so i don't care if that one doesn't get saved as i already ahve it
[10:27:18] workmad3: alfie_max15: `saved, errors = Review.create(array).partition(&:valid)`
[10:27:29] workmad3: err, &:valid? even
[10:27:49] alfie_max15: what does `partition` do ?
[10:28:00] mdw7: has joined #RubyOnRails
[10:28:04] alfie_max15: never used it before
[10:28:16] workmad3: alfie_max15: divides an array into 2 partitions based on if the block is true/false
[10:28:44] HenriettaSalt: has joined #RubyOnRails
[10:28:45] alfie_max15: that's nice :)
[10:29:30] Black-Irish: has joined #RubyOnRails
[10:29:39] workmad3: alfie_max15: if your validations are expensive, you could do `.partition { |record| record.errors.present? }` to avoid re-running them too
[10:29:54] Black-Irish: has left #RubyOnRails: ()
[10:29:58] workmad3: (although that particular one will reverse saved,errors)
[10:30:19] bronson: has joined #RubyOnRails
[10:30:35] alfie_max15: its just a uniquesness validation based on an attribute
[10:30:47] workmad3: right, so you probably do want to avoid re-running it
[10:30:54] workmad3: uniqueness validation runs a db query :)
[10:30:55] alfie_max15: would you call it expensive?
[10:32:01] alfie_max15: i didn't understand what you meant by re-running it, how does it get run again?
[10:32:20] workmad3: calling `.valid?` will clear out the `.errors` and run validations
[10:32:58] alfie_max15: oh, i get what you meant now, thanks :)
[10:35:03] RegulationD: has joined #RubyOnRails
[10:37:10] PedramT: has joined #RubyOnRails
[10:37:13] Macaveli: has joined #RubyOnRails
[10:39:33] moeabdol: has joined #RubyOnRails
[10:39:53] sp1rs: has joined #RubyOnRails
[10:42:10] sp1rs1: has joined #RubyOnRails
[10:46:46] htmldrum: has joined #RubyOnRails
[10:49:11] michael_mbp: is #sanitize is view helpers borked in rails 5?
[10:49:12] michael_mbp: ArgumentError: wrong number of arguments (0 for 1..2)
[10:49:23] michael_mbp: for a simple call to view_helpers.sanitize "foo"
[10:50:26] pvertenten: has joined #RubyOnRails
[10:51:57] siaW: has joined #RubyOnRails
[10:52:17] siaW: i’m getting
[10:52:17] siaW: ExecJS::RuntimeError in Posts#index
[10:52:18] siaW: on line <%= javascript_include_tag 'application', 'data-turbolinks-track' => 'reload' %>
[10:52:29] siaW: it’s prolly cause of my .coffee file. how can i fix it?
[10:52:37] siaW: i tried using spaces and tabs
[10:53:14] alfie_max15: do you have the ruby_racer gem
[10:53:15] siaW: my file looks like this: https://gist.github.com/siaw23/9abac1f68f4bb7715a8900aba1539e5b
[10:53:24] siaW: no i don’t have ruby_race gem
[10:53:48] siaW: do you mean this gem? https://rubygems.org/gems/therubyracer/versions/0.12.2
[10:54:04] alfie_max15: can you try adding `gem "therubyracer"` to your gem file
[10:54:15] siaW: ok checking it
[10:54:55] siaW: no progress. same thing
[10:54:57] GodFather: has joined #RubyOnRails
[10:55:02] alfie_max15: restarted the server?
[10:55:46] akshat: has joined #RubyOnRails
[10:58:33] alfie_max15: which OS are you running?
[11:04:21] ZerGabriel: has joined #RubyOnRails
[11:04:27] ZerGabriel: has left #RubyOnRails: ()
[11:05:31] moep: What CMS would you guys recommend if any? refinery looks okay-ish, and it has rails4 support
[11:07:41] braincrash: has joined #RubyOnRails
[11:10:29] bbrowning: has joined #RubyOnRails
[11:13:01] dionysus69: has joined #RubyOnRails
[11:16:10] chouhoulis: has joined #RubyOnRails
[11:18:55] pawnbox: has joined #RubyOnRails
[11:19:17] morfin: if i assign value to @order in my mailer how can i access it from HAML in view?
[11:19:27] PedramT: has joined #RubyOnRails
[11:20:02] AimlessRAven: has joined #RubyOnRails
[11:20:44] AimlessRAven: hi all, how to delete element from hash. from example i have @user_list, where is my all users.. and i find current user by params[:id]
[11:20:50] AimlessRAven: now i have @user_list and @user
[11:20:57] AimlessRAven: how to delete @user from @user_list
[11:22:05] IrishGringo: has joined #RubyOnRails
[11:22:37] morfin: nvm, seems like i just faile
[11:27:42] pawnbox: has joined #RubyOnRails
[11:28:22] sp1rs: has joined #RubyOnRails
[11:29:06] navneet: has joined #RubyOnRails
[11:29:11] roelof: has joined #RubyOnRails
[11:29:20] mdw: has joined #RubyOnRails
[11:29:29] HenriettaSalt: has joined #RubyOnRails
[11:29:30] roelof: someome a good idea to this problem : https://www.reddit.com/r/rails/comments/4exoh4/how_can_i_model_this_the_best/
[11:31:07] bronson: has joined #RubyOnRails
[11:31:18] adlerdias: has joined #RubyOnRails
[11:31:53] Ergo: has joined #RubyOnRails
[11:33:55] ldnunes: has joined #RubyOnRails
[11:34:18] nettoweb: has joined #RubyOnRails
[11:35:39] wolfravenous: has joined #RubyOnRails
[11:35:56] nettoweb: Hey guys, Im saving values (prices) in my database this way: 1.234,56 (brazilian format), Im wondering how to convert this to float number in order to do some maths. I think the problem is with comma in value
[11:37:12] alfie_max15: nettoweb, you store it in the db as a string?
[11:37:33] roelof: nettoweb: I would not go for converting to float. With floats you can have wierd outcomes due to the nature of floats
[11:37:36] nettoweb: alfie_max15 it's already
[11:38:52] roelof: nettoweb: I would go for converting to integer so you will be save
[11:39:14] Ergo: has joined #RubyOnRails
[11:40:04] nettoweb: Im reading a json with these values, cant touch. I know it's dangerous but ... I have to try heheh
[11:40:45] arup_r: has joined #RubyOnRails
[11:41:27] roelof: nettoweb: you can always store it first as a string and later convert it to a integer
[11:41:32] arup_r: I am trying to test a scope called `updated_on` , and it is failing, no idea. Any pointer ? https://gist.github.com/aruprakshit/ecfdc7691e15f4832200f2d53fcef48a
[11:41:41] tildes_: nettoweb: '1.234,56'.gsub(/\.|,/, '').to_i gives you the price in brazilian centavos
[11:42:17] tildes_: as long as you remember to convert back properly, you should be ok
[11:43:05] King_Rex: has joined #RubyOnRails
[11:43:26] pawnbox: has joined #RubyOnRails
[11:43:42] tildes_: personally I prefer decimal for currencies, but if it's already in string format, that is how I would go about it
[11:43:52] nettoweb: tildes_ "5,70".gsub(/\.|,/, '').to_i #570
[11:44:09] nettoweb: should be 5.70 I think
[11:44:31] tildes_: in decimals yes, but as a float, you would expose yourself to precision errors, unnecessarily so
[11:45:17] mdw: has joined #RubyOnRails
[11:45:23] crameth: has joined #RubyOnRails
[11:45:23] tildes_: for integers you would in fact use the cent-amounts for your calculations, then divide by hundred to get the result
[11:45:35] nettoweb: In fact I just want to do some match like "5,70 + 1.250,20"
[11:45:55] nettoweb: and I dont know what to do first
[11:46:43] tildes_: convert each amount to either integer or decimal, then do the calculation
[11:47:36] tildes_: learning ruby hard way btw is a nice way to get started (at least I like it), if the language is totally new to you
[11:48:05] alfie_max15: has left #RubyOnRails: ("Ex-Chat")
[11:48:17] moeabdol: has joined #RubyOnRails
[11:48:37] arup_r: I fixed it and I put the code as a comment. but still I would like to know what was wrong with my old code.
[11:50:06] nettoweb: tildes_ doing like you told I lost the cents
[11:50:47] tildes_: nettoweb: then show what happened
[11:51:05] nettoweb: "5,70".to_i or "5,70".to_f dont give me 5.70
[11:51:36] tildes_: nettoweb: did I tell you to do that?
[11:52:15] tildes_: first remove the separators ( , and . ) with gsub, or similar, then convert to a calculable format
[11:52:29] nettoweb: you told to convert them to integer or float and I just know these way to achieve this
[11:54:24] morfin: anybody can help me: why %img{src: image_url("icons/" + document.type + '.png')} gives me http://myhost.com/assets/icons/pdf.png but if i do this %img{src: image_url("images/icons/" + document.type + '.png')} i get http://myhost.com/assets/images/images/icons/pdf.png
[11:54:35] morfin: how do i create url to my asset then?
[11:54:37] roelof: I used ruby monk and learn ruby on github to learn ruby
[11:54:48] roelof: I like to learn by practice
[11:55:24] tildes_: nettoweb: convert to integer or decvimal (NOT FLOAT), and only after removing the separators.
[11:55:31] pvertenten: has joined #RubyOnRails
[11:56:40] tildes_: I like this one for beginners, comes with exercises and all http://learnrubythehardway.org/book/
[11:56:44] tildes_: (and it's free)
[11:56:58] tildes_: (more precisely: a lot of the content is free)
[11:57:43] drptbl: has joined #RubyOnRails
[11:58:11] King_Rex: has joined #RubyOnRails
[11:58:49] allcentury: has joined #RubyOnRails
[12:01:00] nettoweb: tildes_ https://gist.github.com/osnysantos/805c30a511dbb326ceb06aa7373cc009
[12:01:22] nettoweb: well: I gonn read it
[12:02:23] morfin: is there way to generate URL for /assets/images/icons/pdf.png?
[12:03:19] morfin: i tried asset_path but it still gives weird results when i pass 'images/icons/pdf.png' to it
[12:03:32] michael_mbp: this is so weird
[12:03:46] michael_mbp: pry(main)> ActionController::Base.helpers.sanitize 'foo' works fine
[12:04:10] michael_mbp: however, pry(#<RecaptchaController>)> view_helpers.sanitize('foo') gives ArgumentError: wrong number of arguments (0 for 1..2)
[12:04:17] bob434: has joined #RubyOnRails
[12:04:32] michael_mbp: actionview-5.0.0.beta3/lib/action_view/helpers/sanitize_helper.rb:82:in `sanitize' will open up rails and take a peek
[12:05:53] arup_r: michael_mbp: what is you call just helper.sanitiza ?
[12:06:22] tildes_: nettoweb: that's the result in centavos. if you want back to reals, divide by 100. if back to string, you can use some string conversion method. (c/100).to_s for instance
[12:06:24] morfin: maybe icons is some keyword
[12:06:35] morfin: so assumed it should be in /assets subdir
[12:06:53] GodFather: has joined #RubyOnRails
[12:07:57] arup_r: morfin: do <%= image_path("icons/" + document.type + '.png') %>
[12:08:20] michael_mbp: arup_r: ROFL.. typo on my part
[12:09:06] arup_r: change ERB syntax to your own HAML/SLIM whatever, but use image_path and the file name with subdirectory as I said
[12:09:20] arup_r: michael_mbp: :)
[12:10:06] bob434: has joined #RubyOnRails
[12:11:03] nettoweb: tildes_ thanks man, it worked. I'm gonna read that book, seems very good, but I dont know if it's for beginners
[12:11:06] quazimodo: has joined #RubyOnRails
[12:11:06] quazimod1: has joined #RubyOnRails
[12:11:09] quazimod2: has joined #RubyOnRails
[12:11:14] quazimod3: has joined #RubyOnRails
[12:11:19] morfin: seems like Sprockets ruin all the fun :(
[12:13:12] tildes_: nettoweb: you are welcome. it's not the easiest book, but I think it's worth it.
[12:13:26] tildes_: nettoweb: also I hope you realize not everyone here is a man
[12:13:47] PedramT: has joined #RubyOnRails
[12:14:21] solars: hey, in rspec, does anyone know how to match an argument with multiple custom matchers?
[12:14:59] PedramT: has joined #RubyOnRails
[12:15:01] nettoweb: tildes_ I know, but I said man because seems that you are cause your nickname
[12:15:08] sp1rs: has joined #RubyOnRails
[12:15:11] arup_r: solars: usin .and
[12:15:20] tildes_: nettoweb: I am not
[12:15:52] arup_r: solars: https://www.relishapp.com/rspec/rspec-expectations/v/3-4/docs/compound-expectations
[12:15:52] nettoweb: o.0 thanks anyway, and sorry my mistake
[12:15:54] elaptics: nettoweb: how do you get male from tildes?
[12:16:19] tildes_: nettoweb: no worries, good luck with everything
[12:16:26] nettoweb: elaptics Im from another country and for me it's sound like man.
[12:16:52] chouhoulis: has joined #RubyOnRails
[12:17:19] mostlybadfly: has joined #RubyOnRails
[12:17:24] elaptics: nettoweb: oh interesting, what language?
[12:17:52] nettoweb: elaptics portuguese
[12:18:33] arup_r: nettoweb: I thought you are from India. are you joking, or serious? :p
[12:18:48] arup_r: elaptics: if it is India, we have these many https://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers_in_India ;)
[12:19:17] Macaveli: has joined #RubyOnRails
[12:20:37] nettoweb: im from brazil, I speak portuguese
[12:20:59] baweaver: has joined #RubyOnRails
[12:21:19] Detch: has joined #RubyOnRails
[12:28:06] htmldrum: has joined #RubyOnRails
[12:28:42] PedramT: has joined #RubyOnRails
[12:30:15] HenriettaSalt: has joined #RubyOnRails
[12:31:38] Ropeney: has joined #RubyOnRails
[12:32:32] solars: arup_r, thanks but that does not work within arguments, e.g. if you have: expect(Fu).to receive(:method).with(custom)
[12:32:38] solars: so instead of custom I need 2 matchers
[12:33:11] solars: arup_r, or does it?
[12:33:11] pawnbox_: has joined #RubyOnRails
[12:33:33] flashpoint9: has joined #RubyOnRails
[12:34:25] moeabdol: has joined #RubyOnRails
[12:37:24] Macaveli: has joined #RubyOnRails
[12:38:29] y2mq37: has joined #RubyOnRails
[12:43:01] chouhoulis: has joined #RubyOnRails
[12:45:16] _Tariq: has joined #RubyOnRails
[12:46:07] SeanLazer: has joined #RubyOnRails
[12:46:48] lubekpl_: has joined #RubyOnRails
[12:47:12] pawnbox: has joined #RubyOnRails
[12:47:18] adlerdias_: has joined #RubyOnRails
[12:47:42] navneet: has joined #RubyOnRails
[12:51:06] sp1rs: has joined #RubyOnRails
[12:52:21] sp1rs: has joined #RubyOnRails
[12:53:37] IrishGringo: has joined #RubyOnRails
[12:54:10] beauby: has joined #RubyOnRails
[12:54:35] quazimodo: has joined #RubyOnRails
[12:54:37] quazimod1: has joined #RubyOnRails
[12:54:41] quazimod2: has joined #RubyOnRails
[12:55:26] ramortegui: has joined #RubyOnRails
[12:56:40] Aswebb_: has joined #RubyOnRails
[12:57:25] p1k: has joined #RubyOnRails
[12:57:52] smoitra: has joined #RubyOnRails
[12:57:58] ZerGabriel: has joined #RubyOnRails
[12:58:52] fmcgeough: has joined #RubyOnRails
[12:59:42] quazimod3: has joined #RubyOnRails
[12:59:46] diegoaguilar: has joined #RubyOnRails
[13:00:48] jmm6: has joined #RubyOnRails
[13:05:55] cabinB: has joined #RubyOnRails
[13:06:16] tribals: has joined #RubyOnRails
[13:07:18] moeabdol: has joined #RubyOnRails
[13:10:03] tribals: i'va a model with one-to-one association (belongs_to), and i permit creation of associated model with `accept_nested_attributes_for` method. All works well, except one: i don't need to validate associated model. But if i will create my model with `create(validate = false`, it also disables validation on master model, not only associated model. It is possible to skip validation of associated model when creating it with `accept_nested_attributes_for` a
[13:10:06] darutoko: has joined #RubyOnRails
[13:18:53] EdwardIII: has joined #RubyOnRails
[13:18:58] sp1rs: has joined #RubyOnRails
[13:22:41] Devalo: has joined #RubyOnRails
[13:23:14] pvertenten: has joined #RubyOnRails
[13:24:16] ZerGabriel: has joined #RubyOnRails
[13:24:32] allcentury: has joined #RubyOnRails
[13:24:48] ZerGabriel: has joined #RubyOnRails
[13:27:42] itsmeduncan: has joined #RubyOnRails
[13:28:39] flashpoint9: has joined #RubyOnRails
[13:29:06] pvertenten: has left #RubyOnRails: ()
[13:31:00] HenriettaSalt: has joined #RubyOnRails
[13:32:45] bronson: has joined #RubyOnRails
[13:33:13] brazenbraden: has joined #RubyOnRails
[13:34:20] DragonPunch: has joined #RubyOnRails
[13:35:13] ZerGabriel: has joined #RubyOnRails
[13:35:28] ZerGabriel: has joined #RubyOnRails
[13:37:28] brazenbraden: hey guys. im implementing the Repository Pattern, using Uncle Bob's blog as a resource (https://blog.8thlight.com/mike-ebert/2013/03/23/the-repository-pattern.html). I am registering my repositories in the engine.rb file (as each engine has its own set of repos) and it works but for a limited time. After about 10 or so requests all of a sudden the repos have been "forgotten". Don't know if I've done something wrong or it is a quirk of being in
[13:37:28] brazenbraden: :development. https://gist.github.com/brazenbraden/81ae43f28e923b4c79513a5071ea2223
[13:37:57] HenriettaSalt: has joined #RubyOnRails
[13:38:52] moeabdol: has joined #RubyOnRails
[13:39:24] lxsameer: has joined #RubyOnRails
[13:39:24] lxsameer: has joined #RubyOnRails
[13:39:34] ZerGabriel: has joined #RubyOnRails
[13:40:23] srinidhi: has joined #RubyOnRails
[13:40:37] joshkovach: has joined #RubyOnRails
[13:40:57] akshat: has joined #RubyOnRails
[13:43:34] pawnbox: has joined #RubyOnRails
[13:45:18] ql6wlld: has joined #RubyOnRails
[13:46:03] flashpoint9: has joined #RubyOnRails
[13:46:17] ZerGabriel: has joined #RubyOnRails
[13:46:34] ZerGabriel: has joined #RubyOnRails
[13:46:47] Pumukel: has joined #RubyOnRails
[13:49:17] allcentury: has joined #RubyOnRails
[13:53:13] 17WAADUK0: has joined #RubyOnRails
[13:54:37] macsteps: has joined #RubyOnRails
[13:54:53] DragonPunch: has joined #RubyOnRails
[13:55:55] ZerGabriel: has joined #RubyOnRails
[13:56:19] 16WAADUC2: has joined #RubyOnRails
[13:57:17] idefine: has joined #RubyOnRails
[13:58:17] agent_white: has joined #RubyOnRails
[14:01:03] OTORelic: has joined #RubyOnRails
[14:01:33] akshat: has joined #RubyOnRails
[14:05:14] idefine: has joined #RubyOnRails
[14:08:15] cabinB: has joined #RubyOnRails
[14:12:02] Macaveli: has joined #RubyOnRails
[14:12:51] pawnbox: has joined #RubyOnRails
[14:13:01] macsteps: has joined #RubyOnRails
[14:13:20] p1k: has joined #RubyOnRails
[14:14:33] Tref: has joined #RubyOnRails
[14:14:56] moeabdol: has joined #RubyOnRails
[14:15:42] idefine: has joined #RubyOnRails
[14:19:24] akshat_: has joined #RubyOnRails
[14:19:42] arBmind: has joined #RubyOnRails
[14:20:48] delgiudices: has joined #RubyOnRails
[14:21:02] yellow5: has joined #RubyOnRails
[14:21:57] idefine: has joined #RubyOnRails
[14:22:37] baweaver: has joined #RubyOnRails
[14:23:15] tbuehlmann: has joined #RubyOnRails
[14:24:04] Spami: has joined #RubyOnRails
[14:24:22] macsteps: has joined #RubyOnRails
[14:24:46] marr: has joined #RubyOnRails
[14:26:45] navneet_: has joined #RubyOnRails
[14:29:07] daivyk: has joined #RubyOnRails
[14:29:12] siaW: my rails app js console is showing “Failed to load resource: the server responded with a status of 404 (Not Found)”. i have tried rake assets:precompline, but my gif is not loading, any ideas?
[14:29:52] helpa: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[14:30:16] GodFather: has joined #RubyOnRails
[14:31:07] baweaver: has joined #RubyOnRails
[14:32:21] siaW: i have a .gif in my /assets folder that i’m trying to load with https://gist.github.com/siaw23/d293c1cd646cea5d905773ca861f45fb#file-som-js-coffee-L32 but my browser console shows “Failed to load resource: the server responded with a status of 404 (Not Found)”
[14:32:37] siaW: even after “rake assets:precompile"
[14:33:08] sevenseacat: because that file does not exist in public/assets
[14:33:45] aegis3121: has joined #RubyOnRails
[14:34:20] sevenseacat: you should probably put it in public/images and refer to it with /images/ajax-loader.gif, if you want to skip the asset pipeline like that
[14:34:40] navneet: has joined #RubyOnRails
[14:36:02] navneet_: has joined #RubyOnRails
[14:36:26] RegulationD: has joined #RubyOnRails
[14:36:40] smathy: has joined #RubyOnRails
[14:37:22] dblessing: has joined #RubyOnRails
[14:37:41] ornerymoose: has joined #RubyOnRails
[14:38:40] tsherman: has joined #RubyOnRails
[14:38:57] idefine_: has joined #RubyOnRails
[14:39:10] crystal77: has joined #RubyOnRails
[14:39:31] siaW: sevenseacat: works thanks :)
[14:39:37] navneet_: has joined #RubyOnRails
[14:39:44] ornerymoose: Hello, I’m using https://github.com/eternicode/bootstrap-datepicker with this dashboard template http://www.creative-tim.com/product/light-bootstrap-dashboard . When I click my textfield for the datepicker to appear, it won’t appear unless I remove dashboard.scss from my application.css file. Is there a way to avoid/override this? I’ve messed with the order of css files in application.css, but to no avail.
[14:39:52] emachnic: has joined #RubyOnRails
[14:40:43] emachnic: has joined #RubyOnRails
[14:42:00] ornerymoose: (Note that dashboard.scss is where the custom css is for the Creative Tim template)
[14:42:30] idefine: has joined #RubyOnRails
[14:44:46] njero: has joined #RubyOnRails
[14:46:04] IrishGringo: has joined #RubyOnRails
[14:48:50] smathy: ornerymoose, !code
[14:48:50] helpa: ornerymoose: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[14:52:09] Devalo: has joined #RubyOnRails
[14:52:09] navneet: has joined #RubyOnRails
[14:53:53] The_Phoenix: has joined #RubyOnRails
[14:54:21] navneet: has joined #RubyOnRails
[14:55:03] The_Phoenix: has joined #RubyOnRails
[14:55:55] The_Phoenix: has joined #RubyOnRails
[14:55:59] jowiar: has joined #RubyOnRails
[14:56:35] chipotle: has joined #RubyOnRails
[14:56:44] idefine: has joined #RubyOnRails
[14:56:47] arup_r: has joined #RubyOnRails
[14:56:50] sergey_makagon: has joined #RubyOnRails
[14:57:28] idefine: has joined #RubyOnRails
[14:57:50] flashpoint9: has joined #RubyOnRails
[14:59:09] pvertenten_: has joined #RubyOnRails
[15:00:24] arup_r: I have a method, which displays all its HABTM models ids. And I am not getting how should I test this method properly. Because hardcoded ids have no gurantee to pass always. https://gist.github.com/aruprakshit/f52d22e2ff20c76f6de596f10b5c8c69 sometimes is passing, and sometimes are failing. What is the idea way to test this?
[15:00:30] pwnd_nsfw: has joined #RubyOnRails
[15:00:55] n008f4g_: has joined #RubyOnRails
[15:03:00] zave: has joined #RubyOnRails
[15:06:04] stardiviner: has joined #RubyOnRails
[15:06:07] zave: has joined #RubyOnRails
[15:06:09] blackmesa: has joined #RubyOnRails
[15:08:04] jottr: has joined #RubyOnRails
[15:08:47] drale2k: has joined #RubyOnRails
[15:10:08] aegis3121: has joined #RubyOnRails
[15:11:23] JakFrist: has joined #RubyOnRails
[15:13:01] pec: has joined #RubyOnRails
[15:13:19] jxs_: has joined #RubyOnRails
[15:14:14] shinnya: has joined #RubyOnRails
[15:14:41] LastWhisper____: has joined #RubyOnRails
[15:16:12] chouhoulis: has joined #RubyOnRails
[15:16:43] hobodave: has joined #RubyOnRails
[15:17:01] nettoweb: has joined #RubyOnRails
[15:17:09] LastWhisper____: anyone familiar with reform gem ?
[15:17:27] fryguy: LastWhisper____: probably, try asking the question you really want to ask
[15:18:23] LastWhisper____: Sure... so I have a reform form, and I am trying to validate an input to make sure it's between 1 and 999, and if it isn't, I'd like the .validate I call in my controller to fail
[15:18:27] PedramT: has joined #RubyOnRails
[15:19:45] makenoise: has joined #RubyOnRails
[15:21:15] anna`: has joined #RubyOnRails
[15:22:03] anna`: has joined #RubyOnRails
[15:22:57] jaequery: has joined #RubyOnRails
[15:24:57] chipotle: has joined #RubyOnRails
[15:25:30] PedramT: has joined #RubyOnRails
[15:25:35] navneet: has joined #RubyOnRails
[15:27:24] dANO-: has joined #RubyOnRails
[15:27:24] SeductiveError: has joined #RubyOnRails
[15:27:56] tvon: has joined #RubyOnRails
[15:28:08] SeductiveError: How do I disable templates/views for doorkeeper? I'm using a json api so I don't need any of that stuff and it seems to be throwing errors
[15:29:25] GriffinHeart: has joined #RubyOnRails
[15:29:48] Coldblackice_: has joined #RubyOnRails
[15:30:04] LastWhisper____: okay anyway, specifically my issue is here:
[15:30:08] LastWhisper____: validates :goal, inclusion: { in: 1..999 }
[15:30:20] LastWhisper____: goal is a string... I'm not sure how to typecast it to int for the purposes of htis validation
[15:30:37] LastWhisper____: it needs to be a string for the purposes of hitting the service which then saves it to our json column
[15:31:14] dANOKELOFF_: has joined #RubyOnRails
[15:31:56] berserk_ren: has joined #RubyOnRails
[15:32:28] makenoise: has joined #RubyOnRails
[15:32:39] ss_much: has joined #RubyOnRails
[15:33:28] ferr: has joined #RubyOnRails
[15:33:46] alexhartley: has joined #RubyOnRails
[15:34:44] bronson: has joined #RubyOnRails
[15:35:25] baweaver: has joined #RubyOnRails
[15:35:48] siaW: has joined #RubyOnRails
[15:36:03] siaW: my seed.rb looks like this https://gist.github.com/siaw23/231a4a16398b3027092141e13da23b76
[15:36:28] siaW: i don’t get when it’s not generating developers, maybe i forgot something?
[15:37:31] idefine_: has joined #RubyOnRails
[15:37:39] pwnd_nsfw: siaw, no errors?
[15:37:54] makenoise: Change it to .create! and see if you get errors
[15:39:34] roelof: has joined #RubyOnRails
[15:39:45] siaW: .create! nothing in db, no errors
[15:39:52] roelof: Anyone a good idea to solve this : https://www.reddit.com/r/rails/comments/4exoh4/how_can_i_model_this_the_best/
[15:40:05] makenoise: What happens if you run the same command in your Rails console?
[15:40:13] makenoise: Just the Developer.create part on its own.
[15:41:34] siaW: it creates a developer in the console alright
[15:42:57] siaW: i think i found out why
[15:43:19] makenoise: What was it?
[15:44:22] RegulationD: has joined #RubyOnRails
[15:44:45] siaW: one minute, tesing if i’m right
[15:44:45] yellow5: has joined #RubyOnRails
[15:45:28] siaW: i had “seed.rb” instead of “seeds.rb”
[15:45:35] siaW: ok now :) thanks
[15:45:52] makenoise: Makes sense. My next question was going to be, are you sure it's running, haha.
[15:46:26] PedramT: has joined #RubyOnRails
[15:46:37] a1fa: has joined #RubyOnRails
[15:46:49] a1fa: what is the difference between render and respond_with?
[15:47:02] idefine: has joined #RubyOnRails
[15:47:09] xvikvi: has joined #RubyOnRails
[15:49:07] chouhoulis: has joined #RubyOnRails
[15:49:16] dblessing: has joined #RubyOnRails
[15:49:17] makenoise: I think they took respond_with out of Rails.
[15:49:43] siaW: a1fa: you can check this http://stackoverflow.com/questions/31378177/whats-the-difference-between-using-render-instead-of-respond-with-to-in-a-rails
[15:49:43] makenoise: But, respond_with took an object, and made a lot of assumptions to generate a response.
[15:49:53] makenoise: Render was more explicit, and preferred.
[15:50:14] greengriminal: has joined #RubyOnRails
[15:50:25] a1fa: siaw: i have a problem with one action, and session redirects back
[15:50:51] siaW: a1fa: i’m no expert :)
[15:50:57] roamingdog: has joined #RubyOnRails
[15:51:05] siaW: i google your question :)
[15:51:13] siaW: my ajax is running locally, do i have to do anything special to make it run on heroku?
[15:51:15] pvertenten: has joined #RubyOnRails
[15:51:33] a1fa: siaw: i saw that
[15:51:37] moeabdol: has joined #RubyOnRails
[15:51:37] universa1: siaw: why would you think you have to do anything special?!
[15:52:02] roelof: Anyone a good idea to solve this : https://www.reddit.com/r/rails/comments/4exoh4/how_can_i_model_this_the_best/
[15:52:08] siaW: universa1: i have no idea. i pushed local stuff to heroku, and my infinite scrolling is not working
[15:52:29] makenoise: siaw: are you hardcoding your local server address into your AJAX requests?
[15:52:42] siaW: makenoise: no
[15:52:44] siaW: nothing like that
[15:53:01] a1fa: so here is my problem, i have an action /lock . from there users need to edit outstanding issues, which successful save redirects them to session[:return_to]
[15:53:23] a1fa: but if i dont sub lock out of return path, this thing will keep trying to lock the record
[15:53:28] tvon[laptop]: has joined #RubyOnRails
[15:53:34] a1fa: because /lock was the referer.. this is kind of a hack way of doing it
[15:53:49] makenoise: siaw: what are you using for the infinite scroll?
[15:54:03] roamingdog: roelof: so far seems pretty straightforward. a has many b, b has many c, a has many d
[15:54:05] [Butch]: has joined #RubyOnRails
[15:54:05] universa1: siaw: check the browser console for errors. otherwise: show ;) but gtg
[15:54:06] a1fa: the work around for me would be to use flash notice, but its just ugly
[15:54:28] sbarg: has joined #RubyOnRails
[15:55:05] roelof: roamingdog: correct , this is a begining of a financial app, and I doubt it 's wise to use a model for everything. I will have lots of models at the end
[15:55:34] roamingdog: roelof: not sure what you mean - not wise to use a model for everything?
[15:55:47] siaW: universa1: the only thing showing in my console (js) is “application-c7e6c67….js:32 Uncaught Error: Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)” but that shows for the local app as well and it works
[15:56:47] roelof: roamingdog: I have now modeled the accounts. I will also later need customers, invoices, bills and so on, if I made a model for everything there will be a lot of models
[15:56:56] roelof: I do not know if that is wise
[15:57:46] smoitra: has joined #RubyOnRails
[15:58:13] roamingdog: roelof: i would say it is indeed wise, and the rails way, to encapsulate each logical business entity in a model
[15:58:41] roelof: roamingdog: oke, then I will go that way
[15:58:43] roamingdog: roelof: what would be the alternative to 'lots of models'?
[15:58:50] a1fa: if you have GET actions, how do you still show Model.errors without cramming them into flash notice, and by redirecting back to controller#show?
[15:58:50] Papierkorb: roelof: models (or classes in general) are cheap. Maintaining software is not.
[15:59:01] roelof: roamingdog: I do not know that's why I asked here
[15:59:36] norc: has joined #RubyOnRails
[16:00:38] navneet_: has joined #RubyOnRails
[16:01:49] dionysus69: has joined #RubyOnRails
[16:01:51] chouhoulis: has joined #RubyOnRails
[16:01:54] context: a1fa: flash.now if you want to still do <%= flash crap %> in the view
[16:01:56] davidw: has joined #RubyOnRails
[16:01:57] siaW: i’m using javascript do do infinte scrolling and it’s working locally but not on heroku, any ideas?
[16:02:25] context: look at the logs ?
[16:02:26] navneet: has joined #RubyOnRails
[16:02:29] DragonPunch: has joined #RubyOnRails
[16:02:33] context: look at the dev console in your browser ?
[16:02:44] timdotrb: has joined #RubyOnRails
[16:02:54] context: "it dont work" is hardly a description of the problem you are having.
[16:03:09] navneet__: has joined #RubyOnRails
[16:03:41] siaW: context, heroku has no errors. and console has no errors either
[16:04:15] siaW: locally when i scroll down, more stuff loads. on heroku nothing loads
[16:04:46] a1fa: context: yeah, but i kind of wanted to to so it matches my validation errors
[16:05:18] context: a1fa: stop making modifications over GET requests.
[16:05:25] GeorgesLeYeti: has joined #RubyOnRails
[16:05:28] context: a1fa: no, not "just this one case", just stop.
[16:05:29] a1fa: context: :)
[16:05:49] a1fa: context: use post/update with action?
[16:05:54] context: a1fa: its common for web-accelerators to pre-fetch GET links/whatever, so just dont.
[16:06:00] context: siaw: url ?
[16:06:15] siaW: context: https://evening-beyond-84055.herokuapp.com/
[16:06:37] DoctorMonocular: has joined #RubyOnRails
[16:06:50] siaW: context: on my github https://github.com/siaw23/devsnap
[16:06:52] context: siaw: you are getting an error about Tether
[16:06:57] a1fa: context: do you suggest adding hooks into update?
[16:07:08] siaW: context: yes i get it locally too but works anyway
[16:07:14] context: a1fa: im suggesting NOT modifying data over GET requests.
[16:07:20] cabinB: has joined #RubyOnRails
[16:07:37] polishdub: has joined #RubyOnRails
[16:07:57] GeorgesLeYeti: It might be a recurrent question but do you have any "recent" and good comparaison between app servers (Puma/Unicorn/Passenger...)
[16:07:57] a1fa: context: you have a valid point
[16:08:10] context: siaw: does heroku support websocket
[16:08:20] siaW: i have no idea
[16:08:28] petor: has joined #RubyOnRails
[16:08:39] siaW: context: where are you seeing that?
[16:08:39] GeorgesLeYeti: My app is currently with Puma but I heard passenger a bit.
[16:09:06] stardiviner: has joined #RubyOnRails
[16:09:13] JakFrist: has joined #RubyOnRails
[16:09:59] context: siaw: that was a question.
[16:10:20] context: siaw: im not sure what to say right off the bat. try putting some debugging console.log in places to see where things are stopping
[16:10:27] macsteps: has joined #RubyOnRails
[16:12:33] lxsameer: has joined #RubyOnRails
[16:13:24] adlerdias: has joined #RubyOnRails
[16:14:12] pawnbox: has joined #RubyOnRails
[16:14:32] RegulationD: has joined #RubyOnRails
[16:18:42] pawnbox: has joined #RubyOnRails
[16:22:03] mwlang: has joined #RubyOnRails
[16:22:11] Macaveli: has joined #RubyOnRails
[16:24:09] xcesariox: has joined #RubyOnRails
[16:27:18] diegoaguilar: has joined #RubyOnRails
[16:30:05] tvon: has joined #RubyOnRails
[16:34:14] moeabdol: has joined #RubyOnRails
[16:34:17] emachnic: has joined #RubyOnRails
[16:37:14] IrishGringo: has joined #RubyOnRails
[16:37:15] idefine: has joined #RubyOnRails
[16:46:53] manfrin: has joined #RubyOnRails
[16:48:33] jowiar: has joined #RubyOnRails
[16:48:55] bbrowning: has joined #RubyOnRails
[16:49:12] godzillaenlacasa: has joined #RubyOnRails
[16:49:59] billy1234: has joined #RubyOnRails
[16:50:41] rakm: has joined #RubyOnRails
[16:50:52] sleungcy: has joined #RubyOnRails
[16:50:53] frem_: has joined #RubyOnRails
[16:52:33] flashpoint9: has joined #RubyOnRails
[16:52:45] idefine: has joined #RubyOnRails
[16:54:26] brendan-: has joined #RubyOnRails
[16:55:22] tvon: has joined #RubyOnRails
[16:56:15] yellow5: has joined #RubyOnRails
[16:56:48] DoubleMalt: has joined #RubyOnRails
[16:58:01] gambl0re: has joined #RubyOnRails
[16:58:01] gambl0re: has joined #RubyOnRails
[16:58:38] bricker: has joined #RubyOnRails
[17:01:18] borodin: has joined #RubyOnRails
[17:08:39] Cohedrin: has joined #RubyOnRails
[17:10:56] itsmeduncan: has joined #RubyOnRails
[17:12:19] jowiar: has joined #RubyOnRails
[17:13:38] tildes: has joined #RubyOnRails
[17:14:36] delgiudices: has joined #RubyOnRails
[17:17:32] JakFrist: has joined #RubyOnRails
[17:17:44] moeabdol: has joined #RubyOnRails
[17:17:59] flashpoint9: has joined #RubyOnRails
[17:18:18] sypheren: has joined #RubyOnRails
[17:20:23] baweaver: has joined #RubyOnRails
[17:21:05] bob434: has joined #RubyOnRails
[17:21:36] sneakerhax: has joined #RubyOnRails
[17:21:39] tvon: has joined #RubyOnRails
[17:21:48] srinidhi: has joined #RubyOnRails
[17:22:48] DoctorMonocular: has joined #RubyOnRails
[17:24:15] wolfravenous: has joined #RubyOnRails
[17:24:31] zave: has joined #RubyOnRails
[17:25:36] berserk_ren: good day, it is good to use partials instead of yield?
[17:25:43] arBmind: has joined #RubyOnRails
[17:26:34] berserk_ren: or yield is better for some reasons?
[17:26:43] PedramT: has joined #RubyOnRails
[17:27:52] mikecmpbll: has joined #RubyOnRails
[17:28:29] idefine_: has joined #RubyOnRails
[17:29:23] bob434: has joined #RubyOnRails
[17:30:06] lemur: has joined #RubyOnRails
[17:30:59] sp1rs: has joined #RubyOnRails
[17:33:21] sp1rs: has joined #RubyOnRails
[17:34:15] Aswebb_: has joined #RubyOnRails
[17:34:38] Devalo: has joined #RubyOnRails
[17:35:34] SteenJobs: has joined #RubyOnRails
[17:36:27] macsteps: has joined #RubyOnRails
[17:36:35] bronson: has joined #RubyOnRails
[17:38:45] djbkd: has joined #RubyOnRails
[17:40:20] benlieb: has joined #RubyOnRails
[17:40:59] wolfravenous: has joined #RubyOnRails
[17:42:59] emachnic: has joined #RubyOnRails
[17:43:07] emachnic_: has joined #RubyOnRails
[17:43:21] akshat_: has joined #RubyOnRails
[17:47:48] JakFrist: has joined #RubyOnRails
[17:49:17] poolparty: has joined #RubyOnRails
[17:49:59] poolparty: has anyone here instrumented Sidekiq jobs before for duration? Any tools, advice you'd like to share-and-tell?
[17:50:02] poolparty: ACTION is looking for the quickest way to instrument Sidekiq jobs that aren't his
[17:50:37] baweaver: has joined #RubyOnRails
[17:51:00] sp1rs: has joined #RubyOnRails
[17:51:08] mdw: has joined #RubyOnRails
[17:51:58] Cohedrin_: has joined #RubyOnRails
[17:53:06] HenriettaSalt: has joined #RubyOnRails
[18:02:21] mdw7: has joined #RubyOnRails
[18:03:09] mdw7: has joined #RubyOnRails
[18:03:23] hobodave: poolparty we use New Relic for that
[18:04:25] Scriptonaut: has joined #RubyOnRails
[18:06:31] idefine: has joined #RubyOnRails
[18:06:32] tildes: berserk_ren: you can use both partials and content_for/yield in the same app. partials seem to be more common though
[18:08:45] Scriptonaut: Hey guys, I am using memcached. For some reason, memcached or Rails.cache is adding a hash to the end of all my keys. It's the same for all items. So, my cache key is "Task-83/last_updated/blah/mystery_hash". I want to figure out where mystery hash is coming from, so that I can successfully fetch these things
[18:09:09] Scriptonaut: I even flushed and restarted memcached, and it uses the same exact hash as it did before
[18:09:30] Scriptonaut: I doubt it matters, but this is the hash: ed5e1840fa9ad8ceaf350c6013ec9c32
[18:10:37] heydonovan: has joined #RubyOnRails
[18:12:38] jowiar: has joined #RubyOnRails
[18:14:08] diegoviola: has joined #RubyOnRails
[18:14:26] d5sx43: has joined #RubyOnRails
[18:15:02] tvon: has joined #RubyOnRails
[18:15:10] smathy: ACTION would trace into the `.cache` call to see where that was being added.
[18:15:25] Scriptonaut: that's what I'm doing right now
[18:15:28] Scriptonaut: still haven't found it
[18:15:53] crdpink: has joined #RubyOnRails
[18:16:07] Scriptonaut: is there some tool or method I can use to trace? Right now I'm just looking at the action_controller code
[18:16:18] smathy: Heh, yes, byebug.
[18:16:40] smathy: ...you ain't tracing without it :)
[18:17:38] ferr: has joined #RubyOnRails
[18:18:25] siaW: has joined #RubyOnRails
[18:19:52] Limix: has joined #RubyOnRails
[18:22:57] kristofferR: has joined #RubyOnRails
[18:23:54] sypheren: has joined #RubyOnRails
[18:24:13] idefine: has joined #RubyOnRails
[18:26:44] barttenbrinke: has joined #RubyOnRails
[18:29:57] siaW: has joined #RubyOnRails
[18:30:16] Limix: Hi all, are there any tools to make running a single test easier? I’ve been using ruby-test in atom but it doesn’t work well with pry
[18:31:12] Limix: or is there a simple set of flags to filter and run only a single test?
[18:31:34] pwnd_nsfw: cmd line is for winners
[18:32:54] duderonomy: has joined #RubyOnRails
[18:33:06] yellow5: has joined #RubyOnRails
[18:33:17] poweratom__: has joined #RubyOnRails
[18:33:25] netzfisch: has joined #RubyOnRails
[18:34:59] havenwood: Limix: Maybe have Guard run your tests whenever a file is modified?
[18:35:07] havenwood: Limix: Minitest or RSpec?
[18:35:09] zave: has joined #RubyOnRails
[18:35:21] havenwood: Limix: https://github.com/guard/guard-minitest#readme
[18:36:33] Limix: is there a way to run a single test with guard?
[18:36:57] tribals: has joined #RubyOnRails
[18:36:59] mikecmpbll: has joined #RubyOnRails
[18:37:32] bronson: has joined #RubyOnRails
[18:37:48] test: has joined #RubyOnRails
[18:37:56] test: hey can someone pleaseeeeee help me
[18:38:16] Guest21806: I am going insane, i have been through every tutorial and have a very simple question/problem but cant find a solution
[18:38:19] jstransky: has joined #RubyOnRails
[18:39:56] Guest21806: Here is exactly what I do... 1. Rails new Webapp 2. delete public index in config 3. rails generate controller welcome index 4. I uncomment the welcome index line in the routes file 5. i start the server ..... undefined method `[]' for nil:NilClass is the error I am getting, i can not get it to route to the welcome index anyone know why???
[18:40:52] blackmesa: has joined #RubyOnRails
[18:41:05] billy1234: has joined #RubyOnRails
[18:42:11] zave: has joined #RubyOnRails
[18:42:53] Guest21806: Anyone there?
[18:44:02] delgiudices: has joined #RubyOnRails
[18:44:44] havenwood: Guest21806: nil[] #!> NoMethodError: undefined method `[]' for nil:NilClass
[18:46:10] benlieb: It seems like every couple of years I need to ask this question. Are there any freelancers in the Bay Area reading this and what do you charge hourly? I have done the googling and just want to speak to humans right now. I have 15 years of dev experience, 8 with rails, and work full stack. I just quit a job at $140k, I'm getting freelance offers and not sure what to quote.
[18:47:37] Guest21806: yes havenwood
[18:48:43] treehug88: has joined #RubyOnRails
[18:48:53] Guest21806: it says NoMethodError in Home#index
[18:51:33] roelof: has joined #RubyOnRails
[18:52:03] akshat: has joined #RubyOnRails
[18:52:03] roelof: Hello, is there another good beginners book to learn rails except Hartl's tutorial ?
[18:52:08] idefine: has joined #RubyOnRails
[18:53:40] smathy: Limix, I just wrote an alias foo="bundle exec ruby -Ilib:test" and then foo test/filename -n /regex for test name/
[18:54:10] akshat: has joined #RubyOnRails
[18:54:12] Limix: nice thank you
[18:54:41] smathy: Limix, there's also m: https://github.com/qrush/m
[18:55:21] EdwardIII: has joined #RubyOnRails
[18:55:24] PedramT: has joined #RubyOnRails
[18:55:30] idefine_: has joined #RubyOnRails
[18:56:13] smathy: Limix, note that the regex is for the actual method name, which if you use the `test "foo bar" do` syntax will be `test_foo_bar`
[18:56:30] xall: has joined #RubyOnRails
[18:57:17] tildes: roelof: how about http://guides.rubyonrails.org/ or http://railsgirls.com/materials ?
[18:58:25] shinnya: has joined #RubyOnRails
[18:58:30] Limix: thank you smathy, I;m checking out m
[18:58:32] roelof: tildes: you mean these ones : http://guides.railsgirls.com/
[18:58:39] tildes: roelof: you might like Rails 4 in action, seems like a really nice book
[18:58:41] jottr: has joined #RubyOnRails
[18:59:06] gambl0re: anyone have experience with laravel?
[18:59:59] tildes: roelof: humm... I mean specifically the materials, unless you want to organize a rails girls event
[19:00:00] Aherin: has joined #RubyOnRails
[19:00:09] tildes: (at least that's how I read their pages)
[19:00:26] roelof: nope, I saw there also some tutoriuals to build a app
[19:01:14] roelof: Like this one : http://guides.railsgirls.com/app or this one : http://guides.railsgirls.com/devise
[19:01:58] tildes: roelof: I don't know those materials personally, but trust them (and some of the people in the movement) enough, to recommend them
[19:02:01] hnanon: has joined #RubyOnRails
[19:02:25] hnanon: What's the migration generation code for precision and scale?
[19:02:42] hnanon: rails g migration price:....?
[19:02:53] roelof: oke, I like Hartls book but I find the chapters about logging in and out not clear. Too much things on too much places. I loose track then
[19:02:57] bob434: has joined #RubyOnRails
[19:03:59] hnanon: {:precision => 8, :scale => 2}
[19:04:32] wolfravenous: has joined #RubyOnRails
[19:05:16] renegadeandy: has joined #RubyOnRails
[19:08:25] jowiar: has joined #RubyOnRails
[19:08:47] LastWhisper____: has joined #RubyOnRails
[19:09:06] macsteps: has joined #RubyOnRails
[19:13:06] someish: has joined #RubyOnRails
[19:14:41] yfeldblum: has joined #RubyOnRails
[19:14:57] darrik: has joined #RubyOnRails
[19:15:48] rubyonrails223: has joined #RubyOnRails
[19:16:56] tildes: Say I extend a Ruby class, how can I run the original test suite for the extended class, together with my own test suite?
[19:17:13] djbkd: has joined #RubyOnRails
[19:17:14] tildes: The original tests are minitest, and I have written my tests with rspec.
[19:18:03] stardiviner: has joined #RubyOnRails
[19:18:12] tildes: So I guess the questions are how to attach a minitest test into rspec suite in the first place, and then, how to link to the original tests (or should I perhaps just copy them under spec folder?)
[19:18:48] tildes: has joined #RubyOnRails
[19:20:41] idefine: has joined #RubyOnRails
[19:21:18] smathy: These original minitest tests are from some gem or something?
[19:23:19] tildes: smathy: the original minitests are from ruby/test, for the class in question
[19:23:37] blackmesa: has joined #RubyOnRails
[19:24:04] idefine_: has joined #RubyOnRails
[19:24:28] ericmeds: has joined #RubyOnRails
[19:24:57] tildes: I suppose I will need to copy them
[19:25:05] Dimik: has joined #RubyOnRails
[19:25:14] tildes: i.e. have actual copies under spec
[19:26:30] Limix: has joined #RubyOnRails
[19:26:32] jenrzzz: has joined #RubyOnRails
[19:26:32] jenrzzz: has joined #RubyOnRails
[19:27:17] djbkd: has joined #RubyOnRails
[19:27:31] darrik: has joined #RubyOnRails
[19:27:44] tildes: For sure, I also need to inject the extended class to the original tests
[19:30:24] idefine: has joined #RubyOnRails
[19:31:15] amortimer: has joined #RubyOnRails
[19:31:33] jottr: has joined #RubyOnRails
[19:31:54] StaticVoid: has joined #RubyOnRails
[19:32:14] baweaver: has joined #RubyOnRails
[19:34:59] Aswebb_: has joined #RubyOnRails
[19:35:33] alexhartley: has joined #RubyOnRails
[19:38:03] beauby_: has joined #RubyOnRails
[19:38:26] bronson: has joined #RubyOnRails
[19:39:11] mikecmpbll: has joined #RubyOnRails
[19:39:25] smathy: ACTION is still lost
[19:41:29] joshkovach: has joined #RubyOnRails
[19:43:44] draig: has joined #RubyOnRails
[19:44:12] pawnbox: has joined #RubyOnRails
[19:44:43] adre: has joined #RubyOnRails
[19:45:30] King_Rex: has joined #RubyOnRails
[19:45:38] yellow51: has joined #RubyOnRails
[19:46:54] sp1rs: has joined #RubyOnRails
[19:53:00] baweaver: has joined #RubyOnRails
[19:53:21] lemur: has joined #RubyOnRails
[19:54:38] yellow5: has joined #RubyOnRails
[19:57:45] tildes: has joined #RubyOnRails
[19:57:53] rattatmatt: has joined #RubyOnRails
[19:59:26] Spami: has joined #RubyOnRails
[20:00:12] moeabdol: has joined #RubyOnRails
[20:00:14] DoctorMonocular: has joined #RubyOnRails
[20:00:37] brianpWins: has joined #RubyOnRails
[20:02:53] norc_: has joined #RubyOnRails
[20:03:13] aegis3121: has joined #RubyOnRails
[20:04:21] benlieb: anyone here done a thorough survey of the best editors for Rails work? I've been using Vi for 12 years, but recently I've been recently limited, especially seeing screencasts with other editors. Opinions?
[20:04:30] blackmesa: has joined #RubyOnRails
[20:04:41] djbkd: has joined #RubyOnRails
[20:05:05] benlieb: I tried to set up ruby mine at my last job, but couldn't get it working, even with the help of another rails dev who DID have it working. I quit the job before I bothered to try again.
[20:05:14] poolparty: hobodave: so you report all your Sidekiq measurements to New Relic also yes?
[20:05:45] itsmeduncan: has joined #RubyOnRails
[20:08:17] fruitstand: has joined #RubyOnRails
[20:08:30] smathy: benlieb, ride what ya brung.
[20:08:57] Darmani: Hey guys, could someone explain this code to me? I'm using Pundit for authentication and this matcher to help with the testing but I'm not really sure how it works.
[20:08:58] Darmani: https://gist.github.com/mfifth/77b45f25d2ed0904c1dab8bae626c63b
[20:09:00] S1kx: has joined #RubyOnRails
[20:09:23] djbkd: has joined #RubyOnRails
[20:09:29] cschneid: has joined #RubyOnRails
[20:09:46] Papierkorb: Darmani: what do you mean exactly? How it interacts/integrates with RSpec? What the match block does?
[20:09:47] Darmani: I could link the whole project if someone really needs to see it.
[20:10:01] Papierkorb: Or how to use it?
[20:10:06] Darmani: Papierkorb: Yeah all of what you just said.
[20:10:19] Darmani: I know how to use it I'm not sure how it does what it does.
[20:10:23] Darmani: For lack of better words.
[20:10:25] dionysus69: has joined #RubyOnRails
[20:10:51] Papierkorb: Darmani: 1) https://www.relishapp.com/rspec/rspec-expectations/v/3-3/docs/custom-matchers/define-matcher
[20:11:38] Darmani: Papierkorb: Lmao sometimes I feel so dumb. I don't know why I post here without googling it first.
[20:11:47] Papierkorb: Darmani: 2) It calls the given 'action' (which you write on the right side kinda of the expectation) on the 'policy' object (which is the one in the expect() method)
[20:12:06] Papierkorb: 3) expect(my_policy).to permit_action :the_action_name
[20:12:52] Devalo: has joined #RubyOnRails
[20:12:56] Darmani: Papierkorb: Um..
[20:13:07] Darmani: Could I ask another question?
[20:13:34] Darmani: What about the code itself exactly... Like the syntax?
[20:13:47] itsmeduncan: has joined #RubyOnRails
[20:14:43] Papierkorb: Darmani: Mh? That's usual ruby code within a DSL. Rubyists love DSLs. (DSL = Domain Specific Language .. if want to ease googling that)
[20:16:08] Darmani: Papierkorb: So it's like a custom method we write that vets (for lack of a better word) specific actions. I get that. But I wouldn't know how to write one, or even how this one makes sense xD
[20:16:48] Darmani: I guess that's why google exists.
[20:16:50] Darmani: ACTION sighs
[20:17:06] snowy: has joined #RubyOnRails
[20:17:37] Papierkorb: Darmani: well building one yourself may be an advanced topic. It's basically having an object with the desired methods and taking a block and executing it with the_dsl_object.instance_exec(&block) .. but there are plenty of blogs out there explaining that in more detail
[20:18:22] Darmani: Papierkorb: Well I'll get to reading then ^.^ thank you friend.
[20:19:47] idefine: has joined #RubyOnRails
[20:20:11] MEATCHICKEN: has joined #RubyOnRails
[20:20:24] MEATCHICKEN: I have an env variable that a class needs as a constant
[20:20:30] Limix: has joined #RubyOnRails
[20:20:34] hobodave: poolparty yes
[20:20:38] MEATCHICKEN: best way to access it?
[20:20:49] MEATCHICKEN: Does env have a huge performance cost because it calls out to shell?
[20:22:11] Papierkorb: meatchicken: it doesn't. It's basically a wrapper around the getenv() POSIX function (Or equivalent method on non-POSIX systems)
[20:22:35] Papierkorb: meatchicken: and best way .. THE_VAR = ENV['THE_VAR'] ?
[20:23:51] DoctorMonocular: has joined #RubyOnRails
[20:25:09] MEATCHICKEN: Papierkorb, thanks
[20:25:18] marr: has joined #RubyOnRails
[20:25:27] JakFrist: has joined #RubyOnRails
[20:25:49] Megamos: has joined #RubyOnRails
[20:26:08] Darmani: Papierkorb: Wow. It's not super complicated. I think I understand most of it.
[20:26:32] Papierkorb: Darmani: yeah once you grasp the idea behind it it gets much clearer
[20:26:41] fruitstand: I've got some questions about support for SSLv2/3. From my googling, with my very basic understanding of rails, it seems like the only way to force the use of a specific ssl/tls version is at the time you make or serve a request, correct?
[20:26:53] Darmani: Papierkorb: It just looks scary at first d: lol
[20:30:34] jowiar: has joined #RubyOnRails
[20:31:14] StaticVoid: Hi all. Question about rspec. I have 11 specs, I can run them all one-by-one, but if I run all spec at once (rspec spec), then it only runs 10
[20:31:44] Darmani: StaticVoid: bundle exec rspec should run everything
[20:32:18] StaticVoid: tried that... does the same thing :(
[20:32:29] StaticVoid: I must be doing something wrong...
[20:32:36] Papierkorb: StaticVoid: I think I had a similar issue once. Don't remember really, but I think I had two specs with the same file name describing the same class or something
[20:32:48] Darmani: Have you sacrificed a small goat to the Rails gods yet?
[20:32:51] Darmani: You have to do that too.
[20:33:15] ss_much: has joined #RubyOnRails
[20:33:23] fruitstand: anyone know if I'm right about the ssl/tls version? that you can only specify what specific version to use at the time of a request being served/sent?
[20:33:31] StaticVoid: Darmani: Ah! That's it. I did the special dance to the Gods, but forgot about the goat! :P
[20:33:37] fruitstand: shit sorry wrong alt tab
[20:33:50] Darmani: StaticVoid: Well there you go d: lol
[20:33:56] Papierkorb: fruitstand: Sounds more of an issue of the HTTP server you're using. Check with your front-facing HTTP server
[20:34:06] Papierkorb: fruitstand: also, why do you want SSLv1 or v2?
[20:34:22] Papierkorb: That's as good as not encrypting at all
[20:34:49] fruitstand: well I don't, but at runtime, the rails server crashes because openssl finally stopped including sslv2
[20:35:26] fruitstand: which isn't a problem, per se, I can just downgrade and it runs fine, but I'd just assumed I was using a more modern version and I'd rather deal with this now rather than wait for it to become a problem.
[20:35:31] Papierkorb: fruitstand: do you use RVM?
[20:35:46] itsmeduncan: has joined #RubyOnRails
[20:35:51] Papierkorb: Plenty people had weird issues with RVM + SSL
[20:36:48] Papierkorb: Try at least rebuilding the ruby you use with it. Though I'd like to encourage dropping RVM completely and using either your distros own ruby package if recent enough, or chruby + ruby-install
[20:37:08] DoctorMonocular: has joined #RubyOnRails
[20:37:24] eljimmy: has joined #RubyOnRails
[20:37:29] fruitstand: this is a single purpose dev server so I don't suppose I'll need multiple ruby versions/gemsets anyway
[20:37:47] Cohedrin: has joined #RubyOnRails
[20:37:59] ur5us: has joined #RubyOnRails
[20:38:04] flashpoint9: has joined #RubyOnRails
[20:38:20] StaticVoid: Darmani: Found it... helps if you name your file properly.....ugh
[20:38:56] Papierkorb: StaticVoid: Maybe open a GH issue on it. It could at least warn you IMO.
[20:39:06] Darmani: StaticVoid: Dude I spent two hours yesterday doing the same thing only to find there was a fucking typo on my test lol
[20:39:09] Darmani: You are not alone.
[20:40:19] StaticVoid: Papierkorb: Is there no other reason to have a non-spec file in the spec folder? 'cause if there is, it will probably not be seen as a bug
[20:40:36] fruitstand: if there was an IDE that detected typos somehow I would give my left nut for it
[20:42:43] macsteps: has joined #RubyOnRails
[20:43:14] Darmani: Hey guys, is there a good tutorial to learn HTML/CSS? I should probably learn that while I'm learning Rails too.
[20:43:25] FastJack: has joined #RubyOnRails
[20:43:43] idefine: has joined #RubyOnRails
[20:44:10] n008f4g_: has joined #RubyOnRails
[20:44:17] Papierkorb: Darmani: Not W3Schools. Just skip those. As reference, use the MDN (= Mozilla Developer Network) which is cross-browser
[20:44:17] macsteps: has joined #RubyOnRails
[20:44:31] netzfisch: has joined #RubyOnRails
[20:44:40] Papierkorb: Darmani: Oh and not right now, but you'll thank me later for bookmarking this: http://caniuse.com/
[20:45:05] Darmani: Papierkorb: :O
[20:45:13] Darmani: ACTION worships Papierkorb
[20:45:39] mdw: has joined #RubyOnRails
[20:45:45] Papierkorb: Darmani: Now, for actual learning .. hrm. I don't like books so can't recommend any. I'd just start doing what you want and then read up on stuff you don't know.
[20:46:16] Darmani: Papierkorb: How did you learn?
[20:46:19] Papierkorb: Darmani: I think it's fine to gradually learn and get better at stuff
[20:47:05] fruitstand: hahaha downsides to using OLD laptops as dev servers: compiling turns the computer into a barely responsive mess and the processor usage graph becomes a green rectangle
[20:47:15] Radar: GOOD MORNING
[20:47:16] Papierkorb: can't remember tbh. Probably just fiddled with notepad.exe many years ago and then went from there, reading stuff when I needed it, occasionally googling stuff I already 'knew' again to find new developments, etc.
[20:47:25] Papierkorb: Radar: OOOOHHHHAAAYYYOOOOO
[20:47:37] baweaver: same, most of what I learned on is defunct now
[20:47:46] baweaver: including the tutorials I wrote on HTML/CSS :D
[20:48:01] Radar: I assume you've all read my latest and greatest treatise on hiring juniors? http://ryanbigg.com/2016/04/hiring-juniors/
[20:48:12] havenwood: ACTION reads
[20:48:39] Darmani: Hey Radar ^^
[20:48:58] baweaver: http://baweaver.com/blog/2013/09/25/html-the-basics/ - that was the old one, originally written in 2011
[20:49:03] StaticVoid: Radar: read it this morning. Good write up. Especially since our comapny is expanding
[20:49:13] baweaver: small series on HTML, CSS, and some design stuff.
[20:50:16] Darmani: baweaver: I'll take a look man thanks ^^
[20:50:32] baweaver: note that they're fairly old, but some of it is still useful
[20:50:32] Megamosaren: has joined #RubyOnRails
[20:50:50] Radar: StaticVoid: thanks :D
[20:53:29] Darmani: Radar: Dude that is an awesome article man. I hope a lot of companies read it.
[20:54:19] itsmeduncan: has joined #RubyOnRails
[20:56:20] Papierkorb: Radar: looks like an interesting article as a will-be junior (Gimme that bachelor degree, c'mon!). Will read it on the train tomorrow-ish
[20:56:54] baweaver: Radar: re: what if they leave?
[20:56:57] Pumukel: has joined #RubyOnRails
[20:57:08] baweaver: what if you don't and they stay?
[20:57:35] thisisme: has joined #RubyOnRails
[20:57:37] baweaver: bitemyapp: oi, what are haskell folks doing in the rails channel? :{
[20:58:49] bitemyapp: baweaver: what are you doing here?
[20:58:58] baweaver: ./whois baweaver
[20:59:31] Papierkorb: baweaver: Ctrl+Enter lets you send a message without 'executing' it as command
[20:59:43] Papierkorb: /whois Papierkorb
[20:59:46] baweaver: Currently doing rails with work
[20:59:53] baweaver: might be client specific
[21:00:00] adaedra: /whois Papierkorb
[21:00:06] adaedra: I use // to negate the /
[21:00:10] baweaver: yep, limechat does it still
[21:00:21] adaedra: works at least with weechat and Textual
[21:01:34] baweaver: also Radar, I'm a certified badass developer
[21:01:46] rodfersou: has joined #RubyOnRails
[21:01:50] baweaver: off I go, planning time!
[21:02:15] moei: has joined #RubyOnRails
[21:02:26] Pritchard: has joined #RubyOnRails
[21:02:49] Pritchard: Hey I'm running a local MySQL instance on my Mac and for some reason when I try and connect to it from Spring (invoked by Ruby on Rails / Rake) it's trying to connect to a docker IP.
[21:03:19] rakm: has joined #RubyOnRails
[21:03:21] Pritchard: Any idea where that IP could have gotten encoded? No hardcoded IPs in the database.yml it all should come from the environment variables.
[21:04:00] jenrzzz_: has joined #RubyOnRails
[21:05:37] pawnbox: has joined #RubyOnRails
[21:06:26] Pritchard: Wow, closing and re-opening my terminals solved the problem. Seems like something weird was going on with the execution context!
[21:06:52] Pritchard: Like the Mac terminals were maintaining a different value for my RDS_HOSTNAME etc even though I was providing them alongside my command.
[21:07:17] context: spring doesnt reread config files along with other thiings
[21:07:27] context: you probably would have succeeded just restarting spring
[21:10:57] billy1234: has joined #RubyOnRails
[21:11:14] abolishme: has joined #RubyOnRails
[21:11:43] Radar: Darmani: thanks
[21:12:40] Pritchard: context: This is all through the command-line, and do I have Spring running? I'm not aware I have it as a long-running process.
[21:13:26] diegoaguilar: has joined #RubyOnRails
[21:14:29] jowiar: has joined #RubyOnRails
[21:15:50] idefine: has joined #RubyOnRails
[21:15:57] billy1234: has joined #RubyOnRails
[21:17:31] jgrevich: has joined #RubyOnRails
[21:18:11] fruitstand: more downsides to using old computers: rails documentation has been installing for a good 10, 20 minutes now
[21:21:08] macsteps: has joined #RubyOnRails
[21:21:10] Papierkorb: fruitstand: if you don't use it, you can skip it by passing --no-ri to bundler
[21:21:20] Papierkorb: err, gem install
[21:21:45] fruitstand: I'll have to keep that in mind for the future
[21:21:59] fruitstand: now I need to decide whether to restart without the docs or just let it finish
[21:22:16] Papierkorb: I always use pry to look at the docs anyway e.g., or google it
[21:22:29] Papierkorb: and pry parses the source directly anyway
[21:24:32] rails807: has joined #RubyOnRails
[21:28:25] atrius: has joined #RubyOnRails
[21:30:52] jowiar: has joined #RubyOnRails
[21:31:18] davidw: has joined #RubyOnRails
[21:31:37] idefine: has joined #RubyOnRails
[21:31:43] Darmani: Radar: I applied to that Turing thing you mentioned in your article.
[21:33:20] Coldblackice: has joined #RubyOnRails
[21:33:56] jgrevich: has joined #RubyOnRails
[21:35:30] Aswebb_: has joined #RubyOnRails
[21:35:44] beauby: has joined #RubyOnRails
[21:36:39] mikecmpbll: has joined #RubyOnRails
[21:37:37] fruitstand: ayyyyy got the rails server to start with the newest openssl version
[21:37:54] fruitstand: thanks for the help Papierkorb
[21:40:08] timdotrb: has joined #RubyOnRails
[21:40:15] timdotrb: Afternoon, all
[21:40:20] aegis3121: has joined #RubyOnRails
[21:40:25] bronson: has joined #RubyOnRails
[21:40:30] idefine: has joined #RubyOnRails
[21:40:35] jowiar: has joined #RubyOnRails
[21:42:07] timdotrb: I’m having some infuriating issues getting private chat working on my production server. Everything works fine locally, but when I try to run the chat server on my VPS I get an error that the connection is refused. After messing with that, I tried setting up the chat server on Heroku, but that’s not working, either. Heroku is coming back with the error: code=H13 desc="Connection closed without response"
[21:42:18] GodFather: has joined #RubyOnRails
[21:42:25] timdotrb: Does anyone have experience in dealing with private chat / the private pub gem?
[21:43:13] heydonovan: has joined #RubyOnRails
[21:46:16] Radar: Darmani: Oh rly? I love Turing so much.
[21:46:21] Radar: Darmani: It'd be good if you got in :)
[21:46:44] Radar: I think they have something ridiculous like a 95% work placement rate
[21:46:48] Darmani: Meh. I got discouraged when it came to the logic test... I couldn't even answer the first 3 question :[
[21:47:34] Darmani: Radar: I uploaded a video though.. so.. lol
[21:50:37] idefine: has joined #RubyOnRails
[21:51:35] rakm: has joined #RubyOnRails
[21:52:42] zave: has joined #RubyOnRails
[21:53:40] baweaver: has joined #RubyOnRails
[21:54:11] n008f4g_: has joined #RubyOnRails
[21:54:21] djbkd: has joined #RubyOnRails
[21:56:40] jenrzzz: has joined #RubyOnRails
[21:56:40] jenrzzz: has joined #RubyOnRails
[21:59:58] PlasmaStar: has joined #RubyOnRails
[22:00:44] Radar: Darmani: I encourage you to persist and try to answer those questions
[22:02:07] Darmani: Radar: Meh. I'll try I guess.
[22:02:34] baweaver: has joined #RubyOnRails
[22:03:21] Coldblackice: has joined #RubyOnRails
[22:06:56] weaksauce: Darmani what kind of logic questions?
[22:07:29] Darmani: weaksauce: um...
[22:08:24] Trynemjoel: has joined #RubyOnRails
[22:08:52] Darmani: Almost like math questions but more complicated? Like one was... There's a speech event? And like 8 people are giving a speech but one of them only speaks after another, one can only speak at the end, one has to speak right after another certain one speaks.
[22:09:11] Darmani: And you have to put them in order... It's a multiple choice test.
[22:09:21] djbkd: has joined #RubyOnRails
[22:09:35] Darmani: #fuck_that
[22:09:50] Papierkorb: Darmani: If you want to google that too, that's a Constraint Satisfaction Problem (or CSP for short)
[22:10:08] Darmani: Papierkorb: Great another thing to google
[22:10:08] chrisja: has joined #RubyOnRails
[22:10:11] idefine: has joined #RubyOnRails
[22:10:12] Darmani: thanks lol
[22:10:49] Papierkorb: Part of artificial intelligence. The algorithms for that are quite interesting. Not everyday-helpful, but when you need it you'll be thankful to know where to look em up :D
[22:12:09] Darmani: Papierkorb: Well thank you I suppose.
[22:12:48] Papierkorb: Yeah you'll absolutely need those in every project at least thrice j/k
[22:12:56] macsteps: has joined #RubyOnRails
[22:13:45] jaequery: has joined #RubyOnRails
[22:16:10] Cache_Money: has joined #RubyOnRails
[22:17:24] DoctorMonocular: has joined #RubyOnRails
[22:19:12] vizier: has joined #RubyOnRails
[22:21:43] mr-spoon: has joined #RubyOnRails
[22:24:05] akshat: has joined #RubyOnRails
[22:26:35] Coldblackice: has joined #RubyOnRails
[22:26:45] baweaver: has joined #RubyOnRails
[22:27:28] pvertenten: has left #RubyOnRails: ()
[22:30:34] delgiudices: has joined #RubyOnRails
[22:31:45] baweaver: Papierkorb: I end up with CSPs all the time
[22:32:09] baweaver: It's common in certain environments
[22:33:05] baweaver: namely config inheritance with preconditions bound to certain inputs
[22:33:09] baweaver: or gemfiles
[22:33:33] baweaver: gemfiles are basically the nightmare scenario for CSP
[22:34:09] Cohedrin: has joined #RubyOnRails
[22:34:39] ereslibre: has joined #RubyOnRails
[22:34:39] ereslibre: has joined #RubyOnRails
[22:34:53] _Tariq: has joined #RubyOnRails
[22:36:17] baweaver: Radar: shared about internally
[22:37:01] dragon9783: has joined #RubyOnRails
[22:40:19] comradelion: has joined #RubyOnRails
[22:40:38] comradelion: has left #RubyOnRails: ()
[22:41:06] bronson: has joined #RubyOnRails
[22:42:14] Radar: baweaver: thanks :)
[22:42:34] baweaver: will RT/etc for cookies
[22:45:54] flashpoint9: has joined #RubyOnRails
[22:47:54] idefine: has joined #RubyOnRails
[22:52:42] blackmesa: has joined #RubyOnRails
[22:54:32] jowiar: has joined #RubyOnRails
[22:54:53] superlou: has joined #RubyOnRails
[22:59:02] wethu: has joined #RubyOnRails
[22:59:03] jaequery: has joined #RubyOnRails
[23:00:58] Ropeney: has joined #RubyOnRails
[23:02:23] htmldrum: has joined #RubyOnRails
[23:02:55] ishe: has joined #RubyOnRails
[23:05:33] mwlang: has joined #RubyOnRails
[23:06:06] mwlang: I’m running rspec on the dry_crud gem. How do I interpret [1:3:2:1] in this rspec output? “rspec ./spec/controllers/crud_test_models_controller_spec.rb[1:3:2:1] # CrudTestModelsController GET new with params sets params as entry attributes”
[23:06:53] mwlang: usually that’s just a line number where [1:3:2:1] is appearing, but here, it’s some sort of mashup of numbers.
[23:08:37] Cache_Money: This is more of a philosophical rather than technical question... For fun I'm building an app where my friends and I can play FantasyGolf. We each pick a handful of players, alternating selections. Within the FantasyGame#picks view I check to see if it's the current_user's turn to pick, if so, I present the form w/ a dropdown to choose from. However, once they pick it's the next person turn and they have to know to refresh that page to see the
[23:08:38] Cache_Money: form. Is there a way to send a push notification (my app is only browser-based right now) to the user whose turn it is, once available?
[23:09:10] idefine: has joined #RubyOnRails
[23:10:18] Cache_Money: I'm assuming I'll need to use some sort of JS library.. I'm just not really sure what I should Google for. Or if it's even possible.
[23:11:41] mwlang: Cache_Money: google long-polling for rails
[23:12:01] mwlang: I think, also commonly called “comet”
[23:13:37] Cache_Money: mwlang: sweet!
[23:13:37] Pathfinder: has joined #RubyOnRails
[23:16:17] idefine: has joined #RubyOnRails
[23:17:06] jhack: has joined #RubyOnRails
[23:17:10] RegulationD: has joined #RubyOnRails
[23:17:58] crystal77: has joined #RubyOnRails
[23:18:33] beauby: has joined #RubyOnRails
[23:18:41] jstransky: has joined #RubyOnRails
[23:19:52] idefine_: has joined #RubyOnRails
[23:22:01] LastWhisper____: has joined #RubyOnRails
[23:26:28] idefine: has joined #RubyOnRails
[23:26:45] jokke: has joined #RubyOnRails
[23:27:11] baweaver: has joined #RubyOnRails
[23:29:48] bob434: has joined #RubyOnRails
[23:30:03] Cache_Money: mwlang: I'm leaning towards using Pusher since they offer a Free version with up to 100 max connections & 200k messages/day (which is plenty for my needs)
[23:32:21] mwlang: Cache_Money: I don’t know anything about Pusher, but if the shoe fits…
[23:33:13] ur5us: has joined #RubyOnRails
[23:35:37] Radar: mwlang: that line number thing might be happening because the test is dynamically generated
[23:36:07] ur5us_: has joined #RubyOnRails
[23:36:21] Aswebb_: has joined #RubyOnRails
[23:36:55] alexhartley: has joined #RubyOnRails
[23:39:40] aloneintheworld: has joined #RubyOnRails
[23:39:52] dchris: has joined #RubyOnRails
[23:40:26] flashpoint9: has joined #RubyOnRails
[23:41:40] jstransky: has joined #RubyOnRails
[23:41:53] aloneintheworld: I have an index view that renders @stories and also contains a form for story creation that goes to the “create” action. If the creation fails, I render :index, but it fails because @stories is not instanced on the create action. What’s the proper way to solve this? Should I instance @stories in the “create” action when the creation fails ?
[23:42:04] bronson: has joined #RubyOnRails
[23:42:16] Radar: @aloneintheworld: eys
[23:42:46] aloneintheworld: ok, thanks! I always wonder what’s the rails way to do or solve things
[23:43:10] idefine: has joined #RubyOnRails
[23:43:10] Radar: if only there was some kind of book that showed you how to use rails 4
[23:43:12] helpa: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[23:43:24] bob434: has joined #RubyOnRails
[23:46:17] adre: has joined #RubyOnRails
[23:50:14] Talltree: has joined #RubyOnRails
[23:51:34] timdotrb: Is it possible to use a custom MySQL database with a Heroku app? I’ve tried setting the DATABASE_URL, but Heroku says it cannot be overridden. Tried setting prod values in database.yml to no avail
[23:54:23] lemur: has joined #RubyOnRails
[23:54:25] Radar: timdotrb: http://stackoverflow.com/questions/4708019/how-to-use-your-own-mysql-database-server-with-heroku
[23:55:18] timdotrb: Radar: I’ve tried setting DATABASE_URL, but Heroku says it cannot be overridden.
[23:55:32] Radar: timdotrb: what is the exact error message?
[23:55:45] 14WAAWCHC: has joined #RubyOnRails
[23:55:46] 7F1AAZUQW: has joined #RubyOnRails
[23:55:46] timdotrb: Radar: Setting DATABASE_URL and restarting ⬢ nightlyweb... !!!
[23:55:46] quazimodo: has joined #RubyOnRails
[23:55:46] timdotrb: ▸ Cannot overwrite attachment values DATABASE_URL.
[23:55:48] quazimod1: has joined #RubyOnRails
[23:56:05] Radar: timdotrb: and what command are you using to set it?
[23:56:17] smathy: If only those bastards at heroku offered customer support.
[23:56:20] smathy: ...oh, wait...
[23:56:21] timdotrb: Radar: heroku config:set DATABASE_URL=
[23:56:42] mwlang: Cache_Money: SSE is HTML5 way to do it nowadays. (I got curious): http://www.sitepoint.com/mini-chat-rails-server-sent-events/
[23:57:19] jarib: has joined #RubyOnRails
[23:57:19] jarib: has joined #RubyOnRails
[23:57:23] Radar: timdotrb: I don't know, sorry. smathy's right though: you should contact customer support and ask them.
[23:57:34] timdotrb: Radar: Alrighty, thanks.