« Back to channel list

#RubyOnRails - 11 July 2015

« Back 1 day Forward 1 day »
[00:00:01] rhizome: i have a soyburger for you
[00:00:03] giowong: is there a way to get the # sign to work in a double quote?
[00:00:09] giowong: like this stuation
[00:00:15] rhizome: define "work"
[00:00:33] rhizome: can you describe your situation in plain english
[00:00:35] giowong: the #makes the line a comment after the 2nd "
[00:01:15] bricker: "\"#{}\"" ?
[00:01:32] bricker: giowong: or are you trying to interpolate
[00:01:35] bricker: like javascript style?
[00:01:37] bricker: it's unclear
[00:01:55] rhizome: '"'+foo+'"'
[00:01:56] bricker: "thing1" + your_variable + "thing2"
[00:01:58] n008f4g_: has joined #RubyOnRails
[00:02:27] bricker: Or maybe a job for %Q{} eh?
[00:02:32] rhizome: quoted rails values can also be done with CSS
[00:02:51] rhizome: i think we lost them
[00:03:45] giowong: what does interpolate mean
[00:04:02] bricker: (verb) insert (something) between fixed points.
[00:04:36] giowong: https://gist.github.com/gwong89/3f275d5235a8570d39e4
[00:04:48] giowong: if u look at line 9
[00:04:59] giowong: it starts with a double quote because of the object
[00:05:37] giowong: i need to do the same for line 14, but the problem is that my api call is returning nothing, and im sure its the single quote problem
[00:06:03] giowong: if i put a double quote at the front and end, the whole line becomes a comment
[00:06:10] bricker: giowong: it's because you can't interpolate inside of single quotes
[00:06:19] bruno-: has joined #RubyOnRails
[00:06:23] eggoez: has joined #RubyOnRails
[00:06:39] bricker: giowong: use %Q{} as described here: https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals#The_.25_Notation
[00:07:07] chipotle: has joined #RubyOnRails
[00:07:19] bricker: it seems you have a weak understanding of how strings work in programming, it'll be hard for me to sit here and walk you through that
[00:08:03] bricker: It's fascinating to see all the different types of programmers come through here
[00:08:46] bricker: like here is a developer who apparently understands about concurrent requests, but not about strings or arrays
[00:09:53] SteenJobs: has joined #RubyOnRails
[00:11:42] jordanstorz: has joined #RubyOnRails
[00:13:05] wethu: has joined #RubyOnRails
[00:14:26] creature: has joined #RubyOnRails
[00:14:41] hotpancakes: has joined #RubyOnRails
[00:19:36] kb3ien: has joined #RubyOnRails
[00:21:47] mase-chatter: i'm a graphic designer aspiring to become a developer!
[00:21:55] mase-chatter: but man, its a lot of work
[00:22:20] funnel: has joined #RubyOnRails
[00:22:42] hotpancakes: has joined #RubyOnRails
[00:23:21] Oog: has joined #RubyOnRails
[00:23:41] fgo: has joined #RubyOnRails
[00:23:46] Oog: you know how i18n template parses %{variable} - how can i do that type of parsing in a regular string
[00:24:10] Oog: more like template replacement
[00:24:40] Oog: oh i see % forgot about that... built in ruby
[00:26:35] Papierkorb: It's just 2:26 AM here and string interpolation seems to be the issue of the day already
[00:26:36] bricker: mase-chatter: yes that's why we make a lot of money
[00:26:36] Oog: "test %{hi}" % :hi => 'blah right?
[00:26:54] Oog: Papierkorb: you never know whats its goin to be!
[00:26:57] Oog: each day is a new issue
[00:27:06] bricker: Oog: yeah that too
[00:27:07] Papierkorb: << "Wow such #{'interpolation'.upcase}"
[00:27:08] Oog: yesterday it was papertrail habtm lol
[00:27:23] bricker: Oog: there are about 90 ways to interpolate a string in Ruby
[00:27:40] Oog: im loading the string from a db so its not interpolation i think its templating
[00:27:48] Papierkorb: And that's not even counting ruby itself
[00:27:49] Oog: its "hi there my name is #{name}"
[00:28:36] Papierkorb: How again did the ruby eval bot work?
[00:30:30] rhizome: mambo dogface in the banana patch?
[00:30:41] bricker: Papierkorb: in the #ruby channel
[00:31:05] wasp__: has joined #RubyOnRails
[00:31:10] Papierkorb: bricker: ... I didn't even realize yet that it's #ruby only. m(
[00:32:38] iamse7en: has joined #RubyOnRails
[00:33:09] chouhoulis: has joined #RubyOnRails
[00:36:20] chipotle: has joined #RubyOnRails
[00:38:54] [H]unt3r: has joined #RubyOnRails
[00:40:44] giowong: :bricker thanks mate that worked
[00:42:19] Xiti: has joined #RubyOnRails
[00:44:24] microdex: has joined #RubyOnRails
[00:46:50] cajone: has joined #RubyOnRails
[00:50:00] devdazed: has joined #RubyOnRails
[00:50:10] Lightsword: has joined #RubyOnRails
[00:53:17] THpubs: has joined #RubyOnRails
[00:53:54] code-shah: has joined #RubyOnRails
[00:54:09] bonhoeffer: has joined #RubyOnRails
[00:56:28] Scripore: has joined #RubyOnRails
[00:56:41] THpubs: Hey guys what are the differences between paperclip and carrierwave gems for image uploading?
[00:56:49] one_zero: has joined #RubyOnRails
[00:59:20] THpubs: Im trying to look for a carrierwave alternative... eventhough their git page have been updated frequently the gem haven't been updated for more than a year!
[00:59:34] bonhoeffer: has joined #RubyOnRails
[01:00:52] noodman: has joined #RubyOnRails
[01:02:17] bronson: has joined #RubyOnRails
[01:02:56] Rodya_: has joined #RubyOnRails
[01:06:59] ledestin: has joined #RubyOnRails
[01:13:12] brain_shim: has joined #RubyOnRails
[01:14:02] bulavard: There's Dragonfly
[01:14:03] bulavard: https://github.com/markevans/dragonfly
[01:14:50] bulavard: A Ruby gem for on-the-fly processing - suitable for image uploading in Rails, Sinatra, etc...
[01:19:48] loc22: has joined #RubyOnRails
[01:21:06] josh: has joined #RubyOnRails
[01:22:20] hotpancakes: has joined #RubyOnRails
[01:22:44] matcouto: has joined #RubyOnRails
[01:29:14] beauby: has joined #RubyOnRails
[01:30:09] one_zero: has joined #RubyOnRails
[01:30:27] cajone: has left #RubyOnRails: ()
[01:31:42] Radar: GOOD MORNING
[01:33:15] unreal: has joined #RubyOnRails
[01:33:45] Guest71946: has joined #RubyOnRails
[01:34:03] bin_005_v: has joined #RubyOnRails
[01:35:58] eggoez: has joined #RubyOnRails
[01:41:30] mingsheng: has joined #RubyOnRails
[01:41:35] gerep: has joined #RubyOnRails
[01:41:55] rhizome: sleeping in today? :)
[01:42:17] GnuYawk: has joined #RubyOnRails
[01:42:58] gerep: Hi all! I have a question about good practices. I have a UsersController but now I want to add an invitation method which will not validate user password and the creation method will be different. Should I have a InvitationsController?
[01:45:21] microdex: has joined #RubyOnRails
[01:47:32] riskish: has joined #RubyOnRails
[01:47:35] beauby: has joined #RubyOnRails
[01:49:28] Radar: rhizome: Yes actually :)
[01:50:00] siemprefresco: has joined #RubyOnRails
[01:50:16] Hobogrammer_: has joined #RubyOnRails
[01:51:04] fgo: has joined #RubyOnRails
[01:52:40] bungoman: has joined #RubyOnRails
[01:53:37] Guest71946: has joined #RubyOnRails
[01:57:35] nickenchuggets: has joined #RubyOnRails
[01:57:35] nickenchuggets: has joined #RubyOnRails
[02:00:19] surrealanalysis: has joined #RubyOnRails
[02:01:58] jordanstorz: has joined #RubyOnRails
[02:02:23] Lightsword_: has joined #RubyOnRails
[02:03:14] christia1: has joined #RubyOnRails
[02:05:46] beauby: has joined #RubyOnRails
[02:06:17] towski_: has joined #RubyOnRails
[02:08:00] PlasmaStar: has joined #RubyOnRails
[02:08:23] x-light: morning radar
[02:08:32] x-light: well now its actually afternoon
[02:08:36] x-light: but only just.
[02:10:59] jeromelanteri: depend where you live. for me it's the morning.
[02:13:10] ValicekB: has joined #RubyOnRails
[02:14:25] siemprefresco: has joined #RubyOnRails
[02:16:07] surrealanalysis: has joined #RubyOnRails
[02:16:25] x-light: that it does. hope not too early in the morning :)
[02:16:53] Lightsword: has joined #RubyOnRails
[02:19:38] Hobogrammer: has joined #RubyOnRails
[02:20:32] Guest71946: has joined #RubyOnRails
[02:22:49] hotpancakes: has joined #RubyOnRails
[02:24:09] mikajo: has joined #RubyOnRails
[02:24:11] kiki_lamb: has joined #RubyOnRails
[02:24:35] beauby: has joined #RubyOnRails
[02:25:22] iamse7en: has joined #RubyOnRails
[02:28:55] daveomcd: has joined #RubyOnRails
[02:29:38] atrius: has joined #RubyOnRails
[02:30:22] cornerman: has joined #RubyOnRails
[02:30:34] siemprefresco: has joined #RubyOnRails
[02:30:53] j_mcnally: has joined #RubyOnRails
[02:31:35] j_mcnally: has joined #RubyOnRails
[02:31:48] bphogan: has joined #RubyOnRails
[02:32:21] RegulationD: has joined #RubyOnRails
[02:33:50] Lightsword_: has joined #RubyOnRails
[02:35:00] jordanstorz: has joined #RubyOnRails
[02:36:53] darrik: has joined #RubyOnRails
[02:37:13] bruno-: has joined #RubyOnRails
[02:37:43] Sylario: has joined #RubyOnRails
[02:46:12] microdex: has joined #RubyOnRails
[02:47:10] beauby: has joined #RubyOnRails
[02:49:44] charliesome: has joined #RubyOnRails
[02:51:09] jenrzzz: has joined #RubyOnRails
[02:54:29] RandyT: has joined #RubyOnRails
[02:54:30] siemprefresco: has joined #RubyOnRails
[02:55:05] mastyd: has joined #RubyOnRails
[02:55:07] mastyd: has left #RubyOnRails: ()
[02:55:46] yfeldblum: has joined #RubyOnRails
[02:57:01] metalic: has joined #RubyOnRails
[02:57:25] siemprefresco: has joined #RubyOnRails
[02:57:58] erichu: has joined #RubyOnRails
[02:58:05] dideler: has joined #RubyOnRails
[03:00:30] beauby: has joined #RubyOnRails
[03:02:42] dan0034001: has joined #RubyOnRails
[03:04:42] dan0034001: I am trying to setup Puma with Rack Cors
[03:05:27] dan0034001: doesnt seem to be working, OPTIONS requests are failing, had it working with unicorn, but want to try switching to puma because of this bug: https://github.com/cyu/rack-cors/issues/82
[03:10:35] shyshy: has joined #RubyOnRails
[03:11:45] siemprefresco: has joined #RubyOnRails
[03:12:07] beauby: has joined #RubyOnRails
[03:14:00] braincrash: has joined #RubyOnRails
[03:14:06] dan0034001: has joined #RubyOnRails
[03:16:28] ProLoser: has joined #RubyOnRails
[03:16:37] siemprefresco: has joined #RubyOnRails
[03:19:54] christiandsg: has joined #RubyOnRails
[03:22:39] hotpancakes: has joined #RubyOnRails
[03:24:04] jordanstorz: has joined #RubyOnRails
[03:25:20] woodson88: has joined #RubyOnRails
[03:26:54] nso95: has joined #RubyOnRails
[03:27:35] nso95: Hi! When I follow a link to my show action???s template, I get a blank page until I refresh???Any idea what could cause this problem?
[03:30:00] nickenchuggets: has joined #RubyOnRails
[03:31:43] viiralvx: has joined #RubyOnRails
[03:34:01] RegulationD: has joined #RubyOnRails
[03:35:24] eggoez: has joined #RubyOnRails
[03:35:56] chipotle: has joined #RubyOnRails
[03:36:49] mike___1234: has joined #RubyOnRails
[03:37:34] gremax: has joined #RubyOnRails
[03:41:00] xcesariox: has joined #RubyOnRails
[03:44:18] siemprefresco: has joined #RubyOnRails
[03:44:59] arashb: has joined #RubyOnRails
[03:47:02] microdex: has joined #RubyOnRails
[03:49:07] hotpancakes: has joined #RubyOnRails
[03:49:54] eminencehc_: has joined #RubyOnRails
[03:58:04] willywos: has joined #RubyOnRails
[04:11:25] x-light: has joined #RubyOnRails
[04:11:30] mary5030: has joined #RubyOnRails
[04:12:00] startupality: has joined #RubyOnRails
[04:16:28] teedex: has joined #RubyOnRails
[04:17:29] sevenseacat: has joined #RubyOnRails
[04:23:05] Maletor: has joined #RubyOnRails
[04:31:30] MEATCHICKEN: has joined #RubyOnRails
[04:32:26] vere: has joined #RubyOnRails
[04:34:54] hmnhf: has joined #RubyOnRails
[04:37:13] baweaver_: has joined #RubyOnRails
[04:42:02] neanderslob_: has joined #RubyOnRails
[04:43:21] baweaver: has joined #RubyOnRails
[04:44:47] lethjakman: has joined #RubyOnRails
[04:47:42] microdex: has joined #RubyOnRails
[04:55:07] pontiki: going out on a limb for monday night's rails meetup: i'm going to try and teach them about regexen!
[04:56:05] fighella: has joined #RubyOnRails
[04:56:41] pontiki: the absolute hardest part will be keeping the talk under 12 minutes
[04:56:59] pontiki: which is supposed to include Q&A
[04:57:01] jordanstorz: has joined #RubyOnRails
[04:57:11] rhizome: you can certainly hit the high points and hopefully include some pitfalls
[04:57:30] pontiki: i have to keep from rabbit holing, which is too easy to do
[04:58:36] rhizome: leave 'em wanting more
[04:58:51] pontiki: but i figure 5 minutes on the basics, then give them rubular, and then let them play on their own
[04:59:29] rhizome: i'd probably leave out the crowd participation angle, unless it's expected
[04:59:46] pontiki: the participation part is afters
[05:00:27] pontiki: most of the meetup is helping folks with their problems while they work on projects
[05:00:28] chinmay_dd: has joined #RubyOnRails
[05:00:39] pontiki: this is a beginners group
[05:00:44] rhizome: ah, hacknight type
[05:02:18] hotpancakes: has joined #RubyOnRails
[05:03:50] bronson: has joined #RubyOnRails
[05:03:51] rhizome: i'm finally buying a laptop this weekend, so hopefully i'll start going to things like that more
[05:07:03] x-light: has joined #RubyOnRails
[05:08:04] pontiki: meetups are basically my social life
[05:08:13] pontiki: rest of time is taking care of parents
[05:08:17] rhizome: i could use one of those
[05:09:06] Creeves: has joined #RubyOnRails
[05:09:37] hanss: has joined #RubyOnRails
[05:09:43] hotpancakes: has joined #RubyOnRails
[05:14:20] riotjones: has joined #RubyOnRails
[05:16:02] mary5030: has joined #RubyOnRails
[05:17:49] DoctorMonocular: has joined #RubyOnRails
[05:20:42] chouhoulis: has joined #RubyOnRails
[05:22:34] RegulationD: has joined #RubyOnRails
[05:22:45] melonstorm: has joined #RubyOnRails
[05:22:45] melonstorm: has joined #RubyOnRails
[05:23:47] nickenchuggets: has joined #RubyOnRails
[05:23:47] nickenchuggets: has joined #RubyOnRails
[05:27:54] Ropeney: has joined #RubyOnRails
[05:28:25] lxsameer: has joined #RubyOnRails
[05:29:36] simplyianm: has joined #RubyOnRails
[05:30:18] simplyianm: has joined #RubyOnRails
[05:30:42] xcesariox: has joined #RubyOnRails
[05:32:36] DoubleMalt: has joined #RubyOnRails
[05:35:51] bhuvanaurora: has joined #RubyOnRails
[05:38:01] Scripore: has joined #RubyOnRails
[05:38:14] towski_: has joined #RubyOnRails
[05:47:20] dan0034001: has joined #RubyOnRails
[05:48:22] microdex: has joined #RubyOnRails
[05:50:10] kies^: has joined #RubyOnRails
[05:50:11] artto: has joined #RubyOnRails
[05:53:35] Lightsword: has joined #RubyOnRails
[05:53:50] triangles: has joined #RubyOnRails
[05:57:38] triangles: If I want to use open-uri within a Rails model, where should I put the require statement?
[06:00:40] arashb: has joined #RubyOnRails
[06:00:57] lethjakman: has joined #RubyOnRails
[06:03:21] jackyzhai: has joined #RubyOnRails
[06:03:51] noodman: has joined #RubyOnRails
[06:04:35] hotpancakes: has joined #RubyOnRails
[06:07:04] Hates_: has joined #RubyOnRails
[06:07:17] Hates_: has joined #RubyOnRails
[06:09:03] cornerma1: has joined #RubyOnRails
[06:13:33] mary5030: has joined #RubyOnRails
[06:20:50] hmnhf_: has joined #RubyOnRails
[06:25:14] artto_: has joined #RubyOnRails
[06:25:28] krz: has joined #RubyOnRails
[06:26:30] pontiki: at the top of the file, like usual
[06:28:13] djbkd: has joined #RubyOnRails
[06:29:30] ndrei: has joined #RubyOnRails
[06:32:44] jenrzzz: has joined #RubyOnRails
[06:36:04] DoctorMonocular: has joined #RubyOnRails
[06:36:30] bricker: has joined #RubyOnRails
[06:37:01] microdex: has joined #RubyOnRails
[06:38:02] solars: has joined #RubyOnRails
[06:38:30] nightsh: has joined #RubyOnRails
[06:38:49] bhuvanaurora: has joined #RubyOnRails
[06:39:45] hmnhf__: has joined #RubyOnRails
[06:40:39] DoctorMo_: has joined #RubyOnRails
[06:40:53] triangles: So it's okay to just require things inside model files, you're not supposed to group them in any specific place?
[06:40:56] triangles: Thanks pontiki
[06:42:38] pontiki: no, *i* think it's better to require libraries in places you use them.
[06:42:57] pontiki: there's virtually no cost if you've already required it someplace already
[06:43:14] noodman: has joined #RubyOnRails
[06:43:18] pontiki: and a pain if you just assume it's included elsewhere and it's not
[06:45:37] Pupeno: has joined #RubyOnRails
[06:48:52] dan0034001: has joined #RubyOnRails
[06:49:01] triangles: ah, good point.
[06:50:27] Mia: has joined #RubyOnRails
[06:51:49] jenrzzz: has joined #RubyOnRails
[06:57:17] Creeves: has joined #RubyOnRails
[07:00:31] codeshah: has joined #RubyOnRails
[07:00:54] riotjones: has joined #RubyOnRails
[07:01:41] lethjakman: has joined #RubyOnRails
[07:01:44] teedex: has joined #RubyOnRails
[07:03:55] teedex_: has joined #RubyOnRails
[07:06:30] Sehryn: has joined #RubyOnRails
[07:06:42] GreatDanton: has joined #RubyOnRails
[07:07:30] Spami: has joined #RubyOnRails
[07:08:13] kies^: has joined #RubyOnRails
[07:10:19] hotpancakes: has joined #RubyOnRails
[07:10:56] qejk: has joined #RubyOnRails
[07:14:36] vigintas999: has joined #RubyOnRails
[07:15:53] darutoko: has joined #RubyOnRails
[07:17:25] bhuvanaurora: has joined #RubyOnRails
[07:21:54] eliasbagley: has joined #RubyOnRails
[07:29:04] hahuang61: has joined #RubyOnRails
[07:39:03] skroon: has joined #RubyOnRails
[07:51:03] skroon: do I have to use devise when connecting to a oauth2 provider?
[07:51:18] skroon: or is devise only needed when I want to also have local user/password checking?
[07:51:33] skroon: sevenseacat: I suck
[07:51:35] sevenseacat: devise isnt *needed* for anything.
[07:51:46] sevenseacat: if you just want to use omniauth, use omniauth
[07:52:05] skroon: sevenseacat: So i'm currently using devise + omniauth on the client side
[07:52:33] chinmay_dd: has joined #RubyOnRails
[07:52:46] skroon: sevenseacat: but I don't like the fact that I need to "choose the provider" during authentication, I want it to just automatically go straight to the login page of my identity provider
[07:53:28] robbyoconnor: has joined #RubyOnRails
[07:53:29] sevenseacat: so change the login path to redirect straight to the omniauth path
[07:54:06] sevenseacat: or just disable the sessions controller from within devise entirely, and make your own
[07:54:23] skroon: sevenseacat: right, so would you do this in the routes file, or is there a way to configure devise to choose a different login path?
[07:54:32] sevenseacat: its a routing issue.
[07:54:33] skroon: sevenseacat: ahhh my own session controller
[07:54:50] skroon: sevenseacat: thanks for pointing me in the right direction, I got some reading todo then :-)
[07:56:00] skroon: sevenseacat: a question though, what i'm trying todo is... when i'm running locally (development) I would like to use devise database_authentication locally, but in production to choose my identifity provider (OAuth2)
[07:56:15] sevenseacat: I wouldnt do that.
[07:56:51] r0bby_: has joined #RubyOnRails
[07:57:08] skroon: sevenseacat: oke, why not if I may ask?
[07:57:31] sevenseacat: production should always be as close to development as possible.
[07:57:43] sevenseacat: otherwise, how are you supposed to build/test your auth process?
[07:59:38] eGGsha: has joined #RubyOnRails
[07:59:42] DoctorMonocular: has joined #RubyOnRails
[08:01:15] arup_r: has joined #RubyOnRails
[08:01:27] ych_: has joined #RubyOnRails
[08:03:06] arup_r: How can I do mass assginments while I have nested params and nested params key is not an DB attribute ?
[08:03:15] arup_r: https://gist.github.com/aruprakshit/34182e5aaa0c438f4b59
[08:03:25] iamse7en: has joined #RubyOnRails
[08:04:22] skroon: sevenseacat: the thing is, then my development environment is harder to setup (as-in I need to add identity provider locally) but I see your point in replicating production env
[08:08:44] hotpancakes: has joined #RubyOnRails
[08:09:17] Sylario: has joined #RubyOnRails
[08:11:45] krz: has joined #RubyOnRails
[08:12:07] arup_r: leave it I found out the standard way
[08:12:13] suffice: has joined #RubyOnRails
[08:12:17] RegulationD: has joined #RubyOnRails
[08:13:17] Marquel: has joined #RubyOnRails
[08:13:25] hd1: has joined #RubyOnRails
[08:16:51] mike___1234: has joined #RubyOnRails
[08:20:31] skroon: sevenseacat: so it's the devise session controller, that check if user is authenticated right? it's checks the session
[08:20:49] sevenseacat: no, it handles creating and destroying of sessions
[08:20:57] sevenseacat: ie. login and logout
[08:20:58] yfeldblum: has joined #RubyOnRails
[08:21:54] skroon: right so that means, filling the cookies/session with the right user id, etc?
[08:22:26] srinidhi: has joined #RubyOnRails
[08:22:31] yfeldblum: has joined #RubyOnRails
[08:23:54] skroon: so what does authenticate_user! in the before filter, check if user is actually valid? does it check the cookies/session only?
[08:26:48] skroon: ah and it's probably warden that's doing this instead of devise right?
[08:26:57] sevenseacat: it checks that the user in the session is a valid user.
[08:27:43] blackhuey: has joined #RubyOnRails
[08:29:05] noodman_: has joined #RubyOnRails
[08:29:27] Frem: has joined #RubyOnRails
[08:29:32] sarink: has joined #RubyOnRails
[08:32:04] eminencehc_: has joined #RubyOnRails
[08:33:10] roolo: has joined #RubyOnRails
[08:34:16] fgo: has joined #RubyOnRails
[08:40:59] iamse7en: is there a way to get the current url but cut off the query part of it? I have a datepicker, and I put in `$(this).attr('href','<%= request.original_url %>?date='+date)` which works great on the first date you choose, but then it becomes ?date=20150710?date=20150707 after that initial date is clicked.
[08:42:45] jhass: # File actionpack/lib/action_dispatch/http/request.rb, line 200; def original_url; base_url + original_fullpath; end
[08:45:35] iamse7en: jhass: thanks! request.original_fullpath did it
[08:47:30] benhuda: has joined #RubyOnRails
[08:49:04] kies^: has joined #RubyOnRails
[08:50:54] lethjakman: has joined #RubyOnRails
[08:53:27] dcunit3d: has joined #RubyOnRails
[08:55:25] sung: has joined #RubyOnRails
[08:59:37] kedibasi: has joined #RubyOnRails
[09:00:28] DoctorMonocular: has joined #RubyOnRails
[09:00:45] bashusr: has joined #RubyOnRails
[09:04:40] DoubleMalt: has joined #RubyOnRails
[09:05:02] DEA7TH: has joined #RubyOnRails
[09:05:27] bronson: has joined #RubyOnRails
[09:06:31] skroon: sevenseacat: i'm not able to set a different login page, via the routes file
[09:06:48] skroon: sevenseacat: i'm talking about devise triggering a authenticate_user! and then redirecting to login page
[09:07:16] bricker: has joined #RubyOnRails
[09:10:11] hotpancakes: has joined #RubyOnRails
[09:11:29] microdex: has joined #RubyOnRails
[09:11:41] dici: has joined #RubyOnRails
[09:16:29] bricker: has joined #RubyOnRails
[09:17:26] El3ktra: has joined #RubyOnRails
[09:19:26] Schalla: has joined #RubyOnRails
[09:21:21] one_zero: has joined #RubyOnRails
[09:21:45] n008f4g_: has joined #RubyOnRails
[09:24:27] x-light: has joined #RubyOnRails
[09:25:43] bricker: has joined #RubyOnRails
[09:35:00] bricker: has joined #RubyOnRails
[09:37:36] microdex: has joined #RubyOnRails
[09:38:21] arashb: has joined #RubyOnRails
[09:43:19] jenrzzz: has joined #RubyOnRails
[09:52:31] dan0034001: has joined #RubyOnRails
[09:55:10] hd1: grumble
[09:55:31] hd1: ok, so I've now set up json routes for sign_in, but how do I sign in?
[09:56:53] konsolebox: has joined #RubyOnRails
[09:57:45] simplyianm: has joined #RubyOnRails
[09:58:48] rlomax: has joined #RubyOnRails
[09:59:44] FernandoBasso: has joined #RubyOnRails
[10:00:23] allcentury: has joined #RubyOnRails
[10:00:29] eGGsha: has joined #RubyOnRails
[10:01:24] DoctorMonocular: has joined #RubyOnRails
[10:01:38] skroon: hd1: are you using devise?
[10:04:10] kedibasi: has left #RubyOnRails: ()
[10:04:16] creature: has joined #RubyOnRails
[10:06:52] DEA7TH: has joined #RubyOnRails
[10:07:46] Ropeney: has joined #RubyOnRails
[10:12:09] strcmp1: has joined #RubyOnRails
[10:18:18] melter: has joined #RubyOnRails
[10:18:52] bonhoeffer: has joined #RubyOnRails
[10:20:59] arBmind: has joined #RubyOnRails
[10:33:30] teedex: has joined #RubyOnRails
[10:34:21] DLSteve: has joined #RubyOnRails
[10:36:03] skroon: has joined #RubyOnRails
[10:36:30] erichu: has joined #RubyOnRails
[10:37:02] braincrash: has joined #RubyOnRails
[10:38:35] microdex: has joined #RubyOnRails
[10:39:46] lethjakman: has joined #RubyOnRails
[10:42:57] nfk: has joined #RubyOnRails
[10:43:00] creature: has joined #RubyOnRails
[10:46:03] jroith: has joined #RubyOnRails
[10:46:34] bonhoeffer: is there anyway to find out what line is causing a Sass::SyntaxError
[10:46:44] bonhoeffer: i get something like: Undefined variable: "$brand-success".
[10:46:57] bonhoeffer: but i can???t run it down which definition is causing the problem
[10:47:20] sevenseacat: does the trace of the error tell you?
[10:48:24] hotpancakes: has joined #RubyOnRails
[10:48:50] bonhoeffer: sass-rails (5.0.3) lib/sass/rails/template.rb:47:in `evaluate'
[10:50:00] bonhoeffer: so, i can???t get to the line in the sass
[10:50:05] bonhoeffer: or can???t find it
[10:52:08] edwinvdgraaf: has joined #RubyOnRails
[10:55:31] bruno-: has joined #RubyOnRails
[10:55:40] dan0034001: has joined #RubyOnRails
[10:59:31] bonhoeffer: what is the difference between *= require foo and @import ???foo.scss???
[11:00:07] sevenseacat: one is sprockets, one is sass
[11:02:02] DoctorMonocular: has joined #RubyOnRails
[11:02:10] bonhoeffer: ok, thanks ??? so they both accomplish the same end ?
[11:03:31] sevenseacat: in very different ways
[11:03:58] alphaatom: has joined #RubyOnRails
[11:04:43] bonhoeffer: and i think i need to restart the app to see changes to sprockets, right?
[11:13:06] bonhoeffer: so for example, I???m getting Undefined variable: "$brand-success" from sass, but I???m no longer including any scss files
[11:13:58] sevenseacat: so where are you referencing $brand-success ?
[11:15:12] bonhoeffer: ah ??? just found it ??? error in my troubleshooting was that i was commenting out *= require statements
[11:15:30] bonhoeffer: which still get required even with ///*=require foo
[11:15:36] bonhoeffer: (or it looks like that)
[11:16:08] sevenseacat: not sure you can comment out comments.
[11:16:31] bonhoeffer: yeah ??? but you can change the syntax
[11:16:40] riotjones: has joined #RubyOnRails
[11:16:45] bonhoeffer: anyway ??? the offender is: a.active { color: $brand-success;
[11:17:01] sevenseacat: i dont tend to use sprockets for css files
[11:17:15] sevenseacat: makes it really hard to use sass features without re-including everything in every file
[11:17:37] riotjones: has joined #RubyOnRails
[11:17:46] jroith: has joined #RubyOnRails
[11:19:44] bonhoeffer: yeah ??? i don???t understand it all well, not sure about the scope of an @import
[11:19:57] bonhoeffer: versus render ??? clearly i need to read up on it all
[11:20:15] bonhoeffer: i had to put the @import into the same scss that referenced the variable
[11:20:26] bonhoeffer: which makes me think the scope is very local
[11:20:47] bonhoeffer: but i import 5 scss files in another, so i hope they are all getting compiled
[11:21:16] sevenseacat: to the best of my knowledge, sprockets will compile all of the included files individually, then mash them together. import does the opposite - includes all the files, then does the compilation
[11:22:56] bricker: has joined #RubyOnRails
[11:24:36] bonhoeffer: wow ??? that is simple
[11:27:59] bricker: has joined #RubyOnRails
[11:28:45] bonhoeffer: has joined #RubyOnRails
[11:29:37] hotpancakes: has joined #RubyOnRails
[11:36:36] benhuda: has joined #RubyOnRails
[11:36:53] Ergo: has joined #RubyOnRails
[11:38:12] doodlehaus: has joined #RubyOnRails
[11:38:18] mike___1234: has joined #RubyOnRails
[11:38:22] skroon: has joined #RubyOnRails
[11:38:58] bhuvanaurora: has joined #RubyOnRails
[11:39:32] microdex: has joined #RubyOnRails
[11:40:00] creature: has joined #RubyOnRails
[11:41:09] eGGsha: has joined #RubyOnRails
[11:41:20] Creeves: has joined #RubyOnRails
[11:41:35] Dbugger: has joined #RubyOnRails
[11:42:01] Dbugger: Hello guys. If I have found a bug in https://www.railstutorial.org/book/log_in_log_out ... who could I contact, to let them know?
[11:42:11] leonardoajim: has joined #RubyOnRails
[11:42:21] sevenseacat: contact the author, michael hartl
[11:42:54] FernandoBasso: has joined #RubyOnRails
[11:45:41] skroon: sevenseacat: i'm still struggling with figuring out how I can have devise use a different login url when not authenticated... the routes.rb file doesn't seem to dictate this
[11:46:34] Papierkorb: has joined #RubyOnRails
[11:46:39] sevenseacat: different login url when not authenticated? well you dont need a login url when you are authenticated
[11:47:22] sevenseacat: what do you have now?
[11:47:25] ndrei: has joined #RubyOnRails
[11:51:39] skroon: sevenseacat: I have in my application controller: authenticate_user! if i'm not authenticated, devise redirects me to a login page... i'm wondering how I can tell devise which login page to choose
[11:52:14] sevenseacat: you dont need to tell devise anything - you just need to define your own new_user_session_path
[11:52:24] skroon: sevenseacat: http://pastie.org/10286293 this is what I have in my routes now
[11:52:49] noodman: has joined #RubyOnRails
[11:53:28] sevenseacat: ok, so like I said a while ago, dont generate routes for the devise sessions controller
[11:53:49] sevenseacat: then you can name your own login route as the same name as the old devise one would have had, new_user_session_path
[11:54:35] lethjakman: has joined #RubyOnRails
[11:55:21] skroon: sevenseacat: oke, but I thought I need to have a session controller still in order to have my user id etc, stored in the cookie
[11:55:56] sevenseacat: yes, that will be in your omniauth callback controller
[11:56:52] hakunin: has joined #RubyOnRails
[11:57:27] skroon: sevenseacat: ahhhh ;-)
[11:57:30] dan0034001: has joined #RubyOnRails
[11:58:45] skroon: sevenseacat: right, so my omniauth callback is making the session indeed, probably via: sign_in_and_redirect @user right?
[12:02:59] DoctorMonocular: has joined #RubyOnRails
[12:09:18] hotpancakes: has joined #RubyOnRails
[12:10:35] Sheperson: has joined #RubyOnRails
[12:11:44] fighella: has joined #RubyOnRails
[12:15:21] chinmay_dd: has joined #RubyOnRails
[12:17:24] bhuvanaurora: has joined #RubyOnRails
[12:18:10] xlogic: has joined #RubyOnRails
[12:20:00] Scripore: has joined #RubyOnRails
[12:20:57] AzaToth: has joined #RubyOnRails
[12:26:18] chinmay_dd: has joined #RubyOnRails
[12:29:46] bricker: has joined #RubyOnRails
[12:32:50] ndrei: has joined #RubyOnRails
[12:36:57] simplyianm: has joined #RubyOnRails
[12:39:11] bricker: has joined #RubyOnRails
[12:40:19] microdex: has joined #RubyOnRails
[12:45:02] jhoey: has joined #RubyOnRails
[12:48:53] ndrei: has joined #RubyOnRails
[12:51:11] n008f4g_: has joined #RubyOnRails
[12:51:47] eGGsha: has joined #RubyOnRails
[12:52:40] victortyau: has joined #RubyOnRails
[12:55:21] lethjakman: has joined #RubyOnRails
[12:58:20] Lightsword: has joined #RubyOnRails
[13:00:35] skroon: has joined #RubyOnRails
[13:03:45] DoctorMonocular: has joined #RubyOnRails
[13:06:01] zeen: has joined #RubyOnRails
[13:06:06] zeen: has left #RubyOnRails: ()
[13:06:24] chouhoulis: has joined #RubyOnRails
[13:06:41] zeen: has joined #RubyOnRails
[13:07:59] mrbubbles: has joined #RubyOnRails
[13:08:29] zeen: hey guys. i'm trying to extract fields for a basic templating system and not sure how to read attributes from joined tables, https://gist.github.com/anonymous/f3a08bcf0b50c5e293a6
[13:08:36] zeen: can anyone point me in the right direction?
[13:08:45] hotpancakes: has joined #RubyOnRails
[13:15:09] bonhoeffer: has joined #RubyOnRails
[13:15:53] arashb: has joined #RubyOnRails
[13:15:59] joelataylor: has joined #RubyOnRails
[13:16:25] GPrime: has joined #RubyOnRails
[13:18:56] devdazed: has joined #RubyOnRails
[13:22:22] devdazed: has joined #RubyOnRails
[13:23:17] DEA7TH: has joined #RubyOnRails
[13:25:41] DEA7TH_: has joined #RubyOnRails
[13:28:43] xuth: has joined #RubyOnRails
[13:30:21] xuth: Hi everyone. I moved my rails code to another server. I think it messed up the active records. there is no data. how can I fix it?
[13:34:55] dan0034001: has joined #RubyOnRails
[13:36:05] bonhoeffer: has joined #RubyOnRails
[13:36:22] erich: has joined #RubyOnRails
[13:37:33] fwaokda: has joined #RubyOnRails
[13:39:08] alphaatom: has joined #RubyOnRails
[13:39:25] Creeves: xuth: did you set the db up on the other server
[13:40:30] circ-user-zvHoD: has joined #RubyOnRails
[13:40:30] xuth: @Creeves nope. it's local sqlite3. data is not important.
[13:40:49] xuth: just want to set back the connection..
[13:40:51] microdex: has joined #RubyOnRails
[13:41:34] Creeves: so you're saying that your records are not being created in the DB on this new server?
[13:43:55] yardenbar: has joined #RubyOnRails
[13:47:24] xuth: Yes. Anyway I can reset/destroy then generate back?
[13:49:01] xuth: I get this when i start rails server
[13:49:01] xuth: from /home/ryanooi/code/sample_app/config/environments/development.rb:23:in `block in <top (required)>'
[13:49:01] xuth: from /var/lib/gems/2.2.0/gems/railties-4.2.3/lib/rails/railtie.rb:210:in `instance_eval'
[13:49:24] Creeves: oh you're getting errors when starting rails?
[13:49:53] xuth: this /var/lib/gems/2.2.0/gems/railties-4.2.3/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `active_record' for #<Rails::Application::Configuration:0x0000000205d348> (NoMethodError)
[13:49:59] hotpancakes: has joined #RubyOnRails
[13:50:37] jhass: xuth: !gist
[13:50:37] helpa: xuth: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[13:50:42] jhass: full output ^ there
[13:51:03] xuth: ya. But i can start it if i comment out 'config.active_record.migration_error = :page_load' in config/environments/development.rb
[13:51:51] Creeves: sounds like migration errors
[13:52:18] xuth: thanks @jhass https://gist.github.com/ryanooi/17b23aafb059a92520f1
[13:52:27] shyshy: has joined #RubyOnRails
[13:53:49] jhass: xuth: try bundle exec rails s instead
[13:53:59] surrealanalysis: has joined #RubyOnRails
[13:54:30] xuth: @jhass same error
[13:54:47] jhass: did you copy over the Gemfile.lock from the box where it's working?
[13:56:00] zeen: decided to use liquid templates, working perfectly
[13:56:04] lethjakman: has joined #RubyOnRails
[13:56:50] xuth: Ohh. I upgraded ruby & rails version. I didn't use back the old Gemfile.lock.
[13:57:10] xuth: possible Gemfile.locl caused that?
[13:57:39] jhass: well, rather doing a major upgrade of rails without adjusting anything did
[13:58:10] jhass: though google suggests that it's new in Rails 4 and returning to Rails 3 would cause that error
[13:59:38] jhass: mmh, or rather that your config/application.rb / config/boot.rb is messed up and loads the wrong/not all stuff (in particular activerecord)
[14:00:18] jhass: but going back to versions you know your app works with would be a good thing to eliminate error sources
[14:00:28] jhass: always just do one thing at a time so you know what step broke it
[14:00:45] xuth: hehe. Ok. Will try to use back old version
[14:01:15] xuth: Sorry. Im new to rails. Thanks for your advise @jhass & @Creeves
[14:04:18] DoctorMonocular: has joined #RubyOnRails
[14:06:30] alphaatom: has joined #RubyOnRails
[14:07:36] alphaatom: has joined #RubyOnRails
[14:08:34] Sehryn: has joined #RubyOnRails
[14:08:39] alphaatom: has joined #RubyOnRails
[14:09:13] FernandoBasso: has joined #RubyOnRails
[14:11:03] jwaldrip: has joined #RubyOnRails
[14:21:00] Scripore: has joined #RubyOnRails
[14:21:15] eggoez: has joined #RubyOnRails
[14:21:21] Lightsword: has joined #RubyOnRails
[14:22:12] chouhoulis: has joined #RubyOnRails
[14:28:38] cryptocronus: has joined #RubyOnRails
[14:30:36] chipotle: has joined #RubyOnRails
[14:31:45] hotpancakes: has joined #RubyOnRails
[14:31:46] bricker: has joined #RubyOnRails
[14:32:53] s2013: has joined #RubyOnRails
[14:35:39] eggoez: has joined #RubyOnRails
[14:39:09] fwaokda: What can I do in addition to indexing to speed up my queries? I've index common lookup columns and foreign keys currently. But when using ransack to search some objects it seems to timeout sometimes.
[14:39:18] fwaokda: I've also increased my timeout to 15000
[14:39:50] null__: you could cache queries too
[14:40:02] null__: depends on what you're doing though
[14:41:37] microdex: has joined #RubyOnRails
[14:42:28] owenjones: has joined #RubyOnRails
[14:46:03] bricker: has joined #RubyOnRails
[14:48:18] earthquake: has joined #RubyOnRails
[14:49:59] ferr: has joined #RubyOnRails
[14:50:45] bruno-: has joined #RubyOnRails
[14:51:06] earthquake: has joined #RubyOnRails
[14:52:36] hotpancakes: has joined #RubyOnRails
[14:53:10] tfitts: has joined #RubyOnRails
[14:54:08] charliesome: has joined #RubyOnRails
[14:54:11] GPrime: has joined #RubyOnRails
[14:54:51] teedex: has joined #RubyOnRails
[14:54:51] hashrocket: has joined #RubyOnRails
[14:55:13] bricker: has joined #RubyOnRails
[14:55:39] Sehryn: has joined #RubyOnRails
[15:02:30] owenjones: has joined #RubyOnRails
[15:02:49] allcentury: has joined #RubyOnRails
[15:04:26] bricker: has joined #RubyOnRails
[15:05:03] DoctorMonocular: has joined #RubyOnRails
[15:07:48] charliesome: has joined #RubyOnRails
[15:08:08] bronson: has joined #RubyOnRails
[15:08:44] snakehsu: has joined #RubyOnRails
[15:13:08] christiandsg: has joined #RubyOnRails
[15:13:59] bigsky: has joined #RubyOnRails
[15:14:51] eGGsha: has joined #RubyOnRails
[15:16:10] jordanstorz: has joined #RubyOnRails
[15:16:55] Lightsword: has joined #RubyOnRails
[15:18:51] lapide_viridi: has joined #RubyOnRails
[15:19:15] ndrei: has joined #RubyOnRails
[15:19:49] microdex: has joined #RubyOnRails
[15:26:00] s2013: has joined #RubyOnRails
[15:30:26] microdex: has joined #RubyOnRails
[15:32:23] soahccc: What is the easiest way to maintain a counter_cache with a constraint on the model which defines the belongs_to association? I think my code here explains what I want except that my scope call in the belongs_to doesn't work... https://gist.github.com/2called-chaos/7d30225df4f9438ea8ee
[15:38:34] Spami: has joined #RubyOnRails
[15:43:57] startupality: has joined #RubyOnRails
[15:44:12] viiralvx: has joined #RubyOnRails
[15:44:58] lethjakman: has joined #RubyOnRails
[15:45:34] peterhil`: has joined #RubyOnRails
[15:50:05] adavia: has joined #RubyOnRails
[15:50:09] alphaatom: has joined #RubyOnRails
[15:50:22] eGGsha: has joined #RubyOnRails
[15:50:27] erich: has joined #RubyOnRails
[15:52:31] Scripore: has joined #RubyOnRails
[15:53:05] teedex: has joined #RubyOnRails
[15:54:06] blackmesa: has joined #RubyOnRails
[15:54:06] teedex_: has joined #RubyOnRails
[15:55:57] hotpancakes: has joined #RubyOnRails
[15:56:06] kies^: has joined #RubyOnRails
[15:59:44] alphaatom: has joined #RubyOnRails
[16:05:06] alphaatom: has joined #RubyOnRails
[16:05:21] Afterglow: has joined #RubyOnRails
[16:05:23] konsolebox: has joined #RubyOnRails
[16:05:32] Afterglow: has left #RubyOnRails: ()
[16:05:52] DoctorMonocular: has joined #RubyOnRails
[16:06:55] iamse7en: has joined #RubyOnRails
[16:07:52] konsolebox: has joined #RubyOnRails
[16:08:33] bricker: has joined #RubyOnRails
[16:10:36] lethjakman: has joined #RubyOnRails
[16:14:42] acovrig: has joined #RubyOnRails
[16:16:07] Scripore: has joined #RubyOnRails
[16:16:15] acovrig: I have resources :events do resources :items end in my routes, and now my <%= form_for(@item) do |f| %> doesn???t work, how do I fix it?
[16:16:30] acovrig: an event has multiple items
[16:17:34] Papierkorb: "doesn't work" is not a description for anything. what's the output?
[16:20:29] seank_: has joined #RubyOnRails
[16:23:11] moeabdol: has joined #RubyOnRails
[16:23:15] acovrig: undefined method `item_path' for
[16:24:33] arashb: has joined #RubyOnRails
[16:24:47] ferr: has left #RubyOnRails: ("WeeChat 1.2")
[16:29:45] soule: has joined #RubyOnRails
[16:29:56] ascarter: has joined #RubyOnRails
[16:30:08] soule: has joined #RubyOnRails
[16:33:55] creature: has joined #RubyOnRails
[16:34:17] dustinm`: has joined #RubyOnRails
[16:36:06] ascarter: has joined #RubyOnRails
[16:37:53] ascarter: has joined #RubyOnRails
[16:38:44] moeabdol1: has joined #RubyOnRails
[16:39:19] rickmasta: has joined #RubyOnRails
[16:39:39] nomad: has joined #RubyOnRails
[16:39:39] alphaatom: has joined #RubyOnRails
[16:40:55] Sehryn: has joined #RubyOnRails
[16:41:12] alphaatom: has joined #RubyOnRails
[16:41:40] Sehryn_: has joined #RubyOnRails
[16:42:09] Silox|: has joined #RubyOnRails
[16:42:17] alphaatom: has joined #RubyOnRails
[16:42:40] s2013: has joined #RubyOnRails
[16:43:22] alphaatom: has joined #RubyOnRails
[16:44:33] alphaatom: has joined #RubyOnRails
[16:46:07] fgo: has joined #RubyOnRails
[16:46:19] alphaatom: has joined #RubyOnRails
[16:47:32] alphaatom: has joined #RubyOnRails
[16:47:51] nomad1254: has joined #RubyOnRails
[16:50:39] nomad: has joined #RubyOnRails
[16:50:49] iamse7en: has joined #RubyOnRails
[16:51:43] charliesome: has joined #RubyOnRails
[16:52:42] cana777: has joined #RubyOnRails
[16:53:37] alphaatom: has joined #RubyOnRails
[16:55:30] cana777: hi everyone
[16:55:59] cana777: is it possible to send two forms to the same update action ? my second form seems to do "Started GET" in the logs instead of "Started PATCH", which my first form does and works correctly
[16:56:39] SteenJobs: has joined #RubyOnRails
[16:57:58] DEA7TH: has joined #RubyOnRails
[17:00:36] Criten: cana777: you can only do one submit on a page at a time without using javascript
[17:01:19] Criten: but you could totally have two seperate forms on a page going to the same action
[17:01:34] Criten: (think i missread for my first message haha)
[17:03:19] alphaatom: has joined #RubyOnRails
[17:04:41] eminencehc_: has joined #RubyOnRails
[17:06:18] cana777: yeah, i'm saying why is this form making a GET request instead of PATCH ? please check out my SO question: http://stackoverflow.com/questions/31353954/rails-4-form-for-not-submitting-started-get-instead-of-started-patch
[17:06:37] DoctorMonocular: has joined #RubyOnRails
[17:09:07] toretore: has joined #RubyOnRails
[17:13:17] hotpancakes: has joined #RubyOnRails
[17:14:13] eGGsha: has joined #RubyOnRails
[17:14:15] SteenJobs: has left #RubyOnRails: ()
[17:14:39] SteenJobs: has joined #RubyOnRails
[17:16:16] earthquake: has joined #RubyOnRails
[17:16:57] adavia: any idea why this works <%= render partial: 'comments/form_new', :locals => { :micropost => micropost } %> and not this <%= render "comments/form_new", locals: { micropost: micropost } %>
[17:19:28] blackmesa: has joined #RubyOnRails
[17:21:42] SteenJobs: adayou don???t have partial: in the second one?
[17:22:55] chouhoulis: has joined #RubyOnRails
[17:23:05] Contigi: has joined #RubyOnRails
[17:23:58] SteenJobs: hey guys, thoughts on stripe vs. activemerchant vs. payola?
[17:25:41] shilon: has joined #RubyOnRails
[17:27:16] acovrig: has joined #RubyOnRails
[17:29:55] hotpancakes: has joined #RubyOnRails
[17:31:22] acovrig: OK, I???m getting undefined method `item_path' for #<#Class???> from <%= form_for(@item) do |f| %>, I???m guessing it???s a routing issue (resources :events do resources :items end), how should I fix it?
[17:31:28] pontiki: i've used braintree, but none of those
[17:31:37] pontiki: ^ SteenJobs
[17:31:44] SteenJobs: pontiki: what???s doing brother
[17:32:13] pontiki: i just found a leak in our cealing coming through a light fixture in our bathroom :((
[17:32:22] SteenJobs: pontiki: this guy wants me to integrate strip into his app, but it can be done with both the stripe API and activemerchant, so looking for thoughts on why one over the other
[17:32:30] SteenJobs: pontiki: oh that???s so annoying. i had that in my apt last year.
[17:32:39] SteenJobs: pontiki: anyone coming to take care of it asap?
[17:33:01] pontiki: yeah, building maintenance guy just showed up
[17:33:14] stantona: has joined #RubyOnRails
[17:33:32] pontiki: i've still got a ton of water to mop up, but it's still leaking so i gave up trying to keep up
[17:34:38] pontiki: my brother is coming up to visit our dad in rehab; this is such a major pain
[17:34:59] SteenJobs: yea i???m sure it???s not something you want to be dealing with atm
[17:35:11] SteenJobs: mine was leaking like crazy when it happened. filled a garbage can in like 1 min. flat
[17:35:46] jwaldrip: has joined #RubyOnRails
[17:36:34] pontiki: back in san jose, i had a similar thing happen. just lounging on the couch reading, and all of a sudden, the bathroom ceiling completely falls in
[17:38:33] erich: has joined #RubyOnRails
[17:38:43] smathy: has joined #RubyOnRails
[17:40:55] pontiki: the renters upstairs had a leak from a broken toilet *and* sink that they were afraid to tell the maintenance guy about
[17:40:58] SteenJobs: has joined #RubyOnRails
[17:41:19] SteenJobs: jeez that???s nuts
[17:41:33] bar0n: has joined #RubyOnRails
[17:41:47] eGGsha: has joined #RubyOnRails
[17:41:49] pontiki: ikr?? they had a newborn and were afraid of getting kicked out. i mean, wtf
[17:41:54] baweaver: has joined #RubyOnRails
[17:42:20] SteenJobs: yea that???s crazy
[17:42:33] bonhoeffer: has joined #RubyOnRails
[17:42:52] pontiki: i was pretty good friends with them (small complex, i lived across from the maint guy and his wife)
[17:42:57] starfox_sf: has joined #RubyOnRails
[17:43:14] pontiki: she had a 3yo, too, btw. we're just shaking our heads at this
[17:43:32] null__: my apartment makes it pretty clear that if you don't immediately notify them within 48 hours then you will be in trouble lol
[17:43:57] pontiki: yeah, that's got to be very much standard
[17:43:58] null__: if you notify them before that then you are mostly off the hook unless you did something super stupid
[17:44:21] bonhoeffer: anyone know how to use a simple form custom wrapper to put the label behind the input?
[17:44:23] pontiki: right. i mean, shit happens, tell someone and get it fixed
[17:45:35] bar0n: has left #RubyOnRails: ()
[17:45:49] Mia: has joined #RubyOnRails
[17:45:49] Mia: has joined #RubyOnRails
[17:50:22] r_baron: has joined #RubyOnRails
[17:50:54] zorak8: has joined #RubyOnRails
[17:51:06] nfk: has joined #RubyOnRails
[17:52:13] eGGsha: has joined #RubyOnRails
[17:52:19] eminencehc_: has joined #RubyOnRails
[17:52:38] eggoez: has joined #RubyOnRails
[17:55:54] DoctorMonocular: has joined #RubyOnRails
[17:56:49] smathy: has joined #RubyOnRails
[17:59:29] DEA7TH: has joined #RubyOnRails
[17:59:38] arup_r: has joined #RubyOnRails
[18:00:26] moeabdol: has joined #RubyOnRails
[18:02:14] dexter91x: has joined #RubyOnRails
[18:05:39] Maletor: has joined #RubyOnRails
[18:07:42] theery: has joined #RubyOnRails
[18:07:49] LeoDee: has joined #RubyOnRails
[18:07:50] blackmesa: has joined #RubyOnRails
[18:08:20] dexter91x: has joined #RubyOnRails
[18:13:39] jhack: has joined #RubyOnRails
[18:13:39] jhack: has joined #RubyOnRails
[18:17:37] givanse: has joined #RubyOnRails
[18:18:21] owenjones: has joined #RubyOnRails
[18:18:52] eGGsha: has joined #RubyOnRails
[18:19:20] stef1a: has joined #RubyOnRails
[18:19:46] stef1a: i'm getting an ActionDispatch::Cookies::CookieOverflow error when i run my specs with rspec. how can i prevent this from occurring?
[18:22:16] noodman: has joined #RubyOnRails
[18:27:11] LeoDee: has joined #RubyOnRails
[18:30:52] iamse7en: has joined #RubyOnRails
[18:33:44] tubbo: has joined #RubyOnRails
[18:34:22] qejk: has joined #RubyOnRails
[18:35:14] tubbo: has joined #RubyOnRails
[18:35:19] dexter91x: has joined #RubyOnRails
[18:37:05] Lightsword: has joined #RubyOnRails
[18:37:48] rhizome: don't overflow your cookies, i guess
[18:39:37] skroon: has joined #RubyOnRails
[18:40:30] bronson: has joined #RubyOnRails
[18:41:25] bonhoeffer: has joined #RubyOnRails
[18:42:36] octref: has joined #RubyOnRails
[18:43:04] octref: Hey guys, I just have a short question. What's the difference between bin/rake and bundle exec rake?
[18:44:39] RegulationD: has joined #RubyOnRails
[18:45:42] SegFaultAX: has joined #RubyOnRails
[18:46:11] stef1a: rhizome: how? why are they being overflowed right now, and why hadn't i noticed until i ran the tests?
[18:46:18] stef1a: and what's activerecord session store?
[18:46:37] cornerman: has joined #RubyOnRails
[18:47:23] rhizome: octref: bundle exec is just a wrapper that keeps things in the context of your bundle. not sure what the details are.
[18:47:52] hotpancakes: has joined #RubyOnRails
[18:48:06] rhizome: stef1a: i didn't write your code, i don't know where the error is happening. activerecord session store is well documented
[18:48:13] tubbo: bin/rake is just another binstub, except rails provides it
[18:48:15] tubbo: not bundler
[18:48:31] tubbo: makes it easier to type out rake & rails commands, all you need is ./bin/rake rather than bundle exec rake
[18:48:42] tubbo: also that's where the spring preloader is inserted
[18:48:44] Afterglow: has joined #RubyOnRails
[18:48:57] Afterglow: has left #RubyOnRails: ()
[18:49:16] dan0034001: has joined #RubyOnRails
[18:50:02] octref: tubbo: So if I run bin/rake, it's different than the rake that `bundle exec rake` uses?
[18:50:19] stef1a: what are the pros and cons of using cookies and of using activerecord session store? which is more often used, and why?
[18:51:49] acovrig: has joined #RubyOnRails
[18:53:18] acovrig: how do I use a form_for with a route like this: resources :events do resources :items end (or should I not use a route like this)?
[18:55:26] adavia: any idea why this works <%= render partial: 'comments/form_new', :locals => { :micropost => micropost } %> and not this <%= render "comments/form_new", locals: { micropost: micropost } %>
[18:57:22] circ-user-zvHoD: has joined #RubyOnRails
[18:58:55] pontiki: the second form needs the partial: in order for the parent render to send it to the right render lower down so the locals: will be processed
[18:58:58] eGGsha: has joined #RubyOnRails
[18:59:09] yfeldblum: has joined #RubyOnRails
[18:59:41] pontiki: there are several layers of rendering ,the top one that's callable by both AC and AV calls more specialized ones
[19:00:50] pontiki: the locals: (and a few other bits) is only usable with the partial: option
[19:01:39] dexter91x: has joined #RubyOnRails
[19:01:57] DLSteve: has joined #RubyOnRails
[19:02:35] triangles2: has joined #RubyOnRails
[19:04:45] n008f4g_: has joined #RubyOnRails
[19:04:56] hahuang61: has joined #RubyOnRails
[19:07:22] DoctorMonocular: has joined #RubyOnRails
[19:07:53] Siyo: has joined #RubyOnRails
[19:07:53] Siyo: has joined #RubyOnRails
[19:08:17] noodman: has joined #RubyOnRails
[19:08:43] teedex: has joined #RubyOnRails
[19:10:01] jordanstorz: has joined #RubyOnRails
[19:11:40] noodman_: has joined #RubyOnRails
[19:15:15] arashb: has joined #RubyOnRails
[19:15:26] cryptocronus: has joined #RubyOnRails
[19:17:35] bin_005: has joined #RubyOnRails
[19:17:37] startupality: has joined #RubyOnRails
[19:19:17] owenjones: has joined #RubyOnRails
[19:20:59] acovrig: Is it better to have `/events/1/items/4` or `/items/4?event_id=1` ?
[19:26:29] Silox|: Nokogiri is being a pain in the ass (as usual) on my new server, even though I have libxslt-dev, libxml2-dev installed, bundle throws "cannot open shared object file: No such file or directory nokogiri.so"
[19:26:34] Silox|: Anyone any ideas?
[19:28:07] erich: has joined #RubyOnRails
[19:29:17] cashnguns: has joined #RubyOnRails
[19:33:02] alphaatom: has joined #RubyOnRails
[19:34:45] dexter91x: has joined #RubyOnRails
[19:36:54] hotpancakes: has joined #RubyOnRails
[19:37:07] eggoez: has joined #RubyOnRails
[19:37:30] charliesome: has joined #RubyOnRails
[19:41:21] rhizome: is there a noko binary that needs to be built?
[19:41:39] puddy: has joined #RubyOnRails
[19:43:21] leonardoajim: has joined #RubyOnRails
[19:43:52] arashb: has joined #RubyOnRails
[19:44:26] charliesome: has joined #RubyOnRails
[19:48:00] sonofdirt: has joined #RubyOnRails
[19:48:07] bin_005_j: has joined #RubyOnRails
[19:48:22] viiralvx: has joined #RubyOnRails
[19:50:10] eGGsha: has joined #RubyOnRails
[19:52:56] jdayvie: has joined #RubyOnRails
[19:53:30] hotpancakes: has joined #RubyOnRails
[19:53:48] jdayvie: Hello - Does anyone have experience with Devise and sending confirmation emails?
[19:55:25] ferr: has joined #RubyOnRails
[19:59:11] mary5030: has joined #RubyOnRails
[20:02:33] givanse: has joined #RubyOnRails
[20:02:42] Lightsword: has joined #RubyOnRails
[20:04:42] wasp__: has joined #RubyOnRails
[20:08:39] chouhoulis: has joined #RubyOnRails
[20:11:10] bruno-: has joined #RubyOnRails
[20:12:48] ght: Anyone ever seen a scenario where your images in app/assets/images get overwritten by the cache on a Rails 4.2 site?
[20:14:19] rhizome: ght: i would guess that's literally not possible
[20:14:20] ght: As in, the file was literally written over by a cached version.
[20:15:12] jwaldrip: has joined #RubyOnRails
[20:15:42] Hobogrammer_: has joined #RubyOnRails
[20:16:37] Hobogrammer_: has joined #RubyOnRails
[20:17:57] Lightsword: has joined #RubyOnRails
[20:18:13] cryptocronus: has joined #RubyOnRails
[20:20:03] owenjones: has joined #RubyOnRails
[20:22:17] ndrei: has joined #RubyOnRails
[20:22:31] chouhoulis: has joined #RubyOnRails
[20:22:45] adavia: any idea why i cant access comment.user.username being that user_id is 1 in my comments table and model is defined as belongs_to :user
[20:22:59] startupality: has joined #RubyOnRails
[20:23:03] elaptics: adavia: what happens when you try?
[20:23:31] adavia: elaptics: undefined method `username' for nil:NilClass
[20:23:48] adavia: i dont know why user is nil
[20:24:51] Scripore: has joined #RubyOnRails
[20:26:08] weaksauce: adavia perhaps because user is not assigned to that comment
[20:26:24] weaksauce: what happens when you do comment.user
[20:26:48] adavia: weaksauce: i get #<User:0x8a0221c>
[20:27:03] bob14: has joined #RubyOnRails
[20:27:16] weaksauce: what happens when you do x=comment.user; x.username
[20:27:17] Lightsword: has joined #RubyOnRails
[20:27:27] elaptics: adavia: can you gist your user and comment models?
[20:27:47] adavia: let me try that
[20:28:18] adavia: still get undefined method `username' for nil:NilClass
[20:28:23] adavia: elaptics: sure
[20:30:05] artto: has joined #RubyOnRails
[20:30:24] adavia: elaptics: https://gist.github.com/adavia/8ea8aea37f8e21808d5c
[20:30:55] cryptocronus: has joined #RubyOnRails
[20:31:46] elaptics: adavia: and you're sure that the comments table in your db does have a user_id column and it has a value of an id for a user that exists?
[20:32:53] alphaatom: has joined #RubyOnRails
[20:33:21] elaptics: adavia: also as an aside, you should validate the presence of the association, not the actual id field. so validates :user, presence: true
[20:33:24] elaptics: see http://guides.rubyonrails.org/active_record_validations.html#presence
[20:33:33] adavia: elaptics: https://gist.github.com/adavia/69f014d6e5a7afbb769b
[20:34:48] Lightsword: has joined #RubyOnRails
[20:34:59] jdayvie: No rush, nor want to interrupt, but I have been receiving this error: Net::SMTPAuthenticationError in Devise::PasswordsController#create - If anyone has any idea with password resetting with Devise.
[20:35:19] elaptics: adavia: I presume this is in your dev environment. Can you gist the contents of the comments and users database tables?
[20:35:34] crdpink: has joined #RubyOnRails
[20:35:50] adavia: elaptics: let me try that
[20:37:21] weaksauce: jdayvie seems like you are not providing the correct outbound email password or settings.
[20:37:24] creature: has joined #RubyOnRails
[20:37:26] DoctorMonocular: has joined #RubyOnRails
[20:37:47] elaptics: jdayvie: what are you using for emailing?
[20:37:55] jwalker14: has joined #RubyOnRails
[20:38:24] jdayvie: That is what I read but it's correct...
[20:38:42] jdayvie: For right now I am using gmail to test it out but want to switch to my personal email.
[20:38:47] jdayvie: Persona domain email*
[20:39:04] jwalker14: Hello I'm a total noob at Rails. When I generate a controller rails generate controller tasks it generates test_units instead of the actual controller in the app folder? Has someone had an issue like this?
[20:39:08] Etriaph: has joined #RubyOnRails
[20:39:09] elaptics: jdayvie: I would suggest using something like sendgrid instead
[20:39:34] yfeldblum: has joined #RubyOnRails
[20:39:36] elaptics: jdayvie: you can signup for a free account with them and be able to send 12000 emails a month before you'd have to start paying anything iirc
[20:40:06] adavia: elaptics: https://gist.github.com/adavia/03f4f4d654fac9403444
[20:40:06] weaksauce: I agree with elaptics jdayvie
[20:40:25] jdayvie: Really? That creates a @sendgrid email though, no?
[20:40:35] jdayvie: That is not what I want. I want to use the email on my domain.
[20:40:58] elaptics: jdayvie: no, you supply the email domain you want the mail to come from in your mail settings in your app
[20:41:22] LJT: has joined #RubyOnRails
[20:41:34] surrealanalysis: has joined #RubyOnRails
[20:41:51] weaksauce: you have to set up something in the dns for your domain iirc but it doesn't take much to setup and any of the big players have guides to set it up correctly
[20:42:04] elaptics: adavia: thanks, I meant the actual data though. Are you using postgres?
[20:42:32] elaptics: jdayvie: yep, you just need to set up SPF records in your domain's DNS
[20:43:06] adavia: elaptics: im using sqlite in development
[20:43:44] jdayvie: elaptics & weaksauce - Thank you =) I will check that out. Though let me just ask one more question. Using Devise, the password changes, etc. all can be done through Devise; however, I also will have to add ActionMailer for other email aspects. Would you still recommend this way? Should I even bother using Devise setup for just the password aspect?
[20:43:45] elaptics: adavia: just go into the database console, (rails db) and run select * from comments; and then select * from users; and gist the output of those.
[20:44:06] adavia: elaptics: ohhh ok sorry
[20:44:08] elaptics: jdayvie: devise uses the actionmailer settings
[20:44:30] elaptics: jdayvie: are you not using devise for authentication?
[20:44:39] weaksauce: jdayvie devise uses actionmailer to send the reset emails out.
[20:44:50] devdazed: has joined #RubyOnRails
[20:45:36] jdayvie: Fantastic - Then I can continue as planned.
[20:45:48] jdayvie: I will look into sendgrid, I appreciate it.
[20:45:50] elaptics: jdayvie: https://sendgrid.com/docs/Integrate/Frameworks/rubyonrails.html
[20:46:34] lxsameer: has joined #RubyOnRails
[20:46:34] lxsameer: has joined #RubyOnRails
[20:47:33] adavia: elaptics: https://gist.github.com/adavia/03f4f4d654fac9403444
[20:47:38] elaptics: jdayvie: that tells you everything you need to know. You don't even need to specify anything else for your domain for sendgrid to send the emails - it'll appear to come from your domain as far as replying goes, but depending on email client you'll get "sent on behalf of" type messages unless you set up more stuff for your domain
[20:48:15] bonhoeffer: has joined #RubyOnRails
[20:48:43] adavia: this is weird
[20:48:45] weaksauce: adavia you can add files to your gists so that you don't overwrite the old gist
[20:48:46] ruurd: has joined #RubyOnRails
[20:48:54] elaptics: adavia: there's no headings for the columns but it looks like the data is all ok. Are you running this code in a rails console?
[20:48:56] jdayvie: elaptics - Thank you!
[20:49:38] adavia: elaptics: yes with rails dbconsole
[20:49:59] weaksauce: the other code adavia
[20:50:14] weaksauce: `bundle exec rails console`
[20:50:18] elaptics: adavia: if so, quit the console, start it up again and find the comment again and try the user again
[20:50:35] elaptics: see if it then works
[20:51:12] dan0034001: has joined #RubyOnRails
[20:51:33] adavia: elaptics: works fine
[20:52:05] mheld: has joined #RubyOnRails
[20:52:15] elaptics: adavia: my guess is that you just didn't reload the object or something after the user was associated
[20:52:17] adavia: weaksauce: in rails i get also this: #<ActiveRecord::Relation [#<Comment id: 1, content: "Hey como estas amigo??", user_id: 1, micropost_id: 2, created_at: "2015-07-11 18:59:40", updated_at: "2015-07-11 18:59:40">]>
[20:52:40] Cache_Money: has joined #RubyOnRails
[20:52:46] bonhoeffer: anyone deploy their rails app to heroku and get some assets, but not some css?
[20:52:49] elaptics: so it didn't have the user reference or something
[20:52:55] bonhoeffer: would love some troubleshooting ideas
[20:53:14] weaksauce: bonhoeffer I have had good luck with precompiling the assets locally
[20:53:27] bonhoeffer: weaksauce: thanks, how is it supposed to work
[20:53:52] adavia: elaptics: maybe something wrong when i save the association?
[20:54:09] weaksauce: bonhoeffer rake assets:precompile
[20:54:11] elaptics: adavia: create a new comment in the console and see
[20:54:28] weaksauce: commit that and then push it
[20:54:29] bonhoeffer: weaksauce: sorry, yeah, but how is heroku deployment supposed to work
[20:54:33] elaptics: adavia: how did you create the original comment and user association?
[20:55:52] weaksauce: bonhoeffer not sure I understand your question? you push to heroku and it configures things and then moves over to the new version of the site
[20:56:12] bonhoeffer: yeah ??? my guess is that it runs rake assets:precompile locally
[20:56:15] adavia: elaptics: in my comments controller https://gist.github.com/
[20:56:21] bonhoeffer: and i???m wondering why that doesn???t work
[20:56:28] adavia: elaptics: https://gist.github.com/adavia/9565c51228648ef653ca
[20:56:47] weaksauce: i don't know why. I have had to do the local precompile to make it work right when pushing to heroku
[20:56:53] hotpancakes: has joined #RubyOnRails
[20:57:45] Ergo: has joined #RubyOnRails
[20:58:08] bonhoeffer: ok ??? then i have to delete public/assets right to make everything work locally in dev, I think
[20:58:54] DEA7TH: has joined #RubyOnRails
[20:59:29] elaptics: adavia: seems fine. Was your rails console already loaded prior to you creating some of the comment and user code?
[20:59:55] elaptics: adavia: if you didn't do a reload! after making changes then it wouldn't be using the latest code
[21:00:11] elaptics: which would explain what you were getting
[21:00:30] elaptics: you've fully reloaded the console by quitting it and starting again and it's now fine
[21:02:32] adavia: elaptics: i added another comment in the console
[21:02:36] adavia: still get the same
[21:03:13] elaptics: adavia: what exactly did you do in the console?
[21:03:27] elaptics: gist the sequence of the code you've entered
[21:03:48] adavia: elaptics: Comment.create!({:content => "Heyyyyyyy dude", :user_id => 1 :micropost_id => 2})
[21:04:33] Maletor: has joined #RubyOnRails
[21:04:48] elaptics: adavia: ah, like the presence validation generally you shouldn't be assigning ids like that - associate objects
[21:05:46] elaptics: adavia: so post = Micropost.find(2); u = User.find(1); Comment.create!(content: "Hi", user: u, micropost: post)
[21:06:32] ruurd: has joined #RubyOnRails
[21:07:41] adavia: elaptics: tried that, same thing
[21:07:47] adavia: this is driving me nuts
[21:08:22] elaptics: adavia: can you share your whole codebase on github or something, I'll clone it and try it myself
[21:08:55] adavia: elaptics: ok
[21:10:34] earthquake: has joined #RubyOnRails
[21:12:31] adavia: elaptics: https://bitbucket.org/adavia/social_chat
[21:15:10] Lightsword: has joined #RubyOnRails
[21:16:24] hotpancakes: has joined #RubyOnRails
[21:16:31] bin_005_j_j: has joined #RubyOnRails
[21:17:53] jwalker14: Has anyone used backbone with rails?
[21:18:52] balr0g: has joined #RubyOnRails
[21:19:01] elaptics: adavia: it says I don't have access to the project
[21:19:35] elaptics: adavia: you either need to make it public or grant my bitbucket user access
[21:20:04] LJT: has joined #RubyOnRails
[21:20:59] owenjones: has joined #RubyOnRails
[21:21:44] Mweshi_: has joined #RubyOnRails
[21:21:59] adavia: elaptics: you have bitbucket?
[21:22:15] elaptics: adavia: yes, my username is andyhenson
[21:22:48] eminencehc_: has joined #RubyOnRails
[21:22:56] adavia: elaptics: done
[21:23:39] bricker: has joined #RubyOnRails
[21:24:35] chipotle: has joined #RubyOnRails
[21:24:46] Papierkorb: has joined #RubyOnRails
[21:25:55] eggoez: has joined #RubyOnRails
[21:26:25] Lightsword_: has joined #RubyOnRails
[21:29:16] blackmesa: has joined #RubyOnRails
[21:33:42] elaptics: adavia: it's working fine for me
[21:34:58] adavia: using sqlite?
[21:35:01] bricker: has joined #RubyOnRails
[21:37:52] MaDErroR123: has joined #RubyOnRails
[21:38:34] adavia: elaptics: weird
[21:39:47] chipotle_: has joined #RubyOnRails
[21:40:42] teedex: has joined #RubyOnRails
[21:41:41] Pupeno: has joined #RubyOnRails
[21:43:14] arooni-mobile: has joined #RubyOnRails
[21:44:31] Mweshi: has joined #RubyOnRails
[21:47:52] acovrig: has joined #RubyOnRails
[21:48:10] ProLoser: has joined #RubyOnRails
[21:48:17] acovrig: how would I use a form_for tag with a nested route, I???m trying <%= form_for [@event, @item] do |f| %> but I get undefined method `items_path'
[21:49:17] davidbitton: has joined #RubyOnRails
[21:50:30] WeiJunLi: has joined #RubyOnRails
[21:51:06] epitron: has joined #RubyOnRails
[21:51:25] hotpancakes: has joined #RubyOnRails
[21:52:01] jwalker14: has joined #RubyOnRails
[21:52:45] elaptics: acovrig: gist your routes
[21:54:42] acovrig: elaptics: https://gist.github.com/acovrig/a6374341169bae0373ff
[21:54:53] jottr: has joined #RubyOnRails
[21:56:49] elaptics: acovrig: and in that form, what is @event and what is @item. Can you gist the relevant controller and view
[21:57:48] bronson: has joined #RubyOnRails
[22:00:32] moeabdol: has joined #RubyOnRails
[22:01:01] acovrig: elaptics: gist updated (https://gist.github.com/acovrig/a6374341169bae0373ff)
[22:01:44] weaksauce: acovrig try [:event, @item]
[22:02:27] simplyianm: has joined #RubyOnRails
[22:02:29] Scripore: has joined #RubyOnRails
[22:02:53] elaptics: acovrig: you're not finding the @event for the new action so it's nil so it think's it's just trying to do a new item with items_path
[22:03:14] artto_: has joined #RubyOnRails
[22:03:17] elaptics: acovrig: you just need to add @event = Event.find... to the new action
[22:03:52] elaptics: acovrig: you should just do a find_event before_action to apply to all actions
[22:04:06] acovrig: elaptics: can I also use the render ???form??? for the edit page also?
[22:04:30] elaptics: acovrig: yes
[22:04:40] elaptics: acovrig: I'd also scope items through the event
[22:05:09] elaptics: so the new action should be: @event = Event.find(params[:event_id]); @item = @event.items.build
[22:05:52] sonofdirt: has joined #RubyOnRails
[22:06:30] elaptics: acovrig: your set_item method should then be: @item = @event.items.find(params[:id]) assuming you have called the find_event method first
[22:06:53] hotpancakes: has joined #RubyOnRails
[22:11:57] toretore: has joined #RubyOnRails
[22:15:39] allcentury: has joined #RubyOnRails
[22:17:00] bricker1: has joined #RubyOnRails
[22:21:01] adavia: elaptics: sorry to ask but do you see any possible reason that code is working with you and not with me
[22:21:37] owenjones: has joined #RubyOnRails
[22:23:18] elaptics: adavia: no; at least I can't think of any.
[22:23:51] Coldblackice_: has joined #RubyOnRails
[22:25:11] crdpink2: has joined #RubyOnRails
[22:26:21] mfilipe: has left #RubyOnRails: ("Leaving")
[22:26:27] elaptics: adavia: if your code is exactly as what's been committed to your repo, then quit and restart your rails console. Then create a new user, new post and then a new comment using the user and post and then try accessing the attributes. Share a screenshot of exactly what you've typed and the resulting error
[22:28:33] adavia: elaptics: will try that
[22:29:00] elaptics: adavia: here's exactly what I did when I tried it. It took me a few lines to figure out what I needed to supply to create a user successfully http://share.foxsoft.co.uk/image/1G2B2R1v1k0I
[22:30:36] girakrok: has joined #RubyOnRails
[22:32:04] hotpancakes: has joined #RubyOnRails
[22:32:50] blackmesa: has joined #RubyOnRails
[22:33:02] bungoman: has joined #RubyOnRails
[22:33:42] existensil: has joined #RubyOnRails
[22:33:48] bricker: has joined #RubyOnRails
[22:33:54] artto: has joined #RubyOnRails
[22:36:19] mike___1234: has joined #RubyOnRails
[22:38:51] awefulBrown: has joined #RubyOnRails
[22:39:35] existensil: has joined #RubyOnRails
[22:40:29] hotpancakes: has joined #RubyOnRails
[22:44:57] allcentury: has joined #RubyOnRails
[22:47:14] fgo: has joined #RubyOnRails
[22:47:33] workmad3: has joined #RubyOnRails
[22:49:47] lucha: has joined #RubyOnRails
[22:51:33] annlewis: has joined #RubyOnRails
[22:54:18] existensil: has joined #RubyOnRails
[22:54:56] sonofdirt: has joined #RubyOnRails
[22:55:00] owenjones: has joined #RubyOnRails
[22:56:16] arBmind1: has joined #RubyOnRails
[22:57:50] arooni-mobile: has joined #RubyOnRails
[23:01:04] chipotle: has joined #RubyOnRails
[23:01:14] existensil: has joined #RubyOnRails
[23:01:29] lethjakman: has joined #RubyOnRails
[23:03:16] simplyianm: has joined #RubyOnRails
[23:03:24] Etriaph: has joined #RubyOnRails
[23:06:19] eggoez: has joined #RubyOnRails
[23:14:35] andatche: has joined #RubyOnRails
[23:14:56] hololeap: has joined #RubyOnRails
[23:16:32] hotpancakes: has joined #RubyOnRails
[23:18:46] siemprefresco: has joined #RubyOnRails
[23:20:18] SteenJobs: has joined #RubyOnRails
[23:20:21] simplyianm: has joined #RubyOnRails
[23:21:04] adavia: elaptics: are you there?
[23:24:18] weaksauce: adavia can you gist the log of what you are trying?
[23:24:24] weaksauce: similar to how elaptics
[23:24:45] WeiJunLi: has joined #RubyOnRails
[23:25:21] Scripore: has joined #RubyOnRails
[23:27:45] adavia: weaksauce: i tried <% if comment.user.nil? %> Anonymous <% else %> <%= comment.user.username %> <% end %>
[23:28:09] creature: has joined #RubyOnRails
[23:28:33] weaksauce: what happened? still the same crash?
[23:28:45] adavia: weaksauce: and now is printing anonymous in all my posts plus username in the commented post
[23:29:30] teedex: has joined #RubyOnRails
[23:29:45] adavia: weaksauce: as i im trying to leave comments in my index post action
[23:30:32] dopie: has joined #RubyOnRails
[23:31:10] artto: has joined #RubyOnRails
[23:31:18] Cache_Money: has joined #RubyOnRails
[23:31:20] microdex: has joined #RubyOnRails
[23:32:29] blackhuey: has joined #RubyOnRails
[23:32:31] weaksauce: what's the problem adavia can you gist a complete example of the problem area?
[23:35:21] wasp__: has joined #RubyOnRails
[23:36:20] tenderlove: has joined #RubyOnRails
[23:36:35] nertzy: has joined #RubyOnRails
[23:36:56] Pupeno_: has joined #RubyOnRails
[23:38:19] moeabdol: has joined #RubyOnRails
[23:46:05] chipotle: has joined #RubyOnRails
[23:46:22] leonardoajim: has joined #RubyOnRails
[23:47:12] hakunin_: has joined #RubyOnRails
[23:48:56] armyriad: has joined #RubyOnRails
[23:49:24] Schalla: has joined #RubyOnRails
[23:50:31] moeabdol: has joined #RubyOnRails
[23:52:36] davidbitton: has joined #RubyOnRails
[23:54:59] bmurt: has joined #RubyOnRails
[23:58:53] Lightsword_: has joined #RubyOnRails