« Back to channel list

#RubyOnRails - 21 June 2015

« Back 1 day Forward 1 day »
[00:00:03] AntiSpamMeta: has joined #RubyOnRails
[00:00:49] ekem: has joined #RubyOnRails
[00:00:58] AzaToth: has joined #RubyOnRails
[00:01:13] skakri: has joined #RubyOnRails
[00:01:19] grandy: has joined #RubyOnRails
[00:01:25] SegFaultAX: has joined #RubyOnRails
[00:01:50] bratsche: has joined #RubyOnRails
[00:02:21] AntiSpamMeta: has joined #RubyOnRails
[00:03:39] higuys: has joined #RubyOnRails
[00:03:51] arathald: has joined #RubyOnRails
[00:04:08] theery: has joined #RubyOnRails
[00:04:48] hippopot: has joined #RubyOnRails
[00:04:49] chancancode: has joined #RubyOnRails
[00:05:29] culturelabs: has joined #RubyOnRails
[00:05:33] LiquidInsect: has joined #RubyOnRails
[00:05:40] ipstatic: has joined #RubyOnRails
[00:05:46] RubyNewbey: has joined #RubyOnRails
[00:05:52] brandon: has joined #RubyOnRails
[00:05:53] mello: has joined #RubyOnRails
[00:05:53] amitchellbullard: has joined #RubyOnRails
[00:06:09] n3b: has joined #RubyOnRails
[00:06:33] baweaver: Well I would say there's not, but OP left.
[00:06:36] zorak8: has joined #RubyOnRails
[00:07:04] nomadicoder: has joined #RubyOnRails
[00:07:08] alxndr: has joined #RubyOnRails
[00:07:12] lala: has joined #RubyOnRails
[00:07:30] firevolt: has joined #RubyOnRails
[00:07:49] danlucraft: has joined #RubyOnRails
[00:07:49] pusewicz: has joined #RubyOnRails
[00:07:49] cschneid: has joined #RubyOnRails
[00:07:49] atmosx_: has joined #RubyOnRails
[00:07:49] balr0g: has joined #RubyOnRails
[00:07:49] GarethAdams: has joined #RubyOnRails
[00:07:49] cgrieger^away: has joined #RubyOnRails
[00:08:33] joaomdmoura: has joined #RubyOnRails
[00:08:37] cardoni: has joined #RubyOnRails
[00:08:38] RegulationD: has joined #RubyOnRails
[00:08:50] lxkm_: has joined #RubyOnRails
[00:09:10] aloneintheworld: has joined #RubyOnRails
[00:11:26] t-richards: has joined #RubyOnRails
[00:11:27] ewilliam: has joined #RubyOnRails
[00:11:37] zrl: has joined #RubyOnRails
[00:13:15] BBHoss_: has joined #RubyOnRails
[00:14:08] givanse_: has joined #RubyOnRails
[00:14:50] t-richards: has joined #RubyOnRails
[00:16:20] hellschreiber_: has joined #RubyOnRails
[00:16:36] maZtah: has joined #RubyOnRails
[00:20:03] Anakat_: has joined #RubyOnRails
[00:22:13] nickenchuggets: has joined #RubyOnRails
[00:23:06] Zamerick: has joined #RubyOnRails
[00:23:19] AntiSpamMeta_: has joined #RubyOnRails
[00:24:08] kenndel_: has joined #RubyOnRails
[00:24:28] chouhoulis: has joined #RubyOnRails
[00:24:53] jarray521: has joined #RubyOnRails
[00:24:57] one_zero_t: has joined #RubyOnRails
[00:27:00] lala_: has joined #RubyOnRails
[00:27:14] Scientz: has joined #RubyOnRails
[00:27:17] strcmp2: has joined #RubyOnRails
[00:27:30] robotbrain_: has joined #RubyOnRails
[00:27:39] Mchl: has joined #RubyOnRails
[00:28:02] firevolt_: has joined #RubyOnRails
[00:28:17] skj3gg: has joined #RubyOnRails
[00:28:49] FastJack: has joined #RubyOnRails
[00:29:28] EXCHGR: has joined #RubyOnRails
[00:29:34] mjc__: has joined #RubyOnRails
[00:29:48] matt_d_: has joined #RubyOnRails
[00:29:50] cjk101010_: has joined #RubyOnRails
[00:29:52] rhinon: has joined #RubyOnRails
[00:30:06] t-richards_: has joined #RubyOnRails
[00:30:30] robustus: has joined #RubyOnRails
[00:30:32] bin_005_n: has joined #RubyOnRails
[00:30:54] bruno-: has joined #RubyOnRails
[00:30:56] zrl_: has joined #RubyOnRails
[00:31:03] aujt74: has joined #RubyOnRails
[00:31:24] hellschreiber__: has joined #RubyOnRails
[00:31:44] okdas_: has joined #RubyOnRails
[00:31:53] mostlybadfly_: has joined #RubyOnRails
[00:32:27] stevemc_: has joined #RubyOnRails
[00:32:30] joaomdmoura_: has joined #RubyOnRails
[00:32:49] baweaver_: has joined #RubyOnRails
[00:33:13] Anakat: has joined #RubyOnRails
[00:33:18] Sypheren_: has joined #RubyOnRails
[00:33:38] cardoni_: has joined #RubyOnRails
[00:33:44] renews: has joined #RubyOnRails
[00:33:51] ewilliam_: has joined #RubyOnRails
[00:33:54] arathald_: has joined #RubyOnRails
[00:33:58] nikkyjr: has joined #RubyOnRails
[00:34:10] culturelabs_: has joined #RubyOnRails
[00:34:15] webdestroyaz: has joined #RubyOnRails
[00:34:35] bphogan: has joined #RubyOnRails
[00:34:50] pulgalip1: has joined #RubyOnRails
[00:35:07] chancancode_: has joined #RubyOnRails
[00:37:29] Kilo`byte: has joined #RubyOnRails
[00:37:58] mellett68: has joined #RubyOnRails
[00:38:28] AzaToth: has joined #RubyOnRails
[00:38:54] Rubie: has joined #RubyOnRails
[00:39:14] Bish_: has joined #RubyOnRails
[00:40:08] TheMoonMaster: has joined #RubyOnRails
[00:40:52] gerep: has joined #RubyOnRails
[00:41:24] Axilla: has joined #RubyOnRails
[00:41:25] bratsche: has joined #RubyOnRails
[00:41:38] w0bni: has joined #RubyOnRails
[00:41:52] blackmes1: has joined #RubyOnRails
[00:41:59] maZtah: has joined #RubyOnRails
[00:41:59] differentreality: has joined #RubyOnRails
[00:42:00] Denarii: has joined #RubyOnRails
[00:42:00] mc_-: has joined #RubyOnRails
[00:42:00] eggoez: has joined #RubyOnRails
[00:42:00] leeky: has joined #RubyOnRails
[00:42:00] Emily: has joined #RubyOnRails
[00:42:00] 14WAAAWY7: has joined #RubyOnRails
[00:42:00] Diabolik: has joined #RubyOnRails
[00:42:00] nomadicoder: has joined #RubyOnRails
[00:42:00] BBHoss_: has joined #RubyOnRails
[00:42:00] lxkm_: has joined #RubyOnRails
[00:42:00] Klumben: has joined #RubyOnRails
[00:42:00] alxndr: has joined #RubyOnRails
[00:42:00] johnkpaul: has joined #RubyOnRails
[00:42:00] mheld: has joined #RubyOnRails
[00:42:00] v4s: has joined #RubyOnRails
[00:42:00] SegFaultAX: has joined #RubyOnRails
[00:42:00] rmoriz: has joined #RubyOnRails
[00:42:00] toydestroyer: has joined #RubyOnRails
[00:42:00] amitchellbullard: has joined #RubyOnRails
[00:42:00] shwoodard: has joined #RubyOnRails
[00:42:00] Ratler: has joined #RubyOnRails
[00:42:00] RubyNewbey: has joined #RubyOnRails
[00:42:00] leslie: has joined #RubyOnRails
[00:42:00] zly: has joined #RubyOnRails
[00:42:00] GreySyntax: has joined #RubyOnRails
[00:42:00] shtirlic: has joined #RubyOnRails
[00:42:00] lhz: has joined #RubyOnRails
[00:42:00] arBmind1: has joined #RubyOnRails
[00:42:00] thews_: has joined #RubyOnRails
[00:42:01] RubyNewbey: has joined #RubyOnRails
[00:42:01] shwoodard: has joined #RubyOnRails
[00:42:02] amitchellbullard: has joined #RubyOnRails
[00:42:02] BBHoss_: has joined #RubyOnRails
[00:42:03] mheld: has joined #RubyOnRails
[00:42:04] johnkpaul: has joined #RubyOnRails
[00:42:04] alxndr: has joined #RubyOnRails
[00:42:06] nomadicoder: has joined #RubyOnRails
[00:42:06] lxkm_: has joined #RubyOnRails
[00:42:08] 14WAAAWY7: has joined #RubyOnRails
[00:42:11] maZtah: has joined #RubyOnRails
[00:42:43] leslie: has joined #RubyOnRails
[00:42:43] Emily: has joined #RubyOnRails
[00:42:46] Dreamer3_: has joined #RubyOnRails
[00:42:53] SloggerKhan1: has joined #RubyOnRails
[00:43:05] Klumben: has joined #RubyOnRails
[00:43:58] aguynamedben: has joined #RubyOnRails
[00:44:28] badeball_: has joined #RubyOnRails
[00:44:33] BaNzoune1: has joined #RubyOnRails
[00:44:33] jcm_: has joined #RubyOnRails
[00:44:33] Killerkeksdose_: has joined #RubyOnRails
[00:44:38] rtl: has joined #RubyOnRails
[00:44:40] lsone_: has joined #RubyOnRails
[00:44:41] josqu4red_: has joined #RubyOnRails
[00:44:58] speaking1ode: has joined #RubyOnRails
[00:45:24] unreal_: has joined #RubyOnRails
[00:45:27] WhereIsMySpoon: has joined #RubyOnRails
[00:47:11] workmad3: has joined #RubyOnRails
[00:47:15] grandy: has joined #RubyOnRails
[00:48:21] Radar_: has joined #RubyOnRails
[00:48:24] beevalee: has joined #RubyOnRails
[00:48:28] disperso_: has joined #RubyOnRails
[00:48:29] skarn: has joined #RubyOnRails
[00:48:44] pabloh: has joined #RubyOnRails
[00:48:58] pontiki: has joined #RubyOnRails
[00:49:22] Casty: has joined #RubyOnRails
[00:49:29] klacointe_: has joined #RubyOnRails
[00:49:35] terrellt: has joined #RubyOnRails
[00:49:45] AlHafoudh_: has joined #RubyOnRails
[00:50:13] kaspergrubbe: has joined #RubyOnRails
[00:51:02] charliesome: has joined #RubyOnRails
[00:52:29] voxxit_: has joined #RubyOnRails
[00:54:26] bakingbread: has joined #RubyOnRails
[00:54:45] shawnacscott: has joined #RubyOnRails
[00:55:38] kadoppe: has joined #RubyOnRails
[00:55:38] Haydos: has joined #RubyOnRails
[00:56:03] martinbmadsen: has joined #RubyOnRails
[00:56:40] defswork_: has joined #RubyOnRails
[00:57:36] sparr: has joined #RubyOnRails
[00:58:10] Cork: has joined #RubyOnRails
[00:58:58] dkam: has joined #RubyOnRails
[01:00:23] DoctorMonocular: has joined #RubyOnRails
[01:04:25] Axilla: has joined #RubyOnRails
[01:04:54] galan18: has joined #RubyOnRails
[01:06:38] twilling: has joined #RubyOnRails
[01:08:11] Palsson: has joined #RubyOnRails
[01:08:51] Ropeney: has joined #RubyOnRails
[01:09:54] ndrei: has joined #RubyOnRails
[01:10:47] fgo: has joined #RubyOnRails
[01:13:33] mt_: has joined #RubyOnRails
[01:14:20] asheinfeld: has joined #RubyOnRails
[01:15:28] mtchllbr_: has joined #RubyOnRails
[01:18:01] wethu: has joined #RubyOnRails
[01:21:23] balr0g: has joined #RubyOnRails
[01:22:13] Axilla: has joined #RubyOnRails
[01:23:16] TeckniX_: has joined #RubyOnRails
[01:24:25] Pupeno_: has joined #RubyOnRails
[01:26:02] dopie: has joined #RubyOnRails
[01:27:01] Haydos: has joined #RubyOnRails
[01:27:50] renews: has joined #RubyOnRails
[01:28:31] premera: has joined #RubyOnRails
[01:31:58] DoctorMonocular: has joined #RubyOnRails
[01:32:13] dkam: has joined #RubyOnRails
[01:32:39] TeckniX: has joined #RubyOnRails
[01:32:44] bratsche: has joined #RubyOnRails
[01:33:52] TeckniX: hello - anyone using CaseinCMS?
[01:34:25] chelbs: has joined #RubyOnRails
[01:34:25] TeckniX: I???d like to know how to get associated model data within their partial
[01:34:40] Anakat: has joined #RubyOnRails
[01:34:51] beauby: has joined #RubyOnRails
[01:35:56] chipotle: has joined #RubyOnRails
[01:41:05] baron: has joined #RubyOnRails
[01:41:10] baron: has left #RubyOnRails: ()
[01:41:35] bar0n: has joined #RubyOnRails
[01:42:57] Lightsword: has joined #RubyOnRails
[01:46:23] bruno-: has joined #RubyOnRails
[01:46:57] zorak8: has joined #RubyOnRails
[01:49:11] yfeldblum: has joined #RubyOnRails
[01:58:29] pontiki: milk proteins?
[01:59:10] merryfett: has joined #RubyOnRails
[02:01:28] mary5030: has joined #RubyOnRails
[02:03:11] Anakat: has joined #RubyOnRails
[02:03:22] crevax_: has joined #RubyOnRails
[02:05:10] PolarIce: has joined #RubyOnRails
[02:08:16] baron: has joined #RubyOnRails
[02:09:19] beauby: has joined #RubyOnRails
[02:15:36] baweaver: has joined #RubyOnRails
[02:17:28] asheinfeld: has joined #RubyOnRails
[02:19:54] startupality: has joined #RubyOnRails
[02:21:58] darrencauthon: has joined #RubyOnRails
[02:22:07] renews: has joined #RubyOnRails
[02:23:37] nickjj: has joined #RubyOnRails
[02:23:58] Anakat: has joined #RubyOnRails
[02:24:18] asheinfeld: has joined #RubyOnRails
[02:27:11] jfarmer: has joined #RubyOnRails
[02:27:13] fgo: has joined #RubyOnRails
[02:29:53] baron_: has joined #RubyOnRails
[02:31:02] tobobo: has joined #RubyOnRails
[02:31:51] galan18: Hi, Iam trying to do nestled resources, and I am having problems with the view
[02:33:36] galan18: :action=>"edit", :controller=>"users", :business_url=>"cool"} missing required keys: [:id]
[02:35:31] xrlabs: has joined #RubyOnRails
[02:35:45] hahuang65: has joined #RubyOnRails
[02:35:53] workmad3: has joined #RubyOnRails
[02:39:03] galan18: it is someone alive here?
[02:39:41] pwz2000: has joined #RubyOnRails
[02:40:06] jfarmer: galan18 Nobody can answer your questions without more context.
[02:40:27] Anakat: has joined #RubyOnRails
[02:41:00] galan18: ok, i am going to publish code in order to be more explicit
[02:41:08] Lightsword: has joined #RubyOnRails
[02:41:44] cappsio_: has joined #RubyOnRails
[02:44:03] pwz2000: Where do you guys deploy your domain names? I have a dating website that is ready for deployment. Possibly looking at a very small number of 35,000 page views a day and there???s a 5 image upload limit per user. I don???t expect to use too much bandwidth based on that. I???m wondering if Heroku is too much cost wise for the amount of resources the app would be using.
[02:45:07] pontiki: pwz2000: do you mean where to deploy the application? the domain name is just at the DNS host
[02:45:16] beauby: has joined #RubyOnRails
[02:45:19] pwz2000: Yes, where to deploy.
[02:45:40] cappsio: has joined #RubyOnRails
[02:46:06] ProLoser: has joined #RubyOnRails
[02:46:08] artto: has joined #RubyOnRails
[02:46:49] pwz2000: Sadly I have ever only used shared hosting and owned websites that averaged 150k pv???s day but all my websites have always been low bandwidth. But this will be a much lower traffic website than my past work. I don???t think I would need much and this is all new terriroty for me going past shared lol.
[02:46:58] pwz2000: and using Rails to do it.
[02:49:37] dopie: has joined #RubyOnRails
[02:50:50] pontiki: pwz2000: start with heroku, move on when necessary
[02:51:59] bruno-: has joined #RubyOnRails
[02:52:06] xrlabs: has joined #RubyOnRails
[02:52:38] dlousy: has joined #RubyOnRails
[02:52:41] pontiki: start to build out a deployment/provisioning scheme while getting feedback
[02:54:47] pwz2000: ok will go with my gut choice then. Was just reading articles on aws and digital ocean compared to heroku. Pricing when growing seems to be much higher for heroku from what I was reading
[02:57:57] SteenJobs: has joined #RubyOnRails
[02:58:49] pontiki: that is what i hear, too, i've no exp with it, but it also depends on you devops-fu
[02:58:51] SteenJobs: that???s my whole question
[02:59:01] pontiki: SteenJobs: no.
[02:59:28] SteenJobs: if i???m creating functionality to drag and drop images of clothing items onto a canvas to create ???outfits???, what???s the best way of saving the outfit once a user is finished?
[03:00:01] SteenJobs: if i save an image of the canvas, it won???t be editable???i???ve neve had to save something like this where i need to reproduce the layout with the exact locations of the items saved.
[03:01:21] pwz2000: has left #RubyOnRails: ()
[03:01:30] lexi87: has joined #RubyOnRails
[03:01:41] lexi87: has left #RubyOnRails: ()
[03:01:47] pontiki: can you represent the current state of the canvas as svg or json?
[03:01:58] Anakat: has joined #RubyOnRails
[03:02:31] SteenJobs: not sure how to know the answer to that q
[03:04:54] SteenJobs: pontiki: i guess i can use jquery to get the coordinates within the containing div and save that as json?
[03:05:23] cappsio: has joined #RubyOnRails
[03:05:52] pontiki: i have no idea, but that's probably a place to start
[03:05:53] mt_: has joined #RubyOnRails
[03:06:37] fluxsource: I'm trying to call render_to_string on the my controller (as part of a custom liquid tag) but it always complains about the partial name not being a valid Ruby identifier
[03:06:46] fluxsource: anyone come across this problem?
[03:07:03] tvle83: has joined #RubyOnRails
[03:09:21] SteenJobs: pontiki: also i???ve learned jquery, but i don???t know a lot about getting jquery related stuff to interact with my controllers - any good resources to read up on?
[03:09:56] tvle83: i am working on a project using HAML and it has a line `%td= ranking.game_play.best_shot.gsub! ',', ' | '` that i want to add `BEAT THIS SCORE` as a link to another page for the top rank on the page (this line is in a loop and this particular one in a conditional) how can i concatenate the link and the gsub part?
[03:10:18] beauby: has joined #RubyOnRails
[03:11:21] Casty: has joined #RubyOnRails
[03:12:30] braincrash: has joined #RubyOnRails
[03:16:17] renews: has joined #RubyOnRails
[03:17:49] pontiki: SteenJobs: not particularly... maybe railscasts?
[03:17:59] SteenJobs: aright thanks
[03:18:16] pontiki: i just read the jquery docs, really
[03:18:41] fluxsource: ugh, getting no where with this - going to bed
[03:18:48] aridere: has joined #RubyOnRails
[03:18:53] pontiki: but, i mean, i've been doing some of the sort of thing before jquery, too, so i don't know what to suggest, much
[03:19:38] pablolm: has joined #RubyOnRails
[03:20:28] pontiki: tvle83: put the %td on one line, then the next two lines just the bare = followed by your expression on the first line, and you link_to on the second line
[03:21:30] pontiki: http://haml.info/docs/yardoc/file.REFERENCE.html#inserting_ruby_
[03:22:20] asheinfeld: has joined #RubyOnRails
[03:23:09] darrencauthon: has joined #RubyOnRails
[03:23:57] markalanevans: has joined #RubyOnRails
[03:24:55] Tempesta: has joined #RubyOnRails
[03:28:29] N33k0: has joined #RubyOnRails
[03:30:06] yoongkang: has joined #RubyOnRails
[03:36:26] mary5030: has joined #RubyOnRails
[03:37:44] seansith: has joined #RubyOnRails
[03:44:06] pontiki: has joined #RubyOnRails
[03:44:32] Anakat: has joined #RubyOnRails
[03:45:07] chipotle: has joined #RubyOnRails
[03:46:47] GoGoGarrett: has joined #RubyOnRails
[03:47:26] Exuma: has joined #RubyOnRails
[03:51:37] tvle83: pontiki: thanks
[03:53:13] givanse_: has joined #RubyOnRails
[03:55:05] bronson: has joined #RubyOnRails
[03:55:07] siemprefresco: has joined #RubyOnRails
[03:57:44] SteenJobs: has joined #RubyOnRails
[03:57:52] michael_mbp: has joined #RubyOnRails
[03:57:58] Spami: has joined #RubyOnRails
[03:58:25] Spami: has joined #RubyOnRails
[03:58:31] fgo: has joined #RubyOnRails
[04:02:09] asoliman: has joined #RubyOnRails
[04:02:58] asoliman: So upon creation of a devise user in the users model, i would like to create a customer in a api, so i considered nesting the two in a transaction, because i only want them to succeed as a pair
[04:03:14] asoliman: which seems like a reasonable solution, however, I cannot seem to overwrite the create method in my devise model
[04:04:48] asoliman: any ideas or advice?
[04:05:39] merryfett: has joined #RubyOnRails
[04:07:27] Ropeney_: has joined #RubyOnRails
[04:10:28] renews: has joined #RubyOnRails
[04:17:06] DoctorMonocular: has joined #RubyOnRails
[04:23:08] asheinfeld: has joined #RubyOnRails
[04:23:58] darrencauthon: has joined #RubyOnRails
[04:24:44] workmad3: has joined #RubyOnRails
[04:26:11] bin_005: has joined #RubyOnRails
[04:29:53] melonstorm: has joined #RubyOnRails
[04:30:06] pragmatism: has joined #RubyOnRails
[04:31:37] bin_005_j: has joined #RubyOnRails
[04:41:36] Aeyrix: Anyone know any rails-specific gem building hints?
[04:41:55] Aeyrix: By hints I mean guides that assume I know how to build a gem - I just want the rails-specific nuances.
[04:49:18] towski_: has joined #RubyOnRails
[04:55:13] mary5030: has joined #RubyOnRails
[05:02:16] SteenJobs: can anyone venture a guess why $(document).click would stop working after dragging a draggable to a droppable?
[05:03:12] Rubie: has joined #RubyOnRails
[05:04:38] renews: has joined #RubyOnRails
[05:05:57] nahtnam: Hey. Quick question: Im setting up an API, and I was going to give a token to use user. I was wondering if I should just have a column for token or if I should have a table for tokens and say User has_many :tokens
[05:08:00] cornerma1: has joined #RubyOnRails
[05:17:39] framling: has joined #RubyOnRails
[05:24:16] asheinfeld: has joined #RubyOnRails
[05:24:45] darrencauthon: has joined #RubyOnRails
[05:24:54] maz-dev: has joined #RubyOnRails
[05:25:38] theery: has joined #RubyOnRails
[05:28:33] fgo: has joined #RubyOnRails
[05:28:34] Cache_Money: has joined #RubyOnRails
[05:29:36] x-light: has joined #RubyOnRails
[05:31:43] Rubie: has joined #RubyOnRails
[05:37:53] Cache_Money: has joined #RubyOnRails
[05:39:00] sevenseacat: has joined #RubyOnRails
[05:39:19] DoctorMonocular: has joined #RubyOnRails
[05:42:20] El3ktra: nahtnam, you figure it out?
[05:42:30] baweaver: has joined #RubyOnRails
[05:47:31] mt_: has joined #RubyOnRails
[05:47:51] lxsameer: has joined #RubyOnRails
[05:48:59] quazimodo: has joined #RubyOnRails
[05:49:35] hahuang65: has joined #RubyOnRails
[05:49:52] nahtnam: El3ktra: Not really, no. Im not at that part yet but its still out there
[05:50:19] El3ktra: Well, the answer really lies in whether a user can have more then one token or not.
[05:50:39] ndrei: has joined #RubyOnRails
[05:50:46] El3ktra: If there is always just one token, you can make a 1:1 association in another table, or just add a column if it really is just one string
[05:51:05] El3ktra: But, if there is a chance that a user might have more then one, then you'd need that 1:m relationship
[05:53:48] nahtnam: El3ktra: Ok. Ill just add a column. Thanks
[05:54:28] dented42: has joined #RubyOnRails
[05:56:53] theery: has joined #RubyOnRails
[05:58:55] renews: has joined #RubyOnRails
[05:59:58] djbkd: has joined #RubyOnRails
[06:00:30] yfeldblum: has joined #RubyOnRails
[06:08:37] beneggett: has joined #RubyOnRails
[06:11:50] Doddlin: Mornin all!
[06:12:06] kenndel: has joined #RubyOnRails
[06:13:30] workmad3: has joined #RubyOnRails
[06:14:56] Lightsword: has joined #RubyOnRails
[06:17:54] hamster88: has joined #RubyOnRails
[06:18:05] hamster88: greetings everyone :)
[06:18:55] charliesome: has joined #RubyOnRails
[06:25:02] asheinfeld: has joined #RubyOnRails
[06:25:26] darrencauthon: has joined #RubyOnRails
[06:26:28] maz-dev: has joined #RubyOnRails
[06:27:41] nahtnam: Hello Doddlin and hamster88
[06:27:51] hamster88: i am getting this error > PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_users_on_email" DETAIL: Key (email)=() already exists. : INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"
[06:28:22] hamster88: I have user posts comment and profile model . I can't figure out what could be causing this
[06:29:28] bruno-: has joined #RubyOnRails
[06:29:45] hamster88: here is the gist > https://gist.github.com/thedesignable/f8b34cacff1e7b9b94ab
[06:33:43] Etriaph: has joined #RubyOnRails
[06:35:03] nahtnam: When I set a cookie in rails, it sets the expiry time to session like this: http://i.imgur.com/HQ4DCaW.png How long does "session" last?
[06:35:36] JoshGlzBrk: has joined #RubyOnRails
[06:37:49] hamster88: nahtnam, i think it would last till your rails server is running on local machine
[06:38:02] hamster88: I am not sure about production env
[06:38:14] theery: has joined #RubyOnRails
[06:38:17] nahtnam: hamster88: What's your migration file look like? I think you have a user with duplicate emails or something
[06:38:46] hamster88: which migration file are we talking about?
[06:39:05] lapide_viridi: has joined #RubyOnRails
[06:39:15] nahtnam: hamster88: Actually wait. Give me a min
[06:39:26] hamster88: nahtnam, alright.
[06:40:17] hamster88: I have tried finding out a good example for setting up user profiles to no avail.. blah
[06:40:36] nahtnam: hamster88: https://gist.github.com/thedesignable/f8b34cacff1e7b9b94ab#file-user-rb-L7 On line 7, should it be profile.user_id = @user.id or something like that?
[06:40:36] cjlarose: has joined #RubyOnRails
[06:41:11] hamster88: ermmm let me give that try
[06:41:24] nahtnam: I am assuming user_id is a reference field
[06:42:45] nahtnam: and also you forgot the `@` sign before profile on line 7 as well
[06:43:00] nahtnam: hamster88: ^^^
[06:43:20] nahtnam: So I think it should be `@profile.user_id = @user.id`
[06:43:41] tvw: has joined #RubyOnRails
[06:44:20] hamster88: now i am getting this > undefined method `save' for nil:NilClass (NoMethodError)
[06:44:34] jfarmer: has joined #RubyOnRails
[06:45:15] hamster88: i always run into this prob lol
[06:46:02] nahtnam: hamster88: Try this: https://gist.github.com/nahtnam/d003a58d59ee0446e850
[06:46:20] nahtnam: I always do as well. It just means that something screwed up along the way and returned nil
[06:46:32] nahtnam: I just figure out what it is by adding abort() statements everywhere
[06:47:11] tsvenson: has joined #RubyOnRails
[06:47:43] nahtnam: Did that work?
[06:50:15] hamster88: now it says.. undefined method render :/
[06:50:50] nahtnam: Ehh, can you type the full error hamster88 ?
[06:51:09] hamster88: /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `render' for #<Class:0x0000000571be98> (NoMethodError)
[06:52:41] nahtnam: hamster88: Hmm. Thats weird. It might have to do with a different controller? It should be render :new
[06:53:07] renews: has joined #RubyOnRails
[06:53:08] hamster88: Just updated my gist with other controllers https://gist.github.com/thedesignable/f8b34cacff1e7b9b94ab
[06:53:11] nahtnam: But render "new" works fine as well
[06:53:33] sevenseacat: you cant render from models - whats going on there?
[06:53:58] hamster88: yeah that works fine but i have no idea why the heck that model is not rendering now.
[06:54:03] hamster88: Hello sevenseacat
[06:54:27] hamster88: I am trying to setup a user profile thing but i think i made a mess out of it.
[06:54:29] nahtnam: hamster88: Wait
[06:54:30] nahtnam: https://gist.github.com/thedesignable/f8b34cacff1e7b9b94ab#file-user-rb
[06:54:32] nahtnam: This is a model
[06:54:39] hamster88: yeah nahtnam
[06:54:43] nahtnam: You are supposed to put that code in a controller
[06:55:03] sevenseacat: nahtnam: your sample code had it in the model
[06:55:23] nahtnam: sevenseacat: I assumed it was a controller and totally ignored eveything
[06:55:24] hamster88: that is my code actually sevenseacat
[06:55:40] nahtnam: I feel stupid :(
[06:55:41] Thebreaker: has joined #RubyOnRails
[06:55:52] sevenseacat: rendering of views is done via controllers, not via models
[06:56:01] hamster88: let me put it under user controller model -.-
[06:56:08] sevenseacat: so remove that rendering conditional from your model
[06:56:14] hamster88: i mean user controller .
[06:56:59] Thebreaker: has left #RubyOnRails: ()
[06:57:18] nahtnam: Lol, I was sitting here reading the if statement over and over again wondering why it wasnt working ;P
[06:58:24] hamster88: form for creating new profile is giving undefined method `profiles' for nil:NilClass error
[06:58:57] hamster88: and moving my conditional to controller got it working
[06:59:02] sevenseacat: good to know. what does your code look like?
[06:59:14] hamster88: https://gist.github.com/thedesignable/f8b34cacff1e7b9b94ab
[06:59:22] hamster88: that is the form thing
[06:59:38] sevenseacat: ok, so what view is that, and where are you defining `@user`
[06:59:48] SteenJobs: sevenseacat: i have a massive json file i need to parse, but there are multiple json objects in it (that???s how the file is outputted) - how do i go about parsing it?
[07:00:02] sevenseacat: SteenJobs: JSON.parse ?
[07:00:24] hamster88: view is "new" under profiles
[07:00:26] SteenJobs: sevenseacat: won???t work if there are multiple json objects, because the file has a bunch of }{ ???s
[07:00:33] sevenseacat: then its not a json file
[07:00:47] SteenJobs: i know. but there???s nothing i can do about it, that???s just how the output is
[07:00:54] SteenJobs: fine so it???s a file with a bunch of json files
[07:01:13] sevenseacat: SteenJobs: I'm not sure why you singled me out to ask.
[07:01:13] nahtnam: SteenJobs: http://jsonlint.com/
[07:01:26] nahtnam: ^ Check if its valid json
[07:01:29] SteenJobs: nahtnam: already confirmed it???s not a json file but thanks
[07:01:33] sevenseacat: nahtnam: we established its not.
[07:01:42] SteenJobs: sevenseacat: because i???m convinced you know everything
[07:01:54] SteenJobs: sevenseacat: might be biased from when i first arrived here...
[07:02:01] sevenseacat: you can try making it into a valid json, by inserting the missing pieces, but personally i'd split it manually and then process each file
[07:02:17] SteenJobs: right so it???s a 15 mb text file. no manual processes gonna happen.
[07:02:35] SteenJobs: it would take me like a decade
[07:02:44] bin_005: has joined #RubyOnRails
[07:03:08] sevenseacat: you know where the splits need to happen - where you have }{ together
[07:03:13] SteenJobs: it???s huge. it???s a json file with jcrew???s entire clothing data scraped
[07:03:31] sevenseacat: so search for them and split the file up, im not sure why that would take a decade
[07:03:45] yoongkang: has joined #RubyOnRails
[07:03:50] SteenJobs: sevenseacat: yea so i guess i can just do replace and then parse it. was just hoping there was a way to do both simultanously. sounds good!
[07:04:12] sevenseacat: sure, you could read the file in as a string, munge it, then parse it
[07:04:28] sevenseacat: it will be a bit dicey though because thats likely not the only thing wrong with it
[07:04:54] SteenJobs: i think it is - it just output a new json object for each link that was crawled
[07:05:22] SteenJobs: i could be wrong, i???ll try and then check it again
[07:06:16] Doddlin: Can I use this line to get stylesheet_link_tag to output the absolut url? config.action_controller.asset_host = "https://spacelease.herokuapp.com/"
[07:06:45] Doddlin: I mean, does heroku support it, am I doing something wrong?
[07:08:07] Dopagod: has joined #RubyOnRails
[07:08:25] sevenseacat: Doddlin: you might need to provide some more information.
[07:08:54] Doddlin: sevenseacat, ah ofc, I???m trying to create a mail-template in which I want to load my CSS
[07:09:51] Doddlin: and I thought adding that stylesheet_link_tag would do so, and I guess it???s doing what it???s told, but I need the absolute URL
[07:09:53] sevenseacat: external stylesheets in emails wont work reliably cross-client, but okay
[07:10:08] xcesariox: has joined #RubyOnRails
[07:11:10] Doddlin: sevenseacat, inline styling suggested?
[07:11:17] sevenseacat: not suggested, required.
[07:13:00] Doddlin: guess I???ll go for that instead! I have a vague memory of an online-tool in which you were able to edit a page and the page would output the code with inline styling, anyone who recognizes it?
[07:13:15] sevenseacat: don't know, sorry.
[07:13:35] GoGoGarrett: has joined #RubyOnRails
[07:17:56] duderonomy: has joined #RubyOnRails
[07:19:57] srinidhi: has joined #RubyOnRails
[07:20:03] neanderslob: has joined #RubyOnRails
[07:23:21] TinkerTyper: has joined #RubyOnRails
[07:23:47] Doddlin: if I want to access my assets externally just to make the template with existing classes and using the latest version of my css, what is the simplest way to reach them? just using the /assets pre-pended with my domain gives error as no routes matches :S
[07:24:55] Doddlin: (btw, found almost the tool I waas looking for: http://templates.mailchimp.com/resources/inline-css/ )
[07:25:00] Doddlin: great link to keep
[07:25:08] sevenseacat: yeah once the asset gets a digest added to it, good luck using it externally
[07:25:47] asheinfeld: has joined #RubyOnRails
[07:26:13] darrencauthon: has joined #RubyOnRails
[07:26:15] Doddlin: sooo, I won???t be able to???
[07:27:34] Doddlin: ah! found it! if I precompile locally I will get the full css as well :D
[07:27:54] Doddlin: rake precompile
[07:28:04] User458764: has joined #RubyOnRails
[07:33:50] neanderslob: hi all, I'm attempting to implement the dropbox-api gem for a set of accounts on devise. Now in order to use this app it says I need to set up an oauth configuration
[07:34:19] wethu: has joined #RubyOnRails
[07:35:20] neanderslob: since I'm using devise, I read their man page as it applies to omniauth and it says that all you need to install/configure is the corresponding gem to your dropbox provider (omniauth-dropbox)
[07:36:04] neanderslob: so would I be correct in understanding that I need to install and configure the following gems to get all this to work: dropbox-api, omniauth-dropbox and devise?
[07:36:59] waseem_: neanderslob: That sounds about right.
[07:37:03] _blizzy_: has joined #RubyOnRails
[07:37:08] antgel: has joined #RubyOnRails
[07:37:21] michael_mbp: has joined #RubyOnRails
[07:37:29] waseem_: neanderslob: One of those gems, dropbox-api or omniauth-dropbx might be dependent on other.
[07:37:43] waseem_: neanderslob: You should see the documentation to know more.
[07:38:06] silverdust: What does config.action_controller.asset_host do in production.rb ?
[07:38:42] silverdust: I've been explicitly calling images from asset server but I host CSS and JS on main server
[07:39:10] silverdust: I'm afraid it may mess things up but I'll like if someone helps me understand beter
[07:40:07] neanderslob: waseem_: it just seems odd to me that dropbox-api would require an additional dropbox-specific omniauth gem, rather than hooking directly into devise's omniauth capabilities
[07:41:10] sevenseacat: why? all of the other omniauth strategies require their own specific gems
[07:41:32] waseem_: neanderslob: AFAIK devise's omniauth capabilities are because of omniauth gem. Separating the provider specific logic in different gems makes sens.
[07:41:58] neanderslob: waseem_: far enough
[07:42:23] waseem_: SRP, right?
[07:44:20] neanderslob: sevenseacat: it would just seem that application-specific functionality would be covered under the dropbox-api gem as it always requires omniauth to function
[07:44:52] neanderslob: sevenseacat: I would guess that all you should need is the dropbox-api gem and general omniauth functionality
[07:44:57] sevenseacat: neanderslob: so you want them to duplicate the functionality from the omniauth-dropbox gem, instead of reusing it?
[07:45:40] bruno-: has joined #RubyOnRails
[07:46:25] neanderslob: sevenseacat: I guess I'm having a hard time distinguishing the functionality provided by omniauth-dropbox from that provided by dropbox-api
[07:46:52] sevenseacat: i presume the dropbox-api provides a lot more than just authentication access
[07:47:50] silverdust: I'm trying to set asset-host for only images. What's the recommended way?
[07:48:35] silverdust: I stumbled upon this http://stackoverflow.com/questions/7034646/using-asset-host-proc-for-only-images-in-rails-3-1 and I don't know how well it will play with rails 4.2
[07:49:32] neanderslob: sevenseacat: now that you mention it, it does (directory structure, read/write functionality, file deletion, file search)
[07:49:38] neanderslob: sevenseacat: alright, that makes sense
[07:49:43] Doddlin: silverdust, there is a way to make an if-statement to check whether the file has a .css or .png-ending
[07:50:11] fgo: has joined #RubyOnRails
[07:50:34] silverdust: Doddlin: like in that stackoverflow post? or a better way?
[07:50:48] neanderslob: sevenseacat: I think this makes sense enough for me to just see what happens; thanks
[07:50:52] Doddlin: there should be a good example given in the docs
[07:51:03] Doddlin: hang on, i???ll google it again :)
[07:52:16] Doddlin: silverdust
[07:52:17] Doddlin: http://edgeapi.rubyonrails.org/classes/ActionView/Helpers/AssetUrlHelper.html
[07:52:31] Doddlin: 6th yellow box should do what you want :=)
[07:52:48] siemprefresco: has joined #RubyOnRails
[07:53:31] sameerynho: has joined #RubyOnRails
[07:54:25] silverdust: but that's what is on the stackoverflow post
[07:55:25] tetraktys: has joined #RubyOnRails
[07:55:54] lxsameer_: has joined #RubyOnRails
[07:56:16] beneggett: has joined #RubyOnRails
[07:58:22] strcmp1: has joined #RubyOnRails
[07:59:03] ts310: has joined #RubyOnRails
[08:00:59] sinkensabe: has joined #RubyOnRails
[08:01:20] sameerynho: has joined #RubyOnRails
[08:02:15] workmad3: has joined #RubyOnRails
[08:04:39] Rubie: has joined #RubyOnRails
[08:07:04] The_Phoenix: has joined #RubyOnRails
[08:08:10] The_Phoenix: has joined #RubyOnRails
[08:08:13] jgt: has joined #RubyOnRails
[08:11:11] hahuang65: has joined #RubyOnRails
[08:12:05] darutoko: has joined #RubyOnRails
[08:12:49] maz-dev: has joined #RubyOnRails
[08:13:07] duncannz: has joined #RubyOnRails
[08:13:53] x-light: has joined #RubyOnRails
[08:15:45] jeanlinux: has joined #RubyOnRails
[08:15:58] SteenJobs: has joined #RubyOnRails
[08:17:01] hamster88: I am getting this one error > undefined method `user_profiles_path' for #<#<Class:0x007fddc9755658>:0x007fddc974d2a0 < when fetching a new profile form
[08:17:25] SteenJobs: sevenseacat: did some research, found this: https://github.com/brianmario/yajl-ruby/tree/master#parsing - although i could use a drop of help with one bit - they mention midway through the section the need to specify a block if there???s more than one json string - what???s the block supposed to consist of?
[08:18:00] SteenJobs: hamster88: did you run rake routes and check that your helper is correct?
[08:18:23] SteenJobs: hamster88: my guess is it should be user_profile_path
[08:18:27] sandstrom: has joined #RubyOnRails
[08:19:07] SteenJobs: hamster88: gist you code so i can understand why it says you???re applying the helper to a class...
[08:19:11] djbkd: has joined #RubyOnRails
[08:19:20] hamster88: sure thing. hang on .
[08:20:09] bmalum: has joined #RubyOnRails
[08:20:23] hamster88: https://gist.github.com/thedesignable/f8b34cacff1e7b9b94ab
[08:21:06] SteenJobs: hamster88: where is your error
[08:21:48] SteenJobs: hamster88: my guess is it should be profile_path(@user)
[08:22:11] hamster88: SteenJobs, updated the gist with error code
[08:23:59] wicked_shell: has joined #RubyOnRails
[08:24:13] yoongkang: has joined #RubyOnRails
[08:24:29] hamster88: and where should i change it to profile_path(@user)
[08:24:51] SteenJobs: hamster88: nevermind that???s not you error
[08:24:57] SteenJobs: what are you passing to form_for?
[08:25:00] SteenJobs: why not just @user?
[08:25:26] hamster88: the form is for creating user profile
[08:25:31] DEA7TH: has joined #RubyOnRails
[08:26:14] SteenJobs: so why do you have @user.build_profile?
[08:26:36] hamster88: user model is from devise and i am trying to create profile for that user so visitors can be redirected to the profile if they click on his/her name
[08:26:46] asheinfeld: has joined #RubyOnRails
[08:26:55] User458764: has joined #RubyOnRails
[08:27:00] SteenJobs: hamster88: but what in the world is build_profile doing in the form_for
[08:27:01] darrencauthon: has joined #RubyOnRails
[08:27:02] hamster88: this will apply to all the writers of the blog.
[08:27:18] silverdust: The hash appended to assets for cache busting gets appended to my S3 uploaded images preventing S3 from finding the files. It worked fine before setting a asset host
[08:27:53] hamster88: SteenJobs, what do think it should be then?
[08:28:17] SteenJobs: hamster88: the building of the object should be taking place in your controller
[08:28:33] roolo: has joined #RubyOnRails
[08:28:40] hamster88: I added that already.
[08:28:47] hamster88: so i should only use @user?
[08:29:43] Pazician: has joined #RubyOnRails
[08:29:51] michael_mbp: has joined #RubyOnRails
[08:30:12] Pazician: has joined #RubyOnRails
[08:30:29] beneggett: has joined #RubyOnRails
[08:31:34] hamster88: I got it working :D
[08:31:49] hamster88: used this instead > >> <%= form_for @user.build_profile do |f| %>
[08:32:28] zeitue: has joined #RubyOnRails
[08:32:38] blackmes1: has joined #RubyOnRails
[08:33:28] SteenJobs: still don't understand why you have @user.build_profile
[08:39:36] sanjivupadhyaya: has joined #RubyOnRails
[08:39:56] jalcine: that should be just @user, no?
[08:41:03] jalcine: ACTION steps out
[08:41:31] renews: has joined #RubyOnRails
[08:43:16] TvL2386: has joined #RubyOnRails
[08:43:33] maz-dev: has joined #RubyOnRails
[08:44:39] n008f4g_: has joined #RubyOnRails
[08:47:15] Sylario: has joined #RubyOnRails
[08:49:34] dkam: has joined #RubyOnRails
[08:57:31] hamster88: has joined #RubyOnRails
[08:59:19] cac: has joined #RubyOnRails
[09:00:13] hamster88: blah i got dc :(
[09:00:41] duncannz: has joined #RubyOnRails
[09:00:55] bmalum: has joined #RubyOnRails
[09:01:14] Spami: has joined #RubyOnRails
[09:01:17] qejk: has joined #RubyOnRails
[09:02:07] Ropeney: has joined #RubyOnRails
[09:02:08] infoget: has joined #RubyOnRails
[09:04:44] ts310: has joined #RubyOnRails
[09:05:24] djbkd: has joined #RubyOnRails
[09:05:43] blackmes1: has joined #RubyOnRails
[09:07:45] artto: has joined #RubyOnRails
[09:08:26] infoget: has left #RubyOnRails: ()
[09:11:10] jacor: has joined #RubyOnRails
[09:11:45] hahuang65: has joined #RubyOnRails
[09:11:49] User458764: has joined #RubyOnRails
[09:13:53] tvw: has joined #RubyOnRails
[09:15:17] cha1tanya: has joined #RubyOnRails
[09:20:06] tvw: has joined #RubyOnRails
[09:20:07] jarray521: has left #RubyOnRails: ()
[09:20:44] Doddlin: I???m back??? getting images with image_tag into an email, and using aws, that should be possible, right?
[09:21:10] Doddlin: would I have to edit the XML-files on AWS to enable access?
[09:21:23] thmsmtylr: has joined #RubyOnRails
[09:22:35] Doddlin: sevenseacat, no to the first question or the second?
[09:22:44] sevenseacat: no to editing the xml files
[09:22:55] sevenseacat: what problems are you having while trying to reference images using image_tag?
[09:23:20] Doddlin: sevenseacat, I get a question-mark, looks like a 404
[09:23:30] sevenseacat: do you have the right URL?
[09:23:39] sevenseacat: is it actually a 404?
[09:24:03] Doddlin: sevenseacat, I think I do, it is the same URL that i use on the page and it works there
[09:24:26] Doddlin: image_tag( @curr_user.avatar.url(:small))
[09:24:39] sevenseacat: and what HTML does that generate?
[09:25:06] Doddlin: sevenseacat, my bad entirely??? again...
[09:25:36] Doddlin: :small did not even exist
[09:26:12] fluxsource: I'm struggling a bit with rendering a partial in a custom liquid tag - but it's complaining that the partial name is not a valid Ruby identifier.
[09:26:58] fluxsource: The stack trace suggests that the identifier should begin with and underscore, but I thought Rails added the underscore itself when looking up a partial
[09:27:05] fluxsource: https://gist.github.com/flxsource/f65fc7646f038443127a is the tag I'm using
[09:27:19] asheinfeld: has joined #RubyOnRails
[09:27:46] darrencauthon: has joined #RubyOnRails
[09:28:34] squiercaster: has joined #RubyOnRails
[09:35:40] renews: has joined #RubyOnRails
[09:37:41] Tempesta: has joined #RubyOnRails
[09:41:27] duncannz: has joined #RubyOnRails
[09:41:36] blackmes1: has joined #RubyOnRails
[09:45:22] marr: has joined #RubyOnRails
[09:47:52] towski_: has joined #RubyOnRails
[09:50:09] jglover: has joined #RubyOnRails
[09:50:51] ts310: has joined #RubyOnRails
[09:50:54] jglover: im sure im doing something stupid, but for some reason I can require files from application.js.coffee, but i can't require any files from within those.
[09:50:55] jglover: its driving me nuts
[09:51:00] workmad3: has joined #RubyOnRails
[09:51:08] jglover: this is also a fresh project in rails 4.2
[09:52:16] hamster88: I am getting this error when i am trying to create a new profile >>> No route matches {:action=>"show", :controller=>"profiles", :format=>nil, :id=>nil, :user_id=>#<Profile id: 7, created_at: "2015-06-21 09:43:20", updated_at: "2015-06-21 09:43:20",
[09:52:22] hamster88: missing required keys: [:id]
[09:53:25] jglover: hamster88: what do you mean trying to create a new profile?
[09:53:41] tbuehlmann: hamster88, can you paste the view from which you try to create it? and the corresponding controller plus routes?
[09:54:04] hamster88: tbuehlmann, hold on a sec .
[09:54:50] bruno-: has joined #RubyOnRails
[09:55:22] FernandoBasso: has joined #RubyOnRails
[09:56:19] hamster88: https://gist.github.com/thedesignable/b8e9f6cac45124808c7d
[09:56:24] hamster88: there you go tbuehlmann
[09:56:37] fluxsource: hamster88: it looks like you've got a mismatch in param names
[09:57:04] fluxsource: ie, it looks like you're passing it user_id instead of id
[09:57:15] tbuehlmann: hamster88, the routes, too?
[09:57:26] fluxsource: and the property for user_id is using the entire User object instead of just the id
[09:57:42] wethu: has joined #RubyOnRails
[09:57:53] hamster88: tbuehlmann, added routes too
[09:58:08] hamster88: fluxsource, so how should i fix it?
[09:58:30] fluxsource: hamster88: there are two ways
[09:58:31] cac: has joined #RubyOnRails
[09:58:51] fluxsource: 1) Change the form so that it uses the id instead of the user_id
[09:59:02] tbuehlmann: hamster88, https://gist.github.com/thedesignable/b8e9f6cac45124808c7d#file-profiles_controller-rb-L11 seems wrong. try user_profile_path(@user, @profile)
[09:59:03] fluxsource: 2) Change the route to expect user_id instead of id
[10:00:17] hamster88: tbuehlmann, tried that and now getting this >>> undefined method `build_profile' for nil:NilClass
[10:00:47] hamster88: fluxsource, i don't have any idea how to do that 2nd one.. that is routing expected user_id
[10:01:06] tbuehlmann: hamster88, so, different error now. full stacktrace to that, please
[10:02:12] hamster88: tbuehlmann, updated gist with full error stack > https://gist.github.com/thedesignable/b8e9f6cac45124808c7d
[10:03:09] tbuehlmann: hamster88, you have a nil object somewhere
[10:03:29] tbuehlmann: you probably redirect to the show action without having the @user object?
[10:03:47] hamster88: I have not defined anything i the show action for profile
[10:04:08] tbuehlmann: check if the profile is saved or not
[10:04:19] hamster88: it is saving up in the database
[10:05:18] tbuehlmann: then you're redirected to the show action, right?
[10:05:40] Haydos: has joined #RubyOnRails
[10:05:41] cac: has joined #RubyOnRails
[10:05:56] tbuehlmann: what happens then?
[10:06:10] hamster88: it should redirect to user profile path
[10:06:31] tbuehlmann: it should, correct. but you said it doesn't
[10:06:37] hamster88: as soon as i submit the form it gives the error
[10:06:43] hamster88: tbuehlmann, true.
[10:06:55] tbuehlmann: check the server terminal
[10:07:30] hamster88: server terminal gave this error : NameError: undefined local variable or method `params' for main:Object
[10:07:43] tbuehlmann: btw, you're calling `@profile = @user.create_profile(???)` followed by `@profile.save`, no need to save twice
[10:07:59] hamster88: sorry my bad.
[10:08:04] ts310: has joined #RubyOnRails
[10:08:27] tbuehlmann: hamster88, check where the error comes from. file, line, and check
[10:08:49] vmarcetic: has joined #RubyOnRails
[10:08:53] hamster88: i got this logged into server >
[10:08:54] hamster88: Started GET "/users/1/profiles/9" for 127.0.0.1 at 2015-06-21 15:35:23 +0530
[10:08:54] hamster88: Processing by ProfilesController#show as HTML
[10:08:55] hamster88: Parameters: {"user_id"=>"1", "id"=>"9"}
[10:08:55] hamster88: Rendered partials/_profile.html.erb (3.4ms)
[10:08:55] hamster88: Rendered profiles/show.html.erb within layouts/application (4.5ms)
[10:08:57] hamster88: Completed 500 Internal Server Error in 8ms
[10:09:11] vmarcetic: has left #RubyOnRails: ()
[10:09:26] jglover_: has joined #RubyOnRails
[10:10:09] tbuehlmann: please don't paste in here, use the gist. so, the error is weird, I don't think that's the one happening here. but we can see that the show is called. and I bet you're using @user inside of partials/_profile.html.erb
[10:10:25] tbuehlmann: and that you don't have @user defined there, because the show action is empty
[10:10:50] hamster88: >> <%= form_for ([@user, @user.build_profile]) do |f| %>
[10:10:59] hamster88: and yes @user is not defined there
[10:11:22] tbuehlmann: mystery solved \o/
[10:12:20] hamster88: so it should be defined in the form itself.. somewhat like > @user = current_user or something?
[10:13:31] meoblast001: has joined #RubyOnRails
[10:13:41] tbuehlmann: define such things in the controller, as you do already in the new action
[10:13:47] fluxsource: that kind of assignment should be in the controller
[10:14:01] fluxsource: (Sorry for vanishing - family duties called)
[10:14:32] hamster88: what confuses me is that should it be calling it by id or user_id?
[10:14:39] tbuehlmann: hamster88, each action in the profiles controller needs the @user object, right? you could add a before_action :set_user and set the object in there
[10:14:49] tbuehlmann: hamster88, what? where?
[10:15:07] hamster88: tbuehlmann, in the show action
[10:15:22] tbuehlmann: what's the question exactly?
[10:17:20] hamster88: i have added this under show in profiles controller > @user = User.find(params[:user_id])
[10:17:39] hamster88: Just wondering if that is what you were talking about to put under show method in controller
[10:17:52] tbuehlmann: yes, that's what I mean
[10:18:16] tbuehlmann: another approach (since you've wrote about current_user): don't define @user at all. have a before_action that checks for a logged in user and simply use current_user in the controller actions and views
[10:19:22] hamster88: like before_action :set_user = current_user?
[10:21:04] quazimodo: has joined #RubyOnRails
[10:21:25] tbuehlmann: like this: https://gist.github.com/tbuehlmann/1939dbe7463503825acf
[10:21:37] tbuehlmann: wow, gist indentation going bonky
[10:22:39] jeanlinux: has joined #RubyOnRails
[10:23:27] User458764: has joined #RubyOnRails
[10:24:42] tbuehlmann: or like this: https://gist.github.com/tbuehlmann/8ee5e86b4bb7656a190d
[10:25:22] tbuehlmann: (authenticate_user! being a private controller method (maybe from devise, maybe written by you) that checks whether the user is logged in or not)
[10:26:41] disperso_: has left #RubyOnRails: ()
[10:28:01] Hates_: has joined #RubyOnRails
[10:28:07] asheinfeld: has joined #RubyOnRails
[10:28:31] darrencauthon: has joined #RubyOnRails
[10:29:45] hamster88: the authenticate_user! << that is from devise
[10:29:53] renews: has joined #RubyOnRails
[10:31:15] ts310: has joined #RubyOnRails
[10:32:58] hamster88: and this is totally strange :/ after those, the data is not getting saved .. i see no rows regarding that in db
[10:33:03] blackmesa: has joined #RubyOnRails
[10:37:02] hamster88: user and profile association is pain -.-
[10:37:12] bronson: has joined #RubyOnRails
[10:37:45] Dzejmskrokan: has joined #RubyOnRails
[10:38:24] tbuehlmann: check the server terminal. is the code called when the profile is saved? then at least the saving happens
[10:38:37] Doddlin: how come I have 2 slashes in my assets-path for the js and css? wasn???t there before...
[10:39:10] artto_: has joined #RubyOnRails
[10:39:39] Doddlin: found it, had a slash in my assets_path in my production.rb
[10:41:19] hamster88: tbuehlmann, have a look at what server outputs > https://gist.github.com/thedesignable/b8e9f6cac45124808c7d
[10:41:35] hamster88: but i can't see those records in database which is totally strange
[10:42:05] tbuehlmann: um, do you always create a new profile?
[10:43:29] Papierkorb: has joined #RubyOnRails
[10:43:34] hamster88: well atleast i need to have a profile created for existing user .. so that i can then perform update and edit..
[10:43:49] hamster88: the user i am talking about exists before including the profile model
[10:44:34] Haydos: has joined #RubyOnRails
[10:45:45] blackmes1: has joined #RubyOnRails
[10:46:17] tbuehlmann: why not create a profile when the user is created? and even if the user already exists, why not create profiles? do you really need the new and create method?
[10:48:34] fluxsource: so, no one seemed to have any idea about my question earlier, so I'll try a difference tack
[10:49:10] fluxsource: if I render a partial using ERB then it searches both the app and any mounted engines
[10:49:12] fluxsource: which is good
[10:49:53] fluxsource: but if, when using liquid, I use the import tag, it only renders views from the app itself
[10:50:09] fluxsource: any ideas how I can get it to render a view from the engine?
[10:50:38] hamster88: tbuehlmann, I don't really need new and create method cos there will be only one or two users who will be posting articles
[10:52:21] hamster88: fluxsource, like in case you are using ckeditor or something like that?
[10:52:41] fluxsource: hamster88: sorry, not sure what you mean?
[10:53:30] hamster88: like in my project i use ckeditor which has its own engine that is required to be mounted .. do you mean that you want to render views from ckeditor or something simila ?
[10:53:45] fluxsource: yes - it's my own engine
[10:53:52] Rubie: has joined #RubyOnRails
[10:54:51] hamster88: fluxsource, have you tried mounting it via routes and then render whatever fields it uses into the views?
[10:55:09] fluxsource: hamster88: I can render the partial just fine using ERB
[10:55:25] fluxsource: but the similar tag in liquid won't search the engines views
[10:55:48] hamster88: gist the tags if you can ..
[10:55:54] hamster88: I will have a look at it
[10:56:48] hamster88: also, fyi, this is the way i've mounted the ckeditor engine >> mount Ckeditor::Engine => '/ckeditor'
[10:57:38] fluxsource: where did you do thaT?
[10:58:53] hamster88: i did that in routes
[10:59:11] hamster88: also to render your partial in liquid try this >> {% template 'common/footer' %}
[10:59:48] hamster88: a regular call using render won't do any good.
[11:00:02] AzaToth: has joined #RubyOnRails
[11:00:31] hahuang65: has joined #RubyOnRails
[11:02:15] fluxsource: https://gist.github.com/flxsource/8b33c41f087c27f0cd44
[11:02:21] fluxsource: template isn't a valid tag...
[11:03:03] GoGoGarrett: has joined #RubyOnRails
[11:03:40] hamster88: fluxsource, you using rails 3?
[11:03:46] pontiki: has joined #RubyOnRails
[11:04:39] hamster88: let me check
[11:05:13] cac: has joined #RubyOnRails
[11:06:02] hamster88: fluxsource, one question does it render plain text if you use include tag?
[11:06:19] fluxsource: hamster88: what do you mean?
[11:06:33] fluxsource: if there's a partial in the app, it will render that
[11:06:39] fluxsource: but not if the partial is in the engine
[11:06:49] fluxsource: also of relevance is I'm using liquid 3.0.3
[11:07:02] hamster88: aha... what is the path to the partial in engine please?
[11:07:15] fluxsource: filesystem path?
[11:07:35] fluxsource: (...)/app/views/shared/_panel.liquid
[11:08:15] stamina: has joined #RubyOnRails
[11:09:39] fluxsource: I've even tried creating a custom tag that wraps the rails render_to_string, but that has its own problems (asked about those earlier)
[11:10:06] hamster88: remove this >> <%= shared/panel %> and just use the {% include 'shared/panel' %} and see what happens.
[11:10:40] fluxsource: yep - same problem
[11:11:08] fluxsource: also, that's a typo :P
[11:11:09] hamster88: custom wraps won't help with that
[11:11:19] fluxsource: should be <%= render 'shared/panel' %>
[11:11:31] fluxsource: why not? render can find the view
[11:11:47] hamster88: i just took a guess
[11:12:21] hamster88: i asked you to knock out that render because, liquid would treat {% include 'shared/panel' %} as render
[11:12:52] hamster88: it will just render it right into your view.
[11:13:15] yottanami: has joined #RubyOnRails
[11:15:42] hamster88: fluxsource, just want to test try this way,.. first get that partial out of shared folder and put it as the other views... and then try rendering just the file and see what happens.
[11:16:12] fluxsource: I don't have both the erb and liquid at the same time
[11:16:12] hamster88: you tag would change to {% include 'panel' %}
[11:16:23] fluxsource: you mean just in the views folder?
[11:16:25] fluxsource: yep, tried that
[11:16:27] fluxsource: same problem
[11:16:44] fluxsource: and include is not using render
[11:17:06] User458764: Hi, Optgroup is great but it works with label and label are not unique how do I do to have an id with grouped_collection_select ?
[11:17:17] wicked_shell: has joined #RubyOnRails
[11:17:37] fluxsource: render used the search hierarchy whereas include does not
[11:17:50] hamster88: but it works almost same way
[11:18:17] hamster88: and have a look at this one >> https://github.com/jekyll/jekyll/issues/1519 , might get you a little help
[11:18:35] fluxsource: of parsing the contents of another view into the current one? yeah
[11:18:47] Silent_Knight: has joined #RubyOnRails
[11:18:47] exadeci: has joined #RubyOnRails
[11:19:06] hamster88: fluxsource, yep
[11:19:30] fluxsource: that's not the problem
[11:19:48] fluxsource: the problem is the liquid include tag not searching for the partial in the same way
[11:20:09] hamster88: i know thats not the prob, i shared that with you to check out the way the code they used
[11:20:52] hamster88: and you already tried render_to_string method?
[11:21:14] hamster88: and setting result as a liquid variable?
[11:22:21] fluxsource: I've tried using https://gist.github.com/flxsource/f65fc7646f038443127a
[11:22:27] hamster88: here is a example > Liquid::Template.parse(template).render 'products' => Product.find(:all)
[11:23:06] hamster88: try this way
[11:24:16] hamster88: probably that should help rendering that template or partial to the view
[11:24:43] hamster88: or this > Liquid::Template.register_tag('render', Jekyll::RenderTag)
[11:24:45] Lightsword: has joined #RubyOnRails
[11:26:20] User458764: has joined #RubyOnRails
[11:27:48] SteenJobs: has joined #RubyOnRails
[11:28:03] hamster88: wb SteenJobs :D
[11:28:13] hamster88: sorry i got dc earlier xD
[11:28:34] poincare101: has joined #RubyOnRails
[11:28:55] asheinfeld: has joined #RubyOnRails
[11:29:19] darrencauthon: has joined #RubyOnRails
[11:29:35] hamster88: SteenJobs, when i create a profile it gets created but i don't know why it is not saving to the database.
[11:29:35] SteenJobs: is anyone else active in the chat?
[11:29:44] SteenJobs: hamster88: i
[11:29:53] SteenJobs: i???m guessing you haven???t saved it properly in your controller
[11:30:09] hamster88: i am using @profile.save for that
[11:30:21] hamster88: would you take a look? just in case i missed something?
[11:31:09] hamster88: thats the gist > https://gist.github.com/thedesignable/b8e9f6cac45124808c7d
[11:31:10] mostlybadfly: has joined #RubyOnRails
[11:31:10] renews: has joined #RubyOnRails
[11:32:13] okdas_: has left #RubyOnRails: ()
[11:32:35] okdas_: has joined #RubyOnRails
[11:35:20] SteenJobs: hamster88: have you checked what the params are being sent to your controller?
[11:35:32] SteenJobs: my guess is they don???t look like params[:profile]
[11:36:00] SteenJobs: especially if you???re passing @user to the form_for - and i have no idea why you also pass @user.build_profile to the form.
[11:36:31] hamster88: the profile is associated with user
[11:37:25] hamster88: so thats reason i used params profile
[11:37:35] SteenJobs: but that???s just not the way it works
[11:37:41] SteenJobs: change form_for to @profile
[11:37:52] SteenJobs: and read rails guides on helpers
[11:38:35] SteenJobs: just look at your params
[11:38:39] SteenJobs: of course they???re not being saved
[11:38:50] SteenJobs: it literally says it straight out in your server log
[11:39:56] workmad3: has joined #RubyOnRails
[11:40:21] hamster88: yeah, they are not getting saved
[11:40:29] SteenJobs: i know. and that makes sense
[11:40:38] baron: has joined #RubyOnRails
[11:42:29] hamster88: this > @profile = @user.create_profile(params[:profile].permit(:name, :about, :country, :twitter)) < shouldn't it be @user.build_profile?
[11:43:17] hamster88: however i am not sure of this params [:profile] yet
[11:43:31] SteenJobs: change the form_for to @profile
[11:43:45] hamster88: when i do that it does gives me another error
[11:44:01] SteenJobs: what???s the error
[11:44:17] SteenJobs: you need to read the errors. they???re the most informative thing you???ll encounter.
[11:44:47] hamster88: undefined method `profiles_path' for #<#<Class:0x007f1865a44bb8>:0x0000000442de80>
[11:45:11] hamster88: i have the profiles resources under user in my routes
[11:45:53] SteenJobs: make it @user, @profile
[11:45:59] SteenJobs: [@user,@profile]
[11:46:52] Tinyyy: has joined #RubyOnRails
[11:47:20] hamster88: i did it already but the data is not getting saved into database
[11:48:47] hamster88: also the id is incrementing in the url .. could it be that? because user has only one profile
[11:48:57] squiercaster: has joined #RubyOnRails
[11:49:12] hamster88: this is the last url after adding new profile of the user >> http://localhost:3000/users/1/profiles/31
[11:50:37] SteenJobs: with form_for the way i showed above, i need to see the server log when you try to send the post request otherwise i have no way of knowing what???s going on
[11:50:43] SteenJobs: and no the id is supposed to increment
[11:50:58] Pupeno_: has left #RubyOnRails: ()
[11:51:05] Pupeno: has joined #RubyOnRails
[11:51:21] hamster88: SteenJobs, when i used this in the form >> <%= form_for (@user, @user.build_profile) do |f| %> it got the data saved but then gave another error
[11:51:39] beingjohnm: has joined #RubyOnRails
[11:51:40] SteenJobs: if i dont know the error i cant help youuuuuuu
[11:51:48] Pupeno: it's really annoying that this channel doesn't let you change nick while in it and it's the only channel in the 30 or so channels I frequent that does that. Is there a good reason? Can it be changed?
[11:52:07] hamster88: syntax error, unexpected ')', expecting keyword_end ...or (@user, @user.build_profile) do |f| @output_buffer.safe_a... ...
[11:53:11] SteenJobs: hamster88: read the error and figue it out???it???s literally telling you what the problem is
[11:53:19] SteenJobs: and how do you know it???s saving?
[11:53:43] hamster88: SteenJobs, i checked the database and it has that newly added profile
[11:53:53] SteenJobs: with any data
[11:54:38] hamster88: yes with all data
[11:55:07] Rubie: has joined #RubyOnRails
[11:55:30] SteenJobs: that error message means you have a syntax error which is why it says syntax error
[11:55:39] SteenJobs: the parentheses are no good
[11:55:51] SteenJobs: when i said @user,@profile, did you use parentheses?
[11:57:22] GoGoGarrett: has joined #RubyOnRails
[11:57:57] SteenJobs: i told you to use brackets
[11:58:09] vasilakisfil_: has joined #RubyOnRails
[11:58:23] vasilakisfil_: has left #RubyOnRails: ()
[11:58:38] vasilakisFiL: has joined #RubyOnRails
[12:00:18] vasilakisFiL: is there a way.. where I can feed a rails helper with a HTTP request path like '/api/v1/users/28' and the HTTP method like GET and retriece the route details? I mostly want the route spec/format like "GET /api/v1/users/:id"
[12:00:55] hamster88: SteenJobs, when i with brackets, it give this error >: First argument in form cannot contain nil or be empty
[12:01:18] SteenJobs: and what do you think that means
[12:01:27] SteenJobs: again, it???s littttteralllllyyyyy telling you what the problem is
[12:01:47] SteenJobs: and it???s clearly not the same error as before so it obviously changd something
[12:02:06] renews: has joined #RubyOnRails
[12:04:33] yoongkang: has joined #RubyOnRails
[12:05:03] kaichanvong_: has joined #RubyOnRails
[12:07:15] Synthead: has joined #RubyOnRails
[12:09:33] startupality: has joined #RubyOnRails
[12:11:34] aloneintheworld: has joined #RubyOnRails
[12:11:41] prasselpikachu_: has left #RubyOnRails: ()
[12:11:51] prasselpikachu: has joined #RubyOnRails
[12:12:18] cac: has joined #RubyOnRails
[12:13:21] vasilakisfil_: has joined #RubyOnRails
[12:13:54] vasilakisfil_: has joined #RubyOnRails
[12:17:36] otherj: has joined #RubyOnRails
[12:17:59] Lightsword: has joined #RubyOnRails
[12:18:18] otherj: does rails 4 provide some way to validate that the fields generated by date_select have values? it seems that for rails 3 validates_timeliness gem was the recommended solution, but it hasn't been updated in years
[12:19:13] taxen: has joined #RubyOnRails
[12:21:03] malusalexandru: has joined #RubyOnRails
[12:21:52] Aswebb_: has joined #RubyOnRails
[12:22:57] vasilakisfil_: has joined #RubyOnRails
[12:23:04] hardtail: has joined #RubyOnRails
[12:24:10] hardtail: Hi guys. My MacBook Pro has shit the bed. I have a low end Surface Pro, i3, 4GB RAM, etc...Can I develop Rails applications on Windows acceptably or do I need to find a way to run Linux on it?
[12:25:25] asheinfeld: has joined #RubyOnRails
[12:27:08] malusalexandru: Hello. I have a problem with a text_field_tag where its name must come from a controller variable. In the firebug inspector, the assigned name is correctly assigned, the text_field_tag is present in the form, but upon form submission the text_field_tag(name as well as its value) does not exist. A regular text_field_tag works properly. Any way for me to get the text_field_tag name assignment from a controller variable?
[12:27:19] malusalexandru: Gist with my problem can be seen: https://gist.github.com/maimutza/17b71bba597f1af80ec6
[12:28:03] wethu: has joined #RubyOnRails
[12:28:37] yottanami: has left #RubyOnRails: ("PONG :kornbluth.freenode.net")
[12:28:52] taxen: Hey everyone. I'm trying to mix a javascript variable into an image_tag (in my javascript file), like this: var path = 'sections/about/' + id + '-profile.jpg';
[12:28:53] taxen: var html = '<%= image_tag("' + path + '")%>'; but the variable is not read properly... What am I doing wrong?
[12:30:00] darrencauthon: has joined #RubyOnRails
[12:30:19] dideler: has joined #RubyOnRails
[12:34:47] wicked_shell: has joined #RubyOnRails
[12:37:53] Papierkorb_: has joined #RubyOnRails
[12:37:59] ts310: has joined #RubyOnRails
[12:38:29] quazimodo: has joined #RubyOnRails
[12:49:25] sandstrom: has joined #RubyOnRails
[12:50:52] jgt: has joined #RubyOnRails
[12:51:29] GoGoGarrett: has joined #RubyOnRails
[12:57:14] vasilakisfil_: has joined #RubyOnRails
[12:58:30] gerep: has joined #RubyOnRails
[12:59:23] kenndel_: has joined #RubyOnRails
[12:59:40] sanjivup_: has joined #RubyOnRails
[13:00:45] alxndr_: has joined #RubyOnRails
[13:00:46] GSF: has joined #RubyOnRails
[13:00:48] mheld_: has joined #RubyOnRails
[13:00:55] Emily_: has joined #RubyOnRails
[13:01:06] cha1tanya: has joined #RubyOnRails
[13:01:10] nomadicoder_: has joined #RubyOnRails
[13:02:32] hardtail: does anyone develop Rails on Windows?
[13:02:35] nickjj_: has joined #RubyOnRails
[13:03:38] darutoko-: has joined #RubyOnRails
[13:03:57] johnkpaul_: has joined #RubyOnRails
[13:04:05] mc_-_: has joined #RubyOnRails
[13:04:10] cornerma1: has joined #RubyOnRails
[13:04:30] sinkensabe: has joined #RubyOnRails
[13:04:47] premera_n: has joined #RubyOnRails
[13:05:09] premera_n: has joined #RubyOnRails
[13:05:16] DEA7TH__: has joined #RubyOnRails
[13:05:18] moloch: has joined #RubyOnRails
[13:05:32] premera_n: has joined #RubyOnRails
[13:05:34] maZtah_: has joined #RubyOnRails
[13:05:41] Ratler_: has joined #RubyOnRails
[13:05:44] grandy_: has joined #RubyOnRails
[13:05:46] Leeky_: has joined #RubyOnRails
[13:05:53] balr0g_: has joined #RubyOnRails
[13:05:54] premera_n: has joined #RubyOnRails
[13:05:56] Pupeno_: has joined #RubyOnRails
[13:05:59] SegFaultAX_: has joined #RubyOnRails
[13:06:09] jesterfraud: Hardtail, can't say I recommend it
[13:06:14] jesterfraud: I use Vagrant any time I have to do that
[13:06:14] premera_n: has joined #RubyOnRails
[13:06:18] RubyNewbey_: has joined #RubyOnRails
[13:06:22] larshaugseth: has joined #RubyOnRails
[13:06:28] jesterfraud: which is pretty much just a virtual machine with some conveniences
[13:06:33] kenj0: has joined #RubyOnRails
[13:06:39] premera_n: has joined #RubyOnRails
[13:06:50] shawnatyger: has joined #RubyOnRails
[13:07:03] premera_n: has joined #RubyOnRails
[13:07:18] lxkm__: has joined #RubyOnRails
[13:07:18] leslie1: has joined #RubyOnRails
[13:07:19] shtirlic_: has joined #RubyOnRails
[13:07:19] bbhoss__: has joined #RubyOnRails
[13:07:19] lxkm__: has joined #RubyOnRails
[13:07:20] bbhoss__: has joined #RubyOnRails
[13:07:27] premera_n: has joined #RubyOnRails
[13:07:27] Anakat_: has joined #RubyOnRails
[13:07:55] skarn_: has joined #RubyOnRails
[13:07:57] otherj_: has joined #RubyOnRails
[13:08:23] lapide_viridi: has joined #RubyOnRails
[13:08:25] aguynamedben: has joined #RubyOnRails
[13:08:27] Diabolik: has joined #RubyOnRails
[13:08:40] eggoez: has joined #RubyOnRails
[13:09:15] terrellt: has joined #RubyOnRails
[13:09:25] rmoriz: has joined #RubyOnRails
[13:09:44] Klumben: has joined #RubyOnRails
[13:10:13] Denarii: has joined #RubyOnRails
[13:10:41] markelite: has joined #RubyOnRails
[13:10:43] GoGoGarrett: has joined #RubyOnRails
[13:11:09] defswork_: has joined #RubyOnRails
[13:11:11] toydestroyer: has joined #RubyOnRails
[13:11:22] mr_foobar: has joined #RubyOnRails
[13:12:01] strcmp1: has joined #RubyOnRails
[13:13:13] amitchellbullard: has joined #RubyOnRails
[13:13:16] thews_: has joined #RubyOnRails
[13:13:23] shwoodard: has joined #RubyOnRails
[13:17:51] Axy: has joined #RubyOnRails
[13:17:51] Axy: has joined #RubyOnRails
[13:18:27] GoGoGarr_: has joined #RubyOnRails
[13:18:59] Tashi: has joined #RubyOnRails
[13:19:13] sanjivupadhyaya: has joined #RubyOnRails
[13:19:13] thews_: has joined #RubyOnRails
[13:20:13] nightsh_: has joined #RubyOnRails
[13:21:53] suffice: has joined #RubyOnRails
[13:21:58] s2013: has joined #RubyOnRails
[13:22:10] maloik: has joined #RubyOnRails
[13:22:23] ryanf: has joined #RubyOnRails
[13:22:30] codelahoma: has joined #RubyOnRails
[13:23:18] gregf_: has joined #RubyOnRails
[13:23:23] dlitz: has joined #RubyOnRails
[13:24:57] mr_foobar: Hello guys, I have been stuck with this issue for hours and I just can't figure it out. Adding has_many relationships to a certain model causes a NoMethodError: undefined method `each' for nil:NilClass. But only when the spec runs in a transaction. Model and spec: https://gist.github.com/anonymous/104f1f05766d352bebea. I really hope someone here can point me in the right direction.
[13:25:44] GoGoGarrett: has joined #RubyOnRails
[13:25:59] shinnya: has joined #RubyOnRails
[13:26:11] eduardodeoh: has joined #RubyOnRails
[13:26:13] tris: has joined #RubyOnRails
[13:26:19] mr_rich101: has joined #RubyOnRails
[13:26:22] seansith: has joined #RubyOnRails
[13:27:04] hardtail: jesterfraud on a low end machine is vagrant better for performance than vbox?
[13:27:23] jesterfraud: Hardtail, it uses vbox, so no
[13:27:29] waltz: has joined #RubyOnRails
[13:27:44] sung: has joined #RubyOnRails
[13:27:44] sung: has joined #RubyOnRails
[13:27:51] epochwolf|vps: has joined #RubyOnRails
[13:27:51] epochwolf|vps: has joined #RubyOnRails
[13:28:17] saneki: has joined #RubyOnRails
[13:28:18] dlitz_: has joined #RubyOnRails
[13:28:43] workmad3: has joined #RubyOnRails
[13:28:46] differentreality: has joined #RubyOnRails
[13:28:58] Synthead: has joined #RubyOnRails
[13:30:22] moneylotion: has joined #RubyOnRails
[13:30:46] darrencauthon: has joined #RubyOnRails
[13:31:12] sparr: has joined #RubyOnRails
[13:32:58] hardtail: jesterfraud ok thanks. I will see how I can get linux to run fast then
[13:33:41] Aswebb__: has joined #RubyOnRails
[13:33:42] kp666_: has joined #RubyOnRails
[13:34:01] Rylee: has joined #RubyOnRails
[13:34:17] tdy: has joined #RubyOnRails
[13:34:20] defswork_: has joined #RubyOnRails
[13:34:23] jesterfraud: Hardtail, you don't need to dedicate much ram, 512mb or something like that.
[13:34:26] rcm7: has joined #RubyOnRails
[13:34:42] royvandermeij: has joined #RubyOnRails
[13:34:47] jesterfraud: vagrant basically just has a repository of images that you can just download
[13:35:06] jesterfraud: so vagrant init ubuntu/vivid64
[13:35:24] jesterfraud: it downloads it, spins it up, you have a linux vm running that you can just ssh into
[13:35:30] jesterfraud: if you have ssh installed
[13:35:46] jesterfraud: and it makes a shared folder where you spin up the vm
[13:35:58] jesterfraud: http://vagrantup.com
[13:36:09] ndrei: has joined #RubyOnRails
[13:36:13] hardtail: So I won't be working in say Ubuntu desktop to code and use Rails?
[13:36:25] jesterfraud: no, you can use your code editors etc in Windows
[13:36:28] avelldiroll: has joined #RubyOnRails
[13:36:36] jesterfraud: but run the rails server via the command line in ubuntu
[13:36:48] hardtail: Hmm ok, sounds good.
[13:37:00] hamster88: has joined #RubyOnRails
[13:37:03] fluxsource: Anyone know how to get liquid to render a partial from an engine?
[13:37:21] hardtail: http://blog.davidelner.com/dual-booting-ubuntu-14-10-on-the-surface-pro-3/ I am going to read this though to see if I can do this
[13:37:48] jesterfraud: Hardtail, the surface pro can be a bit messy to do it on - I've seen it done though.
[13:38:05] jesterfraud: but if you're happy to do everything within Linux, you're in business in that environment
[13:38:32] hardtail: ok, thanks man. I currently have ubuntu running on VM but it's sluggish. not sure what else I can do
[13:38:38] mr_foobar: has joined #RubyOnRails
[13:39:18] jesterfraud: well, Vagrant runs it without UI, so it should be snappier, but yeah, otherwise, that's a perfectly valid option
[13:39:47] mr_foobar: Um.. did you get my message? Said I was disconnected.
[13:40:08] jesterfraud: mr_foobar, last I've seen it sould each for nil:NilClass
[13:40:11] jgt: can I run DatabaseCleaner and rake db:seed once before and after my entire Cucumber suite?
[13:40:31] mr_foobar: jesterfraud, ok that was it...
[13:40:48] jesterfraud: mr_foobar, so, that has_many, is there something on the other side?
[13:40:51] jesterfraud: another model?
[13:40:54] yoongkang: has joined #RubyOnRails
[13:41:00] jesterfraud: what's one of the lines that causes an issue?
[13:41:39] mr_foobar: jesterfraud, if I add any of the has_many lines and run the spec in a transaction, I get the error. There are models on the other side, but they don't seem to matter.
[13:42:03] mr_foobar: I do the same thing with other models, and they work. It's just this one.
[13:42:19] mr_foobar: Maybe one of rail's weird pluralization errors again?
[13:42:27] jesterfraud: it's possible
[13:42:41] blackmesa: has joined #RubyOnRails
[13:42:46] jesterfraud: what's the has_many line?
[13:43:23] mr_foobar: It's in the gist, lines 9-11.
[13:44:07] jesterfraud: does it work if you take out the 'has_many through'?
[13:44:33] mr_foobar: jesterfraud, nope, any has_many at all causes the error
[13:45:09] mr_foobar: what I don't get is that it doesn't occur when i only create one client. when I create 2, or create one and call Client.destroy_all, I get that error.
[13:45:13] gregf_: has joined #RubyOnRails
[13:45:34] jesterfraud: (your set_id code can have a race condition, btw)
[13:45:54] jesterfraud: (meaning two rows try to save with the same ID)
[13:46:21] jesterfraud: mm, I'm going to have to leave that for someone else, sorry, I can't see what the issue would be. (I'm no expert)
[13:46:27] jesterfraud: sorry mr_foobar
[13:46:50] mr_foobar: jesterfraud, ok, thanks for trying though
[13:47:05] jesterfraud: but also, you should be able to do
[13:47:06] jesterfraud: self.class.maximum('id') + 1
[13:47:07] dkam: has joined #RubyOnRails
[13:47:11] jesterfraud: to get a new ID
[13:47:20] jesterfraud: but unless you lock the table, you can have that race condition I mentioned
[13:47:51] jesterfraud: sorry, (self.class.maximum('id') || 0) + 1
[13:48:01] jesterfraud: otherwise, you'd get a nil related error if you had no rows
[13:48:26] mr_foobar: OK, thanks. I'll try to lock it then.
[13:49:50] blackmesa: has joined #RubyOnRails
[13:50:54] Aswebb_: has joined #RubyOnRails
[13:52:27] mr_foobar: You don't happen to have an idea how abstract out the set_id stuff with a module or something to keep it DRY? Right now I have copied it into every one of my view-based models, because I don't know how to have an included module set the before_validation and self.primary_key.
[13:53:48] jgt1: has joined #RubyOnRails
[13:55:55] jesterfraud: mr_foobar, here's something: http://stackoverflow.com/questions/14541823/how-to-use-concerns-in-rails-4
[13:56:03] Guest2697: has left #RubyOnRails: ()
[13:56:07] bar0n: has joined #RubyOnRails
[13:56:58] mary5030: has joined #RubyOnRails
[13:57:00] mr_foobar: jesterfraud, this looks great, thanks!
[13:59:08] asheinfeld: has joined #RubyOnRails
[14:01:14] maz-dev: has joined #RubyOnRails
[14:03:49] skj3gg: has joined #RubyOnRails
[14:05:17] asheinfeld: has joined #RubyOnRails
[14:07:18] edwinvdgraaf: has joined #RubyOnRails
[14:08:54] sinkensabe: has joined #RubyOnRails
[14:11:27] l0oky: has joined #RubyOnRails
[14:13:24] edwinvdg_: has joined #RubyOnRails
[14:16:57] qejk: has joined #RubyOnRails
[14:19:10] digitalknk: has joined #RubyOnRails
[14:19:31] hamster88: hello l0oky
[14:19:51] GoGoGarrett: has joined #RubyOnRails
[14:21:41] mikajo: has joined #RubyOnRails
[14:21:50] jgt: has joined #RubyOnRails
[14:22:24] jgt: I want to exclude all tables listed in seeds.rb when using DatabaseCleaner.clean_with :truncation, { exclude: seeds }
[14:22:38] jgt: is there a way to programmatically list all tables in seeds.rb?
[14:22:45] jgt: rather than write them all out by hand???
[14:28:10] JoshGlzBrk: has joined #RubyOnRails
[14:31:29] darrencauthon: has joined #RubyOnRails
[14:35:38] vasilakisfil_: has joined #RubyOnRails
[14:37:55] vasilakisfil_: has joined #RubyOnRails
[14:39:08] cmmagid: has joined #RubyOnRails
[14:41:19] maz-dev_: has joined #RubyOnRails
[14:43:03] fryguy: jgt: you should consider using fixtures instead of seeds for tests
[14:43:21] jgt: fryguy: why
[14:43:35] fryguy: because the rails testing framework will take control of keeping them correctly populated for you
[14:44:28] Rubie: has joined #RubyOnRails
[14:44:51] Aswebb_: has joined #RubyOnRails
[14:50:25] sinkensabe: has joined #RubyOnRails
[14:50:31] qejk: has joined #RubyOnRails
[14:51:32] waseem_: Over the period of time I've found tests/specs that consume fixture to be more stable than the ones that utilize factorygirl/fabricator.
[14:55:16] vasilakisfil_: has joined #RubyOnRails
[14:55:23] jgt1: has joined #RubyOnRails
[14:56:39] b0nn1e: has joined #RubyOnRails
[14:57:49] givanse: has joined #RubyOnRails
[14:57:55] mt_: has joined #RubyOnRails
[14:59:02] Dzejmskrokan: has joined #RubyOnRails
[14:59:24] jenrzzz: has joined #RubyOnRails
[15:05:34] Rubie: has joined #RubyOnRails
[15:08:02] Pazician: has joined #RubyOnRails
[15:09:20] s2013: has joined #RubyOnRails
[15:11:50] mary5030: has joined #RubyOnRails
[15:13:22] zorak8: has joined #RubyOnRails
[15:13:54] GoGoGarrett: has joined #RubyOnRails
[15:15:40] s2013: has joined #RubyOnRails
[15:16:25] bronson: has joined #RubyOnRails
[15:17:16] workmad3: has joined #RubyOnRails
[15:17:16] digitalknk: has joined #RubyOnRails
[15:17:57] baweaver: has joined #RubyOnRails
[15:21:46] Aswebb_: has joined #RubyOnRails
[15:25:49] ejnahc: has joined #RubyOnRails
[15:26:34] crevax_: has joined #RubyOnRails
[15:29:41] quazimod1: has joined #RubyOnRails
[15:32:18] darrencauthon: has joined #RubyOnRails
[15:35:28] blackmesa: has joined #RubyOnRails
[15:36:54] Pazician: has joined #RubyOnRails
[15:38:18] Rubie: has joined #RubyOnRails
[15:38:33] arBmind: has joined #RubyOnRails
[15:39:02] rahul_j: has joined #RubyOnRails
[15:45:42] cha1tanya: has joined #RubyOnRails
[15:49:33] sinkensabe: has joined #RubyOnRails
[15:50:27] Dzejmskrokan: has joined #RubyOnRails
[15:50:45] Tashi: has joined #RubyOnRails
[15:52:45] maz-dev: has joined #RubyOnRails
[16:04:07] Casty: has joined #RubyOnRails
[16:05:55] eddie_v9: has joined #RubyOnRails
[16:08:01] GoGoGarrett: has joined #RubyOnRails
[16:09:30] b0nn1e: has joined #RubyOnRails
[16:13:15] JoshGlzBrk: has joined #RubyOnRails
[16:13:24] IrishGringo: has joined #RubyOnRails
[16:15:38] blackmesa: has joined #RubyOnRails
[16:21:38] mdw: has joined #RubyOnRails
[16:23:12] Rubie: has joined #RubyOnRails
[16:24:40] Scripore: has joined #RubyOnRails
[16:25:16] tempname571: has joined #RubyOnRails
[16:25:48] Silent_Knight: has joined #RubyOnRails
[16:26:08] Cache_Money: has joined #RubyOnRails
[16:33:03] darrencauthon: has joined #RubyOnRails
[16:37:07] gerep: has joined #RubyOnRails
[16:41:02] poincare101: has joined #RubyOnRails
[16:42:29] t_mmyv: has joined #RubyOnRails
[16:43:57] teufelChiCoder: has joined #RubyOnRails
[16:44:55] arup_r: has joined #RubyOnRails
[16:45:56] starfox_sf: has joined #RubyOnRails
[16:46:13] hamster88: is there a good tutorial for user and profiles? anyone?
[16:47:37] teufelChiCoder: has joined #RubyOnRails
[16:48:09] arup_r: I wrote my custom validator. But when I am trying to access the booking model from the Rails console.. getting error https://gist.github.com/aruprakshit/64d9efd0876617b236d8
[16:48:16] arup_r: What wrong am I doing ?
[16:48:20] meoblast001: has joined #RubyOnRails
[16:48:39] dmz: has joined #RubyOnRails
[16:48:44] dmz: has joined #RubyOnRails
[16:50:28] annlewis: has joined #RubyOnRails
[16:52:56] dseitz: has joined #RubyOnRails
[16:53:06] fryguy: arup_r: is app/validators in your load path
[16:53:09] gerep: has left #RubyOnRails: ("Leaving")
[16:53:13] gerep: has joined #RubyOnRails
[16:53:35] arup_r: in Rails 4.2 do we need to load it ?
[16:54:16] arup_r: http://stackoverflow.com/a/6610270/2767755
[16:54:16] fryguy: you can either load it explicitly or add app/validaors to your autoload path. I don't think rails handles things in app/validators by default
[16:54:56] fryguy: just type BookingDateValidator from a console and see if the class exists
[16:54:58] arBmind1: has joined #RubyOnRails
[16:55:24] arup_r: well how to load explicitly ?
[16:56:03] Pazician: has joined #RubyOnRails
[16:56:18] bruno-: has joined #RubyOnRails
[16:56:29] arup_r: No it doesn't
[16:56:32] Pazician: has joined #RubyOnRails
[16:56:43] arup_r: but answer says that Rails loads automatically
[16:57:06] arup_r: But it is working when I am trying access the url ... no error
[16:57:19] arup_r: only the error is coming from the rails console
[16:57:25] sandstrom: has joined #RubyOnRails
[16:59:44] toretore: has joined #RubyOnRails
[17:00:53] sandstrom: has joined #RubyOnRails
[17:02:08] luckyruby: has joined #RubyOnRails
[17:02:09] GoGoGarrett: has joined #RubyOnRails
[17:03:29] teufelChiCoder: has joined #RubyOnRails
[17:04:34] jacor: has joined #RubyOnRails
[17:05:44] Cache_Money: has joined #RubyOnRails
[17:06:04] workmad3: has joined #RubyOnRails
[17:07:23] Doddlin: has joined #RubyOnRails
[17:07:29] Doddlin: has left #RubyOnRails: ()
[17:09:03] sinkensabe: has joined #RubyOnRails
[17:09:27] s2013: has joined #RubyOnRails
[17:12:58] balr0g: has joined #RubyOnRails
[17:14:14] Cache_Money: Why do I receive "Ignoring json-1.8.0 ..." and other notifications when I run `rails new ...` and `rails s`? https://gist.github.com/anonymous/fcab189f626ea4604a74
[17:14:37] nertzy: has joined #RubyOnRails
[17:20:02] _blizzy_: has joined #RubyOnRails
[17:20:38] _blizzy_: can anyone help me figure out why Paperclip is uploading the photo to S3, but is returning the wrong URL? https://gist.github.com/NotBlizzard/11232671c8763360c595
[17:20:43] _blizzy_: the url is returning as missing.
[17:21:05] _blizzy_: or, "missing.png"
[17:24:02] Dzejmskrokan: has joined #RubyOnRails
[17:27:06] ellisTAA: has joined #RubyOnRails
[17:27:14] ellisTAA: does anyone know why line 57 is returning an object whose class is nil? https://gist.github.com/ellismarte/98b8fb4823d6ef3de4ca#file-error-rb-L57 i have the same line of code on line 91 but it isn???t working on 57
[17:27:56] Spami: has joined #RubyOnRails
[17:28:28] doodlehaus: has joined #RubyOnRails
[17:28:59] ellisTAA: for some reason the session doesn???t exist ...
[17:30:21] cornerma1: has joined #RubyOnRails
[17:30:57] Anakat: has joined #RubyOnRails
[17:31:07] baweaver: has joined #RubyOnRails
[17:31:17] kohgpat: has joined #RubyOnRails
[17:33:48] darrencauthon: has joined #RubyOnRails
[17:34:46] mdw: has joined #RubyOnRails
[17:36:07] aloneintheworld: has joined #RubyOnRails
[17:39:48] riotjones: has joined #RubyOnRails
[17:41:17] markalanevans: has joined #RubyOnRails
[17:41:19] tvw: has joined #RubyOnRails
[17:48:17] blackmesa: has joined #RubyOnRails
[17:48:25] hamster88: what should be the tag to get user name no matter if user is logged in or not. when i use current_user.name it works fine but i want that to be displayed to all visitor irrespective of if the author (current user) is signd in or not
[17:49:45] blackmes1: has joined #RubyOnRails
[17:52:43] hamster88: EllisTAA, use params may be and give it a try
[17:52:51] fryguy: well, if you aren't signed in, then you don't have a current user, and you don't have a name to show
[17:53:27] ellisTAA: it seems that whenever i search for something my session gets deleted
[17:54:41] cjlarose: has joined #RubyOnRails
[17:55:54] michael_mbp: has joined #RubyOnRails
[17:56:19] GoGoGarrett: has joined #RubyOnRails
[18:00:22] ellisTAA: for some reason when i go to this route the session gets reset ??? https://gist.github.com/ellismarte/98b8fb4823d6ef3de4ca#file-error-rb-L54-L59
[18:01:35] hardtail: has joined #RubyOnRails
[18:05:35] Casty: has joined #RubyOnRails
[18:05:39] shinnya: has joined #RubyOnRails
[18:06:19] fedexo: has joined #RubyOnRails
[18:06:28] djellemah: has joined #RubyOnRails
[18:06:32] greengriminal: has joined #RubyOnRails
[18:07:52] pushpak: has joined #RubyOnRails
[18:08:44] Rubie: has joined #RubyOnRails
[18:08:56] Pazician: has joined #RubyOnRails
[18:08:57] Pazician: has joined #RubyOnRails
[18:09:26] mikecmpbll: has joined #RubyOnRails
[18:10:10] sinkensabe: has joined #RubyOnRails
[18:13:25] workmad3: has joined #RubyOnRails
[18:13:57] b0nn1e: has joined #RubyOnRails
[18:16:38] rickmasta: has joined #RubyOnRails
[18:23:43] mt_: has joined #RubyOnRails
[18:25:49] crevax_: has joined #RubyOnRails
[18:34:33] darrencauthon: has joined #RubyOnRails
[18:34:46] Cache_Money: has joined #RubyOnRails
[18:37:28] ellisTAA: i asked earlier but i???ve still got the same problem, does anyone know why my session gets deleted when i got to this route https://gist.github.com/ellismarte/98b8fb4823d6ef3de4ca#file-error-rb-L54-L59
[18:41:49] pontiki: has joined #RubyOnRails
[18:43:16] Spami: has joined #RubyOnRails
[18:44:59] ni291187: has joined #RubyOnRails
[18:46:25] mary5030: has joined #RubyOnRails
[18:46:32] kahuna_: has joined #RubyOnRails
[18:47:03] solars: has joined #RubyOnRails
[18:47:05] Spami: has joined #RubyOnRails
[18:47:53] nahtnam: has joined #RubyOnRails
[18:48:18] rickmasta: has joined #RubyOnRails
[18:48:40] _blizzy_: can anyone help me figure out why Paperclip is uploading the photo to S3, but is returning the wrong URL? https://gist.github.com/NotBlizzard/11232671c8763360c595
[18:48:50] Cache_Money: has joined #RubyOnRails
[18:48:56] _blizzy_: the url is returning as "missing.png"
[18:50:25] GoGoGarrett: has joined #RubyOnRails
[18:50:41] cac: has joined #RubyOnRails
[18:50:51] sandstrom: has joined #RubyOnRails
[18:52:16] djbkd: has joined #RubyOnRails
[18:55:13] b0nn1e: has joined #RubyOnRails
[18:55:52] kalusn: has joined #RubyOnRails
[19:00:09] Dzejmskrokan: has joined #RubyOnRails
[19:02:28] ruv: has joined #RubyOnRails
[19:05:07] sinkensabe: has joined #RubyOnRails
[19:05:24] vasilakisfil_: has joined #RubyOnRails
[19:05:30] djellemah: has joined #RubyOnRails
[19:07:28] Cache_Money: has joined #RubyOnRails
[19:08:36] Cache_Money: has joined #RubyOnRails
[19:11:37] cac: has joined #RubyOnRails
[19:15:54] yfeldblum: has joined #RubyOnRails
[19:16:38] scottrepreneur: has joined #RubyOnRails
[19:20:53] creakybones: has joined #RubyOnRails
[19:20:53] creakybones: has joined #RubyOnRails
[19:22:21] scottrepreneur: has left #RubyOnRails: ()
[19:23:56] nahtnam: Why do people call the token column in the users table "auth_token" instead of just "token"? Isnt it assumed that "token" refers to the user?
[19:24:29] pontiki: token is a *very* generic word
[19:24:39] pontiki: best to give something to identify it better
[19:27:15] SteenJobs: has joined #RubyOnRails
[19:31:26] JoshGlzB_: has joined #RubyOnRails
[19:32:37] cornerma1: has joined #RubyOnRails
[19:35:20] darrencauthon: has joined #RubyOnRails
[19:35:27] maz-dev: has joined #RubyOnRails
[19:39:30] Scripore: has joined #RubyOnRails
[19:41:58] SteenJobs: has joined #RubyOnRails
[19:44:22] SteenJobs: Is it possible for a user to sign in through omniauth and then create a local account after?
[19:44:31] GoGoGarrett: has joined #RubyOnRails
[19:44:44] Cache_Money: has joined #RubyOnRails
[19:44:57] fryguy: SteenJobs: sure
[19:45:08] SteenJobs: fryguy: sick. good to know :)
[19:45:26] SteenJobs: fryguy: how would one go about implementing that? the obvious first conflict is the email address already exists in the db
[19:45:38] fryguy: user has_many :accounts
[19:46:17] SteenJobs: fryguy: interesting, and accounts would merely have one column, a user_id?
[19:46:30] fryguy: and whatever is needed to identify the account
[19:46:42] fryguy: what omniauth source it's from, etc.
[19:46:50] SteenJobs: fryguy: well the identification would be through the users table, i???m using devise
[19:46:52] SteenJobs: fryguy: also how would i prevent someone from creating an unlimited amount of accounts with the same email?
[19:47:08] Dzejmskrokan: has joined #RubyOnRails
[19:47:12] pulgalipe: has joined #RubyOnRails
[19:47:18] fryguy: by using validations
[19:47:18] smathy: has joined #RubyOnRails
[19:47:23] fryguy: as for devise, change how it works
[19:47:32] fryguy: or use different tools
[19:47:34] nahtnam: pontiki: Oh ok.
[19:47:56] SteenJobs: fryguy: already set up with devise so i???d rather just hack it - and it prevents me from worrying that my security is subpar
[19:48:19] fryguy: you should still worry about that
[19:48:29] fryguy: there's a whole variety of other things that you can do incorrectly
[19:48:45] User458764: has joined #RubyOnRails
[19:48:50] sandstrom: has joined #RubyOnRails
[19:48:56] SteenJobs: fryguy: any good resouces to read over?
[19:49:08] pulgalipe: has joined #RubyOnRails
[19:49:11] fryguy: for what?
[19:49:36] SteenJobs: the whole variety of other things i can do incorrectly, secuirty related
[19:50:11] fryguy: don't really know of a great resource to recommend
[19:50:13] xomp: has joined #RubyOnRails
[19:50:25] baweaver: has joined #RubyOnRails
[19:50:39] SteenJobs: ok no worries
[19:51:00] pulgalipe: has joined #RubyOnRails
[19:51:01] xomp: Hello \o
[19:51:11] pontiki: if you're going to give users multiple accounts, then you want to make the Account model your Devise model
[19:51:52] cac: has joined #RubyOnRails
[19:52:12] SteenJobs: pontiki: ah yea that makes a lot more sense
[19:52:46] SteenJobs: pontiki: you think that???s the best way to allow users to both use omniauth and regular signup?
[19:53:50] SteenJobs: also - having major ajax issues: 1) with will_paginate, ajax only fires with every other page link (js -> html -> js, etc.) and 2) my JS within the ajax loaded area breaks after the ajax fires
[19:54:48] bronson: has joined #RubyOnRails
[19:55:49] xomp: So, today starts my first day learning RoR and I'm following an out dated tutorial on Youtube and have ran into an issue that I managed to identify as a difference in versions. The guy in the video is using an older RoR version and I'm using Rails 4.2.1. Here is my posts_controller.rb code http://pastebin.com/8Rs279wB Could someone help me fix the error that I get when I try and create a new post? That error being "ActiveModel::ForbiddenAttributesError
[19:55:49] xomp: ". Thanks!
[19:56:50] pontiki: SteenJobs: not in the specific case you're asking about. a User can have both OAuth creds and password creds using devise. they just need to set the password at some point.
[19:57:07] pontiki: i don't think you can go the other way, tho
[19:57:10] mostlybadfly: has joined #RubyOnRails
[19:57:19] SteenJobs: pontiki: ah ok - so basically once they sign in with omniauth, force them to create a password?
[19:57:37] pontiki: that seems to defeat the purpose somewhat
[19:57:37] xomp: I did some research myself and noticed a lot of talk about 'strong params' but it's not very clear as to how/what/when/why I am to use it. I'm utterly lost, so to speak.
[19:58:36] rickmasta: has joined #RubyOnRails
[19:58:37] xomp: updated pastie.org link http://pastie.org/10251922
[19:58:44] pontiki: xomp: i suggest you start with a simple tutorial that is known to work !getting_started
[19:59:14] differentreality: has joined #RubyOnRails
[19:59:26] pontiki: http://guides.rubyonrails.org/getting_started.html
[19:59:29] SteenJobs: pontiki: right - so is it an ok use case for a user to not be able to create an account once they???ve logged in with FB?
[19:59:39] bin_005: has joined #RubyOnRails
[19:59:45] xomp: I've delved a bit in php and other languages, so following along and understanding up to this point has been good. Just not very privy on troubleshooting these version "gotchas!" that RoR has :/
[19:59:50] pontiki: you'll have to ask your users, SteenJobs
[20:00:08] pontiki: no, i mean that in all seriousness
[20:00:18] ts310: has joined #RubyOnRails
[20:00:31] SteenJobs: word. what do most sites do?
[20:00:44] pontiki: SteenJobs: such policies are dependent on the users, the purpose of the site, and so on
[20:01:01] pontiki: i have no idea what most people do
[20:01:37] SteenJobs: although more important now ae my ajax issues
[20:01:41] xomp: pontiki, thanks, this is actually almost identical to the Youtube video I was watching, lol. I'll give it a try.
[20:02:00] pontiki: xomp: at least it's up to date :)
[20:03:39] Scripore: has joined #RubyOnRails
[20:04:42] blackmes1: has joined #RubyOnRails
[20:04:43] theery: has joined #RubyOnRails
[20:06:38] tsvenson: has joined #RubyOnRails
[20:06:45] xomp: pontiki, Wow! I was able to follow along and fix my error now :) Thanks very much for the help!
[20:06:56] pontiki: no worries
[20:07:56] nahtnam: Hey! Is there a shorter command for rake db:drop db:create db:migrate?
[20:08:15] vasilakisfil_: has joined #RubyOnRails
[20:08:31] nahtnam: pontiki: Thanks
[20:08:57] Papierkorb: has joined #RubyOnRails
[20:09:13] SteenJobs: nahtnam: db:migrate:reset no?
[20:09:58] nahtnam: SteenJobs: Eh? http://i.imgur.com/x8lGzYr.png
[20:10:20] SteenJobs: you can combine them all in one shot with db:migrate:reset
[20:11:14] GnuYawk: has joined #RubyOnRails
[20:11:23] seank__: has joined #RubyOnRails
[20:13:00] centrx: has joined #RubyOnRails
[20:13:05] maz-dev: has joined #RubyOnRails
[20:13:34] nahtnam: SteenJobs: Oh ok. Thanks
[20:13:36] nahtnam: Ill try it out
[20:13:47] artto: has joined #RubyOnRails
[20:13:48] nahtnam: Yep it works
[20:15:28] gerep: has joined #RubyOnRails
[20:18:35] crdpink2: has joined #RubyOnRails
[20:21:32] luzidco: has joined #RubyOnRails
[20:26:38] SteenJobs: has joined #RubyOnRails
[20:27:21] dici: has joined #RubyOnRails
[20:28:28] eddie_v9: has joined #RubyOnRails
[20:29:02] Dzejmskrokan: has joined #RubyOnRails
[20:31:57] smathy: has joined #RubyOnRails
[20:36:05] darrencauthon: has joined #RubyOnRails
[20:36:43] ellisTAA: anyone know why my User is nil?? Running that line of code from other routes works https://github.com/ellismarte/new_neesh/blob/users-can-save-links/app/controllers/index.rb#L55
[20:36:59] thatkid: has joined #RubyOnRails
[20:38:26] weaksauce: EllisTAA why are you posting sinatra questions in a RoR chat?
[20:38:35] GoGoGarrett: has joined #RubyOnRails
[20:38:47] ellisTAA: bc the sinatra channel has no one in it and ror is similar
[20:39:03] centrx: technically that line of code is ActiveRecord, but it is confusing
[20:39:19] centrx: check what's in session[:user_id] for one thing, and check what's in the database
[20:39:38] weaksauce: centrx it's active record but the session handling code (which is nil apparently) is sinatra
[20:39:52] centrx: ah good point yeah
[20:39:59] ellisTAA: how can i check what???s in session[:user_id], putsing it?
[20:41:14] ellisTAA: it is empty
[20:42:17] ellisTAA: but when i puts session[:user_id] from any other page it returns my id
[20:42:43] weaksauce: have you actually verified that or are you assuming that's the case?
[20:43:44] weaksauce: where? specifically what line on your gist
[20:44:28] ellisTAA: what line on my gist did i verify? its not in there
[20:45:09] ellisTAA: i putsed puts session[:user_id] in every route and got back my id except from the get ???/results???
[20:48:44] _blizzy_: has joined #RubyOnRails
[20:49:17] weaksauce: EllisTAA where did the lines that you put puts statements go? obviously I know that they aren't there right now... I am asking specifically which lines you have put a puts statement on before to try and debug this issue. telling me "every route" does not answer my question
[20:49:53] ellisTAA: i put the puts @ the end of every route, i think my problem is with my ???/??? route
[20:51:49] luzidco: has joined #RubyOnRails
[20:52:12] weaksauce: you don't need if session[:user_id] because find_by returns nil by default if there isn't a record
[20:52:23] duhhhsty: has joined #RubyOnRails
[20:54:52] iamjarvo: has joined #RubyOnRails
[20:55:08] zorak8: has joined #RubyOnRails
[20:55:28] volk_: has joined #RubyOnRails
[20:55:47] volk_: any of you guys use S3 for storing js/css and just using that to serve your SPA ?
[20:56:12] Limix: has joined #RubyOnRails
[20:56:58] charliesome: has joined #RubyOnRails
[20:57:50] _blizzy_: no, however, I need help with Paperclip.
[20:58:17] xomp: is getting ActiveAdmin working in Ruby4 supposed to be overly complicated? heh
[20:59:16] weaksauce: xomp i'd advise against active admin
[21:00:25] _blizzy_: xomp, have you heard of Devise?
[21:01:10] xomp: _blizzy_, outside of it getting mentioned in the error message I get when I try to "rails generate active_admin:install". No, I'm in my Day 1 of learning RoR lol
[21:01:28] _blizzy_: xomp, oh ok.
[21:01:35] xomp: The error I get is "`rescue in install_devise': To use devise you need to specify it in your Gemfile. If you don't want to use devise, run the generator with --skip-users. (ActiveAdmin::GeneratorError)"
[21:01:42] _blizzy_: most people recommend devise for authentication in rails.
[21:01:57] _blizzy_: IDK about ActiveAdmin
[21:02:23] xomp: Ah, okay. The guide I was following uses ActiveAdmin, but if devise is preferred, I can try and wing it heh
[21:02:46] fryguy: activeadmin and devise aren't even really the same type of thing
[21:03:03] weaksauce: devise is a component that activeadmin uses
[21:03:15] renews: has joined #RubyOnRails
[21:03:32] weaksauce: in any event you need to use bundler and prefix the command with bundle exec
[21:04:32] xomp: oh gotcha I think. I was able to put activeadmin & devise in my Gemfile and did the bundle update and got it working now :)
[21:04:49] ellisTAA: ok so when i go to localhost:9393/results from the root (localhost:9393/) i don???t get nil for the user class, but if i click search from root i get redirected to home, then when i click search again it says user class is nil ???. user is getting set to nil soemwhere ???
[21:04:55] xomp: that is to say, I'm no longer getting the wall-o-text error I was getting previously lol
[21:05:26] renews: has joined #RubyOnRails
[21:05:30] Cache_Money: has joined #RubyOnRails
[21:06:13] smathy: has joined #RubyOnRails
[21:07:42] seank__: has joined #RubyOnRails
[21:07:54] weaksauce: xomp prefix every command with bundle exec
[21:08:29] seank__: has joined #RubyOnRails
[21:08:30] xomp: weaksauce, so bundle exec install instead of bundle install?
[21:09:24] weaksauce: no... every bundler command is fine to be run just as bundle <command> every ruby command past that should be prefixed with bundle exec
[21:09:44] weaksauce: so bundle exec rails g devise:install
[21:09:56] weaksauce: but bundle install is fine
[21:10:00] xomp: oh okay, thanks! I'll do that.
[21:11:19] ellisTAA: does anyone know why this was restting my route? https://gist.github.com/ellismarte/c43f621ca24658dc2815
[21:12:59] Etriaph: has joined #RubyOnRails
[21:13:18] jacor: has joined #RubyOnRails
[21:13:43] vasilakisfil__: has joined #RubyOnRails
[21:18:19] yoongkang: has joined #RubyOnRails
[21:26:03] subtwo: has joined #RubyOnRails
[21:31:48] Pupeno: has joined #RubyOnRails
[21:31:56] jfarmer: has joined #RubyOnRails
[21:32:22] Palsson: has joined #RubyOnRails
[21:32:44] GoGoGarrett: has joined #RubyOnRails
[21:36:47] CheckYourSix: has joined #RubyOnRails
[21:36:47] darrencauthon: has joined #RubyOnRails
[21:39:34] npx: has joined #RubyOnRails
[21:40:58] npx: Hey guys, I want to incorporate a CMS into my app... has anyone used CaseIn? I'm using Rails 4.2, I really like AlchemyCMS but it's a bit too convoluted for my liking
[21:44:08] bronson: has joined #RubyOnRails
[21:44:32] ellisTAA: can anyone spot any errors in this? https://gist.github.com/ellismarte/bf8a5420b5a92efc8f6c
[21:46:13] GoGoGarrett: has joined #RubyOnRails
[21:47:46] graft_: has joined #RubyOnRails
[21:47:58] graft_: hey folks, what's a good strategy for inputting date/time?
[21:49:08] workmad3: has joined #RubyOnRails
[21:49:46] nickenchuggets: has joined #RubyOnRails
[21:51:37] jfarmer: EllisTAA Yes.
[21:51:49] ellisTAA: jfarmer: what???s that
[21:51:54] jfarmer: Wait, no, never mind.
[21:52:07] JoshL: has joined #RubyOnRails
[21:52:34] ellisTAA: forgot the .find_by
[21:52:50] jfarmer: EllisTAA Any reason you're not using form_for?
[21:53:00] ellisTAA: what???s form_for?
[21:53:00] jfarmer: There are a lot of issues w/ the code, notwithstanding the fact that it "works."
[21:53:46] ProLoser: has joined #RubyOnRails
[21:54:00] DLSteve: has joined #RubyOnRails
[21:54:05] jfarmer: EllisTAA You're using Rails, right?
[21:54:11] jfarmer: https://www.google.com/search?q=rails+forms
[21:54:11] jfarmer: http://guides.rubyonrails.org/form_helpers.html
[21:54:23] ellisTAA: oh no i???m on sinatra, no one is in the sinatra room so i thought id ask here
[21:54:31] Dzejmskrokan: has joined #RubyOnRails
[21:55:02] jfarmer: I guess I should've realized given your routing code; I just glossed over that.
[21:55:27] jfarmer: EllisTAA <form method="delete"> doesn't work ??? browsers don't support it
[21:55:29] EXCHGR: has joined #RubyOnRails
[21:56:22] jfarmer: Use Rack::MethodOverride (which is included by default in Sinatra, IIRC)
[21:57:08] cappsio_: has joined #RubyOnRails
[21:57:16] pontiki: has joined #RubyOnRails
[21:58:32] wethu: has joined #RubyOnRails
[21:58:46] jfarmer: http://stackoverflow.com/questions/5166484/sending-a-delete-request-from-sinatra
[21:58:46] jfarmer: It's not a Sinatra thing. Historically browsers have only supported GET and POST as values for the <form> tag's method attributes. That fact is now part of the HTML standard itself (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method), i.e., the HTML spec says that the only valid values for <form method="..."> are GET and POST.
[21:59:37] jfarmer: Historically, web developers got around this by using POST for everything that wasn't GET. Nowadays, most folks include a hidden form field that includes the "real" HTTP method, and have their web application transparently rewrite the incoming HTTP request before it hands it off to their routing code.
[21:59:54] jfarmer: That's what Rack::MethodOverride facilities. You do like <input type="hidden" name="_method" value="DELETE">
[22:00:30] jfarmer: And Rack::MethodOverride will change the HTTP request method from POST to DELETE before Sinatra sees it, allowing Sinatra to match against delete("...") do ... end routes.
[22:01:14] ellisTAA: how do i pass some value in a form that doesn???t require input from the user?
[22:01:21] ellisTAA: i was using hidden but now i think it doesn???t wokr
[22:03:19] theery: has joined #RubyOnRails
[22:04:03] Pupeno_: has joined #RubyOnRails
[22:04:31] jfarmer: EllisTAA hidden works fine; what are you trying to pass?
[22:04:54] ellisTAA: trying to pass an id attached to a bookmark
[22:06:52] jfarmer: Are you using ActiveRecord?
[22:09:48] Liothen: has joined #RubyOnRails
[22:12:35] jfarmer: EllisTAA Something like this would be the "textbook" implementation: https://gist.github.com/jfarmer/e916db0259d00ea81ac1
[22:13:31] ellisTAA: yeah when i run that it return sinatra does not konw this diddy
[22:14:07] ellisTAA: looks good though
[22:14:12] Pupeno: has joined #RubyOnRails
[22:14:12] Pupeno: has joined #RubyOnRails
[22:14:20] jfarmer: Maybe Rack::MethodOverride isn't enabled by default.
[22:14:38] ellisTAA: can u explain why name=???_method??? in your form?
[22:14:44] jfarmer: http://www.sinatrarb.com/configuration.html#methodoverride---enabledisable-the-post-method-hack
[22:14:51] jfarmer: I explained it above.
[22:15:01] jfarmer: Starting with "It's not a Sinatra thing..."
[22:15:13] jfarmer: And ending with "And Rack::MethodOverride will change..."
[22:15:45] creature: has joined #RubyOnRails
[22:16:22] SteenJobs: has joined #RubyOnRails
[22:16:32] ellisTAA: awesome it worked....
[22:16:48] ellisTAA: so was my name value the problem?
[22:17:21] ts310: has joined #RubyOnRails
[22:18:02] baweaver: has joined #RubyOnRails
[22:18:05] kanzure: has joined #RubyOnRails
[22:18:33] GoGoGarrett: has joined #RubyOnRails
[22:18:50] jfarmer: There were many things wrong with your code, beginning with the overall structure and ending with the specific implementation of the form.
[22:20:27] larissa: has joined #RubyOnRails
[22:20:43] JoshGlzBrk: has joined #RubyOnRails
[22:21:44] rmoriz: has joined #RubyOnRails
[22:21:53] ciree: has joined #RubyOnRails
[22:21:54] Avon: has joined #RubyOnRails
[22:22:19] sparr: has joined #RubyOnRails
[22:24:26] joe2: has joined #RubyOnRails
[22:27:29] Papierkorb: My ApplicationController should execute code once on start up. Where should I put that code?
[22:27:57] jhass: Papierkorb: config/initializers/foo.rb, in other words not into your ApplicationController
[22:28:31] volk_: anybody here any decent with the rails cache? i just have a quick gist / question i wanna run by someone in a private chat
[22:28:32] twilling: has joined #RubyOnRails
[22:28:52] Papierkorb: jhass: k, thanks
[22:30:45] jarray52: has joined #RubyOnRails
[22:31:06] Papierkorb: jhass: So I understand correctly that an instance of a controller class is created per request?
[22:31:32] djbkd: has joined #RubyOnRails
[22:31:37] jhass: uh, I never looked into the internals at that point, but I guess so
[22:32:28] papercod1: has joined #RubyOnRails
[22:32:33] theery: has joined #RubyOnRails
[22:32:38] lupine: you get an instance per request, aye
[22:34:16] Radar_: has left #RubyOnRails: ()
[22:34:29] Radar: has joined #RubyOnRails
[22:34:35] Radar: GOOD MORNING
[22:34:44] Radar: +1 instance per request
[22:35:16] Casty: has joined #RubyOnRails
[22:36:06] volk_: hey guys, would love someone to hit me back with some tips for this question ??? http://stackoverflow.com/questions/30969998/using-a-sinatra-app-to-bust-cache-on-a-rails-app
[22:36:32] pulgalipe: has joined #RubyOnRails
[22:37:32] darrencauthon: has joined #RubyOnRails
[22:39:11] Etriaph: volk_: You want an external process to be able to modify the cache data for a Rails app?
[22:39:34] iamse7en: has joined #RubyOnRails
[22:39:38] Ropeney: has joined #RubyOnRails
[22:39:40] Radar: volk_: Why not make it a Sidekiq job? Why does it need to be a sinatra app?
[22:40:11] volk_: can sidekiq be used for infinitely running jobs? i havent used it for that before Radar
[22:40:24] volk_: Etriaph: yeah, i just want a completely separate service to bust the cache of a rails app
[22:40:27] Radar: volk_: Oh so this is a stream of some type?
[22:40:35] volk_: Radar: yep, its a queue
[22:40:42] Radar: I don't know then, sorry :(
[22:41:13] Radar: There's probably a way that you can configure a web service to make a request to your Rails app based on the action.
[22:41:32] Radar: And if there isn't already something else like that out there... then your Sinatra app should hit a route on your Rails app which busts the cache.
[22:42:18] x-light: has joined #RubyOnRails
[22:42:37] volk_: hm, do you think thats a code smell though? i dont know if my rails app should have an endpoint just to do that sort of thing? i was htinking since you can set a rails cache to point to a redis server that i can just do something with that...
[22:42:40] volk_: but im not sure if thats even worse
[22:42:54] Radar: Easier to have an action in the Rails app imo
[22:43:55] yoongkang: has joined #RubyOnRails
[22:44:04] Etriaph: Or create a cache for what changes that can be shared.
[22:44:37] volk_: Etriaph: sorry what do you mean/
[22:45:17] h4sh3dN4m3: has joined #RubyOnRails
[22:45:37] Etriaph: volk_: It's much more work than adding an action, as Radar suggests, but you can always create your own cache.
[22:46:34] baweaver: has joined #RubyOnRails
[22:46:56] volk_: Etriaph: yeah i was thinking that myself. the rails cache is essentially a thin redis/memcahced/whatever else layer anyway right?
[22:47:04] volk_: so i can just probably use a shared redis instance
[22:47:09] volk_: amongst the two
[22:47:23] Etriaph: volk_: I don't think I would distill it quite down to that, but you can create your own method of doing it.
[22:47:31] Radar: You'll have to know the key on the Sinatra side of things to bust the cache.
[22:47:39] Etriaph: ACTION nods.
[22:47:40] Radar: It's easier having a Rails action to bust the cache for Rails.
[22:47:45] Radar: Sinatra hits the rails action, cache gets busts.
[22:48:41] ts310: has joined #RubyOnRails
[22:48:52] arBmind: has joined #RubyOnRails
[22:49:35] volk_: right right. i just thought of something else Radar / Etriaph , i can just use the same server, not deal with sinatra, and on a new deploy, just add a config to start a job within the rails app and not deal with anything external. there are probably gems out there that serve to do long running background processes
[22:49:59] Etriaph: volk_: Radar suggested that.
[22:50:09] Etriaph: volk_: re: siekiq
[22:50:14] sophiedeziel: has joined #RubyOnRails
[22:50:23] volk_: well yeah, but he wasnt sure if sidekiq is meant for that
[22:50:27] volk_: neither am i thought
[22:50:30] Radar: Sidekiq is good for one-off little jobs
[22:50:32] Radar: not a long running job
[22:50:41] volk_: seems that way
[22:50:51] Radar: still, you could queue a job up to check the queue and get it to queue itself once it finishes checking
[22:51:00] iamjarvo: has joined #RubyOnRails
[22:51:04] theery: has joined #RubyOnRails
[22:51:32] Sigma00: Radar: yo I heard you like to queue your queue so I got you a queue where you can queue to queue on a queue
[22:51:50] Limix: has joined #RubyOnRails
[22:52:27] volk_: well Radar , i cant really do that unforunately because the gem im usign to do the polling just opens up a long running thread essentially (at least thats hwo i think it works) and just polls indefinitely
[22:52:35] volk_: so i wouldnt be abel to stop and restart a job
[22:52:43] volk_: but anyway
[22:52:47] volk_: i think i kind know what i wanna do
[22:52:51] volk_: i???ll just try a bunch of things
[22:52:56] volk_: thanks for your help :)
[22:54:19] charliesome: has joined #RubyOnRails
[22:55:53] Blizzy: has joined #RubyOnRails
[22:56:28] robbyoconnor: has joined #RubyOnRails
[22:59:30] Dzejmskrokan: has joined #RubyOnRails
[23:03:11] GoGoGarrett: has joined #RubyOnRails
[23:08:06] zorak8: has joined #RubyOnRails
[23:09:48] ellisTAA: has joined #RubyOnRails
[23:10:07] Guest82: has joined #RubyOnRails
[23:10:58] Cache_Money: has joined #RubyOnRails
[23:11:25] iamjarvo: has joined #RubyOnRails
[23:11:53] Guest82: has left #RubyOnRails: ()
[23:15:09] strcmp1: has joined #RubyOnRails
[23:17:57] Guest82: has joined #RubyOnRails
[23:18:00] startupality: has joined #RubyOnRails
[23:18:50] dogic: has joined #RubyOnRails
[23:19:21] arooni-mobile: has joined #RubyOnRails
[23:19:31] qejk: has joined #RubyOnRails
[23:19:42] dogic: in my routes.rb i have: namespace :admin do get 'dashboard' => 'dashboard#index' end
[23:20:00] dogic: now how do i do redirect_to :controller => 'what to put here' ?
[23:20:45] ur5us: has joined #RubyOnRails
[23:25:45] Dzejmskrokan: has joined #RubyOnRails
[23:26:41] armyriad: has joined #RubyOnRails
[23:26:44] twilling: has joined #RubyOnRails
[23:28:08] jfarmer: has joined #RubyOnRails
[23:32:04] annlewis: has joined #RubyOnRails
[23:32:51] thmsmtylr: has joined #RubyOnRails
[23:34:40] Pupeno: has joined #RubyOnRails
[23:35:45] startupality: has joined #RubyOnRails
[23:35:56] artto: has joined #RubyOnRails
[23:36:19] fryguy: dogic: '/admin/dashboard'
[23:38:03] workmad3: has joined #RubyOnRails
[23:38:18] darrencauthon: has joined #RubyOnRails
[23:39:17] quazimodo: has joined #RubyOnRails
[23:40:39] Pupeno: has joined #RubyOnRails
[23:41:19] Dzejmskrokan: has joined #RubyOnRails
[23:41:52] ltd: has joined #RubyOnRails
[23:42:51] jhass: dogic: run rake routes
[23:44:41] Limix: has joined #RubyOnRails
[23:46:53] gerep: has joined #RubyOnRails
[23:47:24] blackmesa: has joined #RubyOnRails
[23:47:50] nahtnam: Is this a valid route? `delete 'session' => 'sessions#destroy'
[23:48:07] jhass: does it work?
[23:48:38] nahtnam: I havent tried it
[23:48:48] nahtnam: I was just wondering if you can use `delete` like that'
[23:50:23] helpa: Why don't you try it and find out for yourself?
[23:51:35] Radar: what jhass said
[23:56:05] Cache_Money: has joined #RubyOnRails
[23:56:06] wardy: has joined #RubyOnRails
[23:58:41] Cache_Money: has left #RubyOnRails: ()
[23:59:44] volk_: has joined #RubyOnRails