« Back to channel list

#RubyOnRails - 05 August 2015

« Back 1 day Forward 1 day »
[00:00:41] ktchup: has joined #RubyOnRails
[00:01:56] hashrocket: has joined #RubyOnRails
[00:02:04] shyshy: has joined #RubyOnRails
[00:02:10] gaboesquivel: has joined #RubyOnRails
[00:02:53] nfk: has joined #RubyOnRails
[00:03:19] Lightsword: has joined #RubyOnRails
[00:07:57] Pupeno: has joined #RubyOnRails
[00:08:04] hashrocket: has joined #RubyOnRails
[00:09:13] htmldrum: has joined #RubyOnRails
[00:13:11] Lightsword: has joined #RubyOnRails
[00:13:16] viiralvx: has joined #RubyOnRails
[00:14:52] Aeyrix: has joined #RubyOnRails
[00:14:57] bruno-: has joined #RubyOnRails
[00:15:13] tweeeaks: has joined #RubyOnRails
[00:16:54] nfk: has joined #RubyOnRails
[00:16:55] rjno: has joined #RubyOnRails
[00:17:11] ivanskie: has joined #RubyOnRails
[00:18:00] idd2d: has joined #RubyOnRails
[00:21:45] ruby_: has joined #RubyOnRails
[00:22:30] dopie: has joined #RubyOnRails
[00:23:33] ktchup: has joined #RubyOnRails
[00:25:09] Jruby: has joined #RubyOnRails
[00:30:41] gambl0re: any good sites to learn rails similar to laracasts?
[00:30:44] j_mcnally: has joined #RubyOnRails
[00:30:53] ner0x: railscasts
[00:31:20] j_mcnally: has joined #RubyOnRails
[00:32:43] Radar: gambl0re: It's not a site, but Rails 4 in Action is pretty great :"d
[00:32:45] smathy: It's very similar.
[00:32:49] Radar: Source: I wrote it.
[00:32:58] scpike: has left #RubyOnRails: ()
[00:33:58] gambl0re: did laracasts copy railscasts?
[00:34:02] Pupeno: has joined #RubyOnRails
[00:34:04] hashrocket: has joined #RubyOnRails
[00:34:25] Radar: Probably not.
[00:34:34] Radar: Screencasts is not a Railscast-patented idea.
[00:34:53] gambl0re: i know but the name is very similar
[00:35:05] Radar: Maybe it's a really good naming pattern?
[00:35:28] leesharma: has joined #RubyOnRails
[00:35:40] gambl0re: the Rails 4 Action do you recommend it?
[00:35:46] gambl0re: does it teach fundamentals of rails
[00:35:57] gambl0re: i already did the michael hartl rails tutorial
[00:36:09] michael_mbp: has joined #RubyOnRails
[00:36:15] gambl0re: and i found it good but i also thought there was some confusing sections
[00:37:02] fryguy: gambl0re: you've been in here a little long to still be concerning yourself with fundamentals, no?
[00:37:19] gambl0re: im in the channel mostly not really active
[00:37:27] bradleyprice: has joined #RubyOnRails
[00:37:44] Radar: gambl0re: Yes it teaches the fundamentals of Rails in a better way than the Hartl tutorial
[00:38:09] gambl0re: i actually dont know much about the rails besides the basics...like the model view controller structure
[00:38:31] LambdaSource: has joined #RubyOnRails
[00:38:49] gambl0re: isnt rails on v5?
[00:39:23] Radar: Latest version of Rails is 4.2.
[00:39:39] Radar: Rails 4 in Action will take you from the very beginnings of a Rails app to deploying it to Heroku.
[00:39:45] Radar: It's ~600 pages
[00:40:26] gambl0re: and you say its better than michael hartl's?
[00:40:39] gambl0re: i hope it's not another blog tutorial
[00:41:30] gambl0re: i wasnt thinking of learning laravel but i think long term rails is a better option
[00:42:02] gambl0re: im not sure about the learning curve of each framework but i think it would be the same for both...
[00:42:32] gambl0re: + rails community is bigger with better support...
[00:42:34] sevenseacat: has joined #RubyOnRails
[00:43:23] Radar: Yes I say it's better than Michael Hartl and so do many other people
[00:43:44] Radar: It's not a blog tutorial :) It builds a project tracking system, where projects have tickets and then tickets can be commented on by users.
[00:44:03] Radar: Asking which is better out of Laravel or Rails in this channel will give you biased answers.
[00:44:16] gambl0re: yes i know...
[00:44:45] gambl0re: but i did research on google and the majority would choose rails over laravel or any php framework
[00:46:22] dopie: has joined #RubyOnRails
[00:49:33] sevenseacat: ACTION 's spidey R4IA sense twitches
[00:51:01] sevenseacat: I got sent the index for review today. \o/
[00:52:25] ktchup: has joined #RubyOnRails
[00:52:46] baweaver: has joined #RubyOnRails
[00:53:47] x-light: sevenseacat: Yay!
[00:54:05] sevenseacat: progress is being made. at a glacial pace.
[00:54:05] jhack: has joined #RubyOnRails
[00:54:05] jhack: has joined #RubyOnRails
[00:55:33] x-light: sevenseacat: hmmm yes :) at least we know who not to go to for your next book :)
[00:56:56] x-light: sevenseacat: if its any consolation, I use the skills I learned in R4IA pretty much every day.
[00:57:04] sevenseacat: I am glad to hear it!
[00:57:15] ivanskie: has joined #RubyOnRails
[00:58:08] blankammo: has joined #RubyOnRails
[00:59:35] ur5us: has joined #RubyOnRails
[00:59:47] alexhartley: has joined #RubyOnRails
[01:00:40] lethjakman: has joined #RubyOnRails
[01:01:16] Lightsword: has joined #RubyOnRails
[01:03:54] hashrocket: has joined #RubyOnRails
[01:07:07] jheathco: has joined #RubyOnRails
[01:07:25] jheathco: how can i edit a gem locally in a rails app without having to bundle delete and bundle reinstall to refresh any changes?
[01:08:43] null__: I'm pushing my app to a production passenger/apache environment and I receive the following error whenever I do a request dealing with CSRF http://pastebin.com/DGjzR6uT
[01:08:53] earthquake: has joined #RubyOnRails
[01:09:20] null__: the tokens are included in the form
[01:10:59] allcentury: has joined #RubyOnRails
[01:11:45] Radar: null__: Pastebin is blocked on my machine. I could help you if the code was not on pastebin.
[01:12:03] Radar: jheathco: Like this: http://ryanbigg.com/2013/08/bundler-local-paths/
[01:12:10] null__: sure, here it is http://pastie.org/10330393
[01:12:47] superlou: has joined #RubyOnRails
[01:13:12] fryguy: Radar: if only it worked with actual gems in addition to github paths
[01:13:31] Radar: fryguy: If only.
[01:13:40] chrispaz: has joined #RubyOnRails
[01:14:08] Radar: null__: Weird. It looks legit there. Can we see your sessions/new template?
[01:14:10] sevenseacat: Radar: oh that bundler local paths is awesome. wish I'd known about that when building spree extensions.
[01:14:13] gaboesquivel: has joined #RubyOnRails
[01:14:16] Radar: sevenseacat: :D
[01:14:22] Radar: Spree extensions is what I used it for
[01:14:46] sevenseacat: jheathco: if you `bundle open <your gem>`, it will open the installed version of the gem. You can then edit it, and then restart your server to pick up the changes.
[01:15:12] sevenseacat: I recommend doing that *very sparingly* though.
[01:16:53] eoy_: has joined #RubyOnRails
[01:16:57] jheathco: nul__ thanks will try
[01:17:07] null__: here is my sessions template and controller http://pastie.org/10330399
[01:17:15] blankammo: has joined #RubyOnRails
[01:17:17] jheathco: sevenseacat simply a rails restart will do for this?
[01:17:43] null__: the auth token inside the form is different from the csrf-token inside the header.. but I think that is supposed to be the case?
[01:17:45] strcmp2: has joined #RubyOnRails
[01:17:52] sevenseacat: quitting rails s and starting it again, yes.
[01:18:13] Radar: null__: Can you reproduce in a new app?
[01:19:18] null__: I could try to but it would take me a while to set that up
[01:19:40] eoy: has joined #RubyOnRails
[01:20:09] null__: it worked with before moving to passenger for production
[01:20:11] j3r0: has joined #RubyOnRails
[01:20:13] null__: with foreman*
[01:20:45] hellowor_: has joined #RubyOnRails
[01:21:13] eoy__: has joined #RubyOnRails
[01:21:32] ktchup: has joined #RubyOnRails
[01:22:04] cpruitt: has joined #RubyOnRails
[01:23:53] eoy_: has joined #RubyOnRails
[01:24:04] null__: I just added "skip_before_filter :verify_authenticity_token, :only => :create" to my sessions controller and that worked but I don't think I fully understand the security impliciations
[01:24:55] yfeldblum: has joined #RubyOnRails
[01:25:01] MrButh: has joined #RubyOnRails
[01:25:08] null__: nevermind .. the error still pops up on other form actions
[01:25:10] gambl0re: if im doing a rails tutorial book that was published in 2013, is the material too old to learn from?
[01:25:44] jheathco: thanks nul__ that worked wiell
[01:27:13] one_zero: has joined #RubyOnRails
[01:27:30] renews: has joined #RubyOnRails
[01:27:45] j_mcnally: has joined #RubyOnRails
[01:28:23] eoy: has joined #RubyOnRails
[01:28:49] rakm: has joined #RubyOnRails
[01:28:57] Ropeney: gambl0re: What version of rails does it use?
[01:30:35] hellowor_: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[01:31:33] gambl0re: one book is using rails 4
[01:31:36] gambl0re: not sure the version number
[01:32:01] gambl0re: they're both using rails 4
[01:32:11] sevenseacat: what books are they? that will be a better help./
[01:32:24] sevenseacat: we know rails books :P
[01:32:33] viiralvx: has joined #RubyOnRails
[01:32:35] n1lo: has joined #RubyOnRails
[01:32:37] gambl0re: agile web development with rails 4 2013
[01:32:53] gambl0re: rails 4 in action 2014 version 11
[01:32:53] sevenseacat: yeah wouldnt recommend that one.
[01:33:02] sevenseacat: would recommend an up to date version of R4IA though :P
[01:33:13] sevenseacat: why version 11? the latest meap was version 22
[01:33:26] gambl0re: i couldnt find a free pdf version
[01:33:36] gambl0re: what other books would you recommend to learn rails
[01:33:40] Ropeney: so pay for it?
[01:33:50] gambl0re: im broke as hell...
[01:33:57] gambl0re: starving developer...
[01:33:58] kies^: has joined #RubyOnRails
[01:34:07] Ropeney: makes starving authors
[01:34:27] gambl0re: im sure the author is not starving....
[01:34:27] sevenseacat: I dont encourage people to pirate the work I've spent eight months writing, no.
[01:34:42] gambl0re: but if you're broke, you're broke
[01:34:49] gambl0re: and im serious..
[01:34:57] chipotle: has joined #RubyOnRails
[01:35:07] gambl0re: if it means i have to learn using v11 then i have no choice
[01:35:07] eoy_: has joined #RubyOnRails
[01:35:08] Ropeney: If your starving broke, learning rails shouldn't be a high priority
[01:35:27] gambl0re: its not high priority but its on my list
[01:35:57] sevenseacat: gambl0re: you realize two of the authors of rails 4 in action are here, right?
[01:36:16] gambl0re: ok i dont mean to sound like an ass...
[01:36:32] gambl0re: i just want to learn rails....
[01:36:38] beauby: ACTION watches and eats popcorn
[01:36:42] sevenseacat: actually the version you're using is so old, I wasn't listed as an author then
[01:36:43] gambl0re: are there any other books you recommend learning from?
[01:36:50] null__: I think my session cookie issue is because my production server has a non-root path (eg its root lives at domain.com/app)
[01:36:58] gambl0re: are you the author of the book?
[01:37:00] Ropeney: gambl0re: http://guides.rubyonrails.org/getting_started.html
[01:37:00] null__: still not sure
[01:37:19] sevenseacat: gambl0re: I am, and so is Radar.
[01:37:25] helpa: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[01:37:44] gambl0re: no wonder radar recommended that book to me...haha
[01:37:54] gambl0re: despite the mixed reviews
[01:38:28] sevenseacat: mixed reviews?
[01:38:53] sevenseacat: how can a book that isn't yet released, have mixed reviews?
[01:39:02] gambl0re: im sure its a good book but i dont have 40-50 dollars to spend right now
[01:39:16] gambl0re: previous versions i would guess...
[01:39:41] Ropeney: then use the online rails guide, its deliberately released free
[01:39:43] seank_: has joined #RubyOnRails
[01:39:47] baweaver: sevenseacat: /me silently withdraws 1 star reviews
[01:40:37] gambl0re: thanks to whoever provided that rails guide website
[01:40:57] one_zero: has joined #RubyOnRails
[01:41:28] blankammo: has joined #RubyOnRails
[01:42:32] sevenseacat: I've worked damn hard on that book. it's not perfect, no book ever is, but it's definitely not 1-start worthy.
[01:43:00] baweaver: I've seen a few out before, but they're mainly released by Packet
[01:43:15] baweaver: Apress is dang close as well.
[01:43:28] sevenseacat: to perfect or to 1 star? >_>
[01:43:45] gambl0re: so far the only resources i have is michael hartl tutorial, railscasts, railsguide
[01:43:55] gambl0re: i like tutorials where they walk you through a project
[01:44:04] Aeyrix: I didn't rate it. :^)
[01:44:05] baweaver: You say only like that hasn't launched a thousand applications already.
[01:44:10] sevenseacat: gambl0re: michael hartl's tutorial will get you going, if you wont spend any money.
[01:44:36] sevenseacat: it will teach you the basics, and a lot of other weird stuff.
[01:45:48] gambl0re: i already went through it already...
[01:45:50] Synthbread: has joined #RubyOnRails
[01:46:08] ivanskie: has joined #RubyOnRails
[01:46:21] sevenseacat: then you should have enough rails down to start building something of your own
[01:46:23] gambl0re: i mean from before...
[01:46:34] Ropeney: If you've finished them theres plenty of work you could get into :D
[01:46:34] sevenseacat: and if you have specific questions, you can always ask here.
[01:46:59] Aeyrix: ???? ????
[01:47:05] gambl0re: so the v11 of your book is no good?
[01:47:16] gambl0re: even though its still using rails 4
[01:47:19] baweaver: ACTION grabs popcorn
[01:47:46] Aeyrix: Share pls.
[01:48:05] baweaver: ACTION passes some over
[01:48:48] gambl0re: http://www.devwalks.com/lets-build-instagram-in-rails-part-1/
[01:48:52] baweaver: probably not the wisest of moves to pirate, but even worse is to announce that you intend to
[01:49:19] gambl0re: i thought this was a free pdf
[01:49:28] baweaver: that one may be
[01:49:34] gambl0re: i mean there are tons of free online pdf's everywhere online..
[01:49:52] baweaver: ACTION stares blankly
[01:49:58] Ropeney: just like plenty of "free" movies
[01:50:02] gambl0re: and its an older version i dont even think they sell it anymore
[01:50:12] sevenseacat: because its incomplete
[01:50:28] gambl0re: you can watch plenty of old movies online for free....
[01:50:39] Aeyrix: gambl0re: You don't seem like you want to invest in this.
[01:50:41] ktchup: has joined #RubyOnRails
[01:50:42] Aeyrix: Therefore the book really isn't for you.
[01:50:43] Aeyrix: Pirated or not.
[01:50:49] sevenseacat: usually we're pretty good at giving people access to the book. but in this case, no.
[01:50:50] gambl0re: invest in what
[01:50:55] Aeyrix: Your skillset.
[01:50:59] Aeyrix: Improving your ability with Rails.
[01:51:05] Aeyrix: I bought the book on the spot, FWIW.
[01:51:06] gambl0re: did you miss the part where i said i was dead broke...
[01:51:20] Aeyrix: Have you done any work with Rails before?
[01:51:25] Aeyrix: Hobbyist work etc.
[01:51:32] gambl0re: no just tutorials...
[01:51:44] Aeyrix: So you have no public stuff to show that you're interested in learning it?
[01:52:00] gambl0re: i did the michael hartl tutorial...thats it
[01:52:08] Aeyrix: Is your attempt on Github?
[01:52:16] gambl0re: yes its heroku
[01:52:22] Ropeney: If you did that tutorial, you can get a job :D
[01:52:36] gambl0re: heh?...are you serious?
[01:53:02] tenderlove: has joined #RubyOnRails
[01:53:17] gambl0re: i was able to follow along for the most part. the authentication/authorization and testing messed me up a bit though..
[01:53:34] sevenseacat: thats the sort of stuff you really need to know, thats the basics
[01:53:50] gambl0re: arent there gems like devise that handle all that for you>
[01:54:06] sevenseacat: yes, but you still need to understand it
[01:54:24] sevenseacat: know how to tweak and customize it, etc.
[01:55:05] baweaver: know the despair of trying to coax it into working with LDAP
[01:55:45] baweaver: gambl0re: How many Rails jobs have you applied for?
[01:55:50] baweaver: and where are you located?
[01:56:16] gambl0re: i havent applied to any rails jobs
[01:56:40] gambl0re: i've been focusing more on front end mostly...html/css, javascript,jquery, javascript mvc etc...
[01:56:45] hazelux: has joined #RubyOnRails
[01:56:58] baweaver: you're not going to get un-broke until you get a job
[01:56:58] tenderlove: has joined #RubyOnRails
[01:57:06] gambl0re: i need to build more rails stuff...
[01:57:14] baweaver: apply for a job
[01:57:16] sevenseacat: then start building!
[01:57:17] baweaver: then worry about that part.
[01:57:27] baweaver: The worst they do is say no
[01:57:47] baweaver: Reading tutorials all day is a horrible waste of time for newbies
[01:58:04] baweaver: You get caught up in everything out there without actually _doing_ anything
[01:58:07] sevenseacat: building things based on information learnt in tutorials is the way to go
[01:58:25] hazelux: +1 ^ You learn by getting your hands dirty
[01:58:27] nettoweb: has joined #RubyOnRails
[01:58:33] baweaver: Just saying that reading every tutorial out there instead of working on it is wasting a whole lot of time
[01:58:35] gambl0re: i need to rely on tutorials to learn...
[01:58:40] alex88: has joined #RubyOnRails
[01:58:43] baweaver: there's your problem
[01:58:45] sevenseacat: after all, tutorials are deliberately written to be nice and happy and easy
[01:58:46] baweaver: you need to be doing
[01:58:55] gambl0re: once i have firm grasp on rails then i can try to attempt building something on my own
[01:59:03] baweaver: You never will
[01:59:04] sevenseacat: we've already addressed all the common issues and problems and the like
[01:59:17] sevenseacat: and we provide fixes for them all
[01:59:18] baweaver: How many people in this channel would say they're within a firm grasp of rails?
[01:59:51] baweaver: Probably the same number that would claim fluency with Ruby
[01:59:56] gambl0re: probably most of you guys are good enough in rails to build something on your own..
[01:59:58] sevenseacat: rails surprises me every day.
[02:00:06] baweaver: Know how we got there?
[02:00:13] gambl0re: especially if your coming out with your own books...
[02:00:15] baweaver: We built crap apps, we experimented, we did
[02:00:21] hazelux: I'll tell you my story gambl0re: I started with tutorials. Did one app (Kevin Skoglund's Essential Training on Lynda), then moved to the railstutorial.
[02:00:31] hazelux: Then, tried one on my own. Failed.
[02:00:40] nettoweb: has joined #RubyOnRails
[02:00:41] hazelux: And after the second try, nailed one app. And just went from there
[02:00:52] hazelux: 16 apps in 16 months later, I know a bit
[02:01:23] baweaver: with the exception of people like tenderlove, Ox0dea, and some others very few would call themselves fluent in Ruby and Rails
[02:01:26] baweaver: we're all learning
[02:01:49] sevenseacat: ACTION is learning how to use select2 today
[02:01:50] baweaver: On a scale of 0 to 10, I would maybe call myself a 4-5 in Rails.
[02:02:10] gambl0re: 4-5 in rails = intermediate
[02:02:18] gambl0re: 6+ = expert
[02:02:24] gambl0re: 1-3 = novice
[02:02:40] baweaver: 0 = you until you go out and build something
[02:03:10] baweaver: If you rely on a tutorial for everything you're screwing yourself in the long run.
[02:03:14] sevenseacat: I think this is rapidly turning into an unproductive conversation
[02:03:23] hazelux: just start. I never thought I would finish my first app. I just told myself "Ok, let's see how far I can take this until I fail"
[02:03:25] baweaver: indeed, I'm done as well.
[02:03:33] gambl0re: what kind of app was it
[02:04:18] hazelux: gambl0re: a betting app for the soccer World Cup. Even integrated with Paypal.
[02:04:32] sevenseacat: anyone know why select2 is being dumb and will accept tags separated by spaces or commas, but then when re-rendering the form will put them all in one tag?
[02:04:34] gambl0re: wow...thats awesome.
[02:05:11] GriffinHeart: has joined #RubyOnRails
[02:05:12] beauby_: has joined #RubyOnRails
[02:05:43] hazelux: I had 30+ instance vars on each view, being recalculated on each request, but it somehow worked.
[02:05:44] hazelux: Good times
[02:06:47] AmanYang: has joined #RubyOnRails
[02:08:06] hazelux: Anyone know why my /models/activity.rb file is not getting loaded? Trying to do as suggested here: https://github.com/chaps-io/public_activity/issues/219
[02:08:34] Creeves: has joined #RubyOnRails
[02:09:09] Radar: hazelux: !rule14
[02:09:09] helpa: hazelux: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us.
[02:09:57] hazelux: aye. Will gist it
[02:11:40] erich: has joined #RubyOnRails
[02:16:29] lethjakman: has joined #RubyOnRails
[02:18:21] Rixius: has joined #RubyOnRails
[02:19:56] ktchup: has joined #RubyOnRails
[02:20:13] bruno-: has joined #RubyOnRails
[02:21:38] renews: has joined #RubyOnRails
[02:21:59] MrButh: I know sqlite is the default db for rails, but is that the preferred/most widely used in the rails community?
[02:22:16] sevenseacat: postgres is the preferred.
[02:22:18] hazelux: Radar: can you check it out? https://gist.github.com/maxcodes/b375074fd1978d003f3d
[02:22:41] MrButh: thanks sevenseacat
[02:22:53] sevenseacat: hazelux: you have a syntax error - you're missing a comma after has_many :likes
[02:23:17] sevenseacat: also, where is that activity.rb - it's likely not being loaded
[02:24:02] hazelux: app/models
[02:24:46] sevenseacat: yeah its not being loaded
[02:25:03] hazelux: that was my original question. What can I do to make sure it's loaded?
[02:25:18] leesharma: has joined #RubyOnRails
[02:25:23] hazelux: Thanks for the comma btw. Good catch
[02:25:30] sevenseacat: the file path needs to match the class path, ie. public_activity/activity
[02:25:43] sevenseacat: and then you'll need to require the original class in your file
[02:26:07] dopie: has joined #RubyOnRails
[02:27:28] CanTonic: has joined #RubyOnRails
[02:28:08] hazelux: I see. Yeah that makes sense. If the original class is in a gem, how do I require it? `require 'public_activity/activity`?
[02:28:55] sevenseacat: something like that, give it a go
[02:29:26] Ropeney: sevenseacat: Pretty sure you dont need to require the class if your namespacing with the module name?
[02:29:43] sevenseacat: maybe. not sure. try it and see :)
[02:30:13] Ropeney: Just alot of work with spree i did was just Module spree Product.class_eval
[02:31:37] hazelux: Didn't work without requiring. Ok, but why does it work when I added it manually just before the `activity.likes` in the view?
[02:32:04] sevenseacat: when you added what manually?
[02:33:26] hazelux: I tried to debug it by doing `binding.pry` on the view. Then, just wrote directly PublicActivity::Activity.class_eval ....
[02:33:34] hazelux: And it worked
[02:33:52] hazelux: And continued to work on subsequent requests until I restarted the server
[02:34:21] sevenseacat: dont have enough context to know.
[02:35:35] hazelux: Ok. Requiring "public_activity/activity" and moving the file to app/models/public_activity/activity.rb didn't work. Any other ideas?
[02:36:56] ten27pm: has joined #RubyOnRails
[02:38:08] rickmasta: has joined #RubyOnRails
[02:38:20] mloy: after running rake migrate and creating a table, should I be able to open a psql shell and \d and get something other than "no relations found"?
[02:38:49] mloy: and input \d*
[02:38:52] sevenseacat: mloy: did you open a psql shell on the same database that your app is using?
[02:38:56] tejasmanohar: has joined #RubyOnRails
[02:39:09] Ropeney: hazelux: try poutting it in lib/public_activity/models/activity.rb
[02:39:12] tejasmanohar: is it most popular to have hyphens, underscores, or camelCase in routes?
[02:39:16] mloy: sevenseacat, I probably didn't. how do I specify which db to open?
[02:39:18] sevenseacat: tejasmanohar: underscores.
[02:39:44] tejasmanohar: sevenseacat: but hyphens are better for SEO, no?
[02:39:46] Ropeney: then you'll need in your application.rb to load lib files
[02:39:47] sevenseacat: mloy: if its a rails app, you can use rails dbconsole and it will load the correct database.
[02:39:53] tejasmanohar: (by routes, i mean route URLs / paths)
[02:39:59] sevenseacat: tejasmanohar: err, are they?
[02:40:09] mloy: sevenseacat, thank you! I was hoping for a rails-specific way to do it, I should have just asked in the first place.
[02:40:11] tejasmanohar: sevenseacat: that's all i've read :P
[02:40:22] sevenseacat: mloy: you're welcome :)
[02:42:22] hazelux: Ropeney: like this? config.autoload_paths << Rails.root.join('lib')
[02:43:26] Ropeney: hazelux: Yeah i guess, dont know if you need /* anywhere in that
[02:45:57] hazelux: Woohoo that worked. Learning of the day accomplished. Thanks Ropeney and sevenseacat
[02:46:11] sevenseacat: good stuff :)
[02:46:41] Ropeney: hazelux: If you look at the public_activity gem, it's directory structure was in lib not app just for future ref
[02:47:31] hazelux: Oh, so you have to match the structure of the gem when monkey-patching it?
[02:47:46] hazelux: Good to know.
[02:48:50] ktchup: has joined #RubyOnRails
[02:50:04] bbrowning_away: has joined #RubyOnRails
[02:50:39] drollwit: has joined #RubyOnRails
[02:50:42] Aeyrix: I think I'm gonna make a #ror discount for this platform I'm building.
[02:52:51] diegoviola: has joined #RubyOnRails
[02:54:01] Pupeno_: has joined #RubyOnRails
[02:54:16] mulder_: has joined #RubyOnRails
[02:54:21] GriffinHeart: has joined #RubyOnRails
[02:55:19] sdwrage: has joined #RubyOnRails
[02:55:44] Guest26755: has left #RubyOnRails: ()
[02:58:11] PhantomS_: has joined #RubyOnRails
[03:00:33] alexhartley: has joined #RubyOnRails
[03:02:16] jonee: has joined #RubyOnRails
[03:02:49] dopie: has joined #RubyOnRails
[03:03:50] diegoviola: I need nested replies for my comments, some people suggested https://github.com/collectiveidea/awesome_nested_set
[03:04:10] diegoviola: but I've seen there are other solutions like this one: https://github.com/mceachen/closure_tree that deals with a tree data structure instead of nested sets
[03:04:14] diegoviola: what are your thoughts?
[03:04:26] DoctorMonocular: has joined #RubyOnRails
[03:04:42] diegoviola: any suggestions?
[03:05:12] diegoviola: I mean, nested sets vs trees, I'm confused
[03:05:33] drale2k_: has joined #RubyOnRails
[03:10:06] sevenseacat: they work quite similarly
[03:10:14] CanTonic: diegoviola: I am using closure_tree and it works fine for me. I am using it for a file sharing module in order to have a directory tree
[03:10:27] seank_: has joined #RubyOnRails
[03:10:41] sevenseacat: except they appearto go in different directions - one is top down, one is bottom up
[03:11:04] ecksit: has joined #RubyOnRails
[03:12:49] speaking1ode: has joined #RubyOnRails
[03:13:03] sevenseacat: for comments, you're likely going to want to grab the entire tree efficiently, which closure_tree claims to do easily
[03:13:04] shyshy: has joined #RubyOnRails
[03:13:40] braincrash: has joined #RubyOnRails
[03:14:31] diegoviola: thanks, I'll give that a try
[03:14:47] hashrocket: has joined #RubyOnRails
[03:15:52] renews: has joined #RubyOnRails
[03:18:00] ktchup: has joined #RubyOnRails
[03:18:42] ecksit: has joined #RubyOnRails
[03:20:02] rackquestion: has joined #RubyOnRails
[03:21:47] rubyrack: has joined #RubyOnRails
[03:24:50] diegoviola: ancestry seems to be another one
[03:25:28] gavit: has joined #RubyOnRails
[03:26:40] sevenseacat: I sense some decision paralysis
[03:26:53] sevenseacat: just pick one and start with it, you'll soon find out if its a good fit or not
[03:31:34] deavid: has joined #RubyOnRails
[03:32:17] lethjakman: has joined #RubyOnRails
[03:33:20] theery: has joined #RubyOnRails
[03:35:27] beauby: has joined #RubyOnRails
[03:36:14] AntiSpamMeta: has joined #RubyOnRails
[03:38:13] ddugger: has joined #RubyOnRails
[03:39:30] j_mcnally: has joined #RubyOnRails
[03:40:26] baweaver: has joined #RubyOnRails
[03:41:17] ur5us: has joined #RubyOnRails
[03:44:25] portiad: has joined #RubyOnRails
[03:44:46] j_mcnally: has joined #RubyOnRails
[03:47:05] ktchup: has joined #RubyOnRails
[03:47:17] Trynemjoel: has joined #RubyOnRails
[03:48:42] srinidhi: has joined #RubyOnRails
[03:48:44] srinidhi: has joined #RubyOnRails
[03:49:59] lethjakman: has joined #RubyOnRails
[03:50:55] j_mcnally: has joined #RubyOnRails
[03:52:59] jgpawletko: has joined #RubyOnRails
[03:54:33] theery: has joined #RubyOnRails
[03:56:49] arup_r: has joined #RubyOnRails
[03:58:23] erich: has joined #RubyOnRails
[03:59:10] drollwit: has joined #RubyOnRails
[04:01:09] alex88: has joined #RubyOnRails
[04:01:10] Creeves: has joined #RubyOnRails
[04:02:24] chipotle: has joined #RubyOnRails
[04:04:03] fdsajiosdf: has joined #RubyOnRails
[04:04:20] fdsajiosdf: has left #RubyOnRails: ()
[04:04:25] Creeves: has joined #RubyOnRails
[04:04:41] dopie: has joined #RubyOnRails
[04:05:53] j_mcnally: has joined #RubyOnRails
[04:08:47] shyshy1: has joined #RubyOnRails
[04:09:40] brianpWins: has joined #RubyOnRails
[04:10:05] renews: has joined #RubyOnRails
[04:11:13] ascarter: has joined #RubyOnRails
[04:11:39] theery: has joined #RubyOnRails
[04:14:36] shyshy: has joined #RubyOnRails
[04:16:00] ktchup: has joined #RubyOnRails
[04:18:05] rickmasta: has joined #RubyOnRails
[04:18:50] rjno: has joined #RubyOnRails
[04:19:03] blankammo: has joined #RubyOnRails
[04:20:01] jonee: has joined #RubyOnRails
[04:20:05] xcesariox: has joined #RubyOnRails
[04:20:06] seank_: has joined #RubyOnRails
[04:23:21] aldodelgado: has joined #RubyOnRails
[04:26:04] aldodelgado: has joined #RubyOnRails
[04:26:11] bufferino: has joined #RubyOnRails
[04:30:44] aldodelgado: has joined #RubyOnRails
[04:33:48] troysk: has joined #RubyOnRails
[04:35:10] chrispaz: has joined #RubyOnRails
[04:40:41] fedexo: has joined #RubyOnRails
[04:44:51] jonee: has joined #RubyOnRails
[04:45:03] ktchup: has joined #RubyOnRails
[04:46:08] elton: has left #RubyOnRails: ()
[04:48:38] theery: has joined #RubyOnRails
[04:51:43] busterarm: has joined #RubyOnRails
[04:52:59] sp1rs: has joined #RubyOnRails
[04:53:04] drollwit: has joined #RubyOnRails
[04:57:51] Trynemjoel: has joined #RubyOnRails
[04:58:06] bustrarm: has joined #RubyOnRails
[04:58:40] GriffinHeart: has joined #RubyOnRails
[05:01:18] alexhartley: has joined #RubyOnRails
[05:03:35] TvL2386: has joined #RubyOnRails
[05:03:37] srinidhi: has joined #RubyOnRails
[05:03:42] eoy: has joined #RubyOnRails
[05:03:46] Radar: acts_as_nested_set is another one
[05:03:47] Radar: diegoviola: ^
[05:03:52] srinidhi: has joined #RubyOnRails
[05:04:03] duderonomy: has joined #RubyOnRails
[05:04:12] renews: has joined #RubyOnRails
[05:04:13] Radar: Oh... maybe I'm thinking of awesome_nested_set
[05:04:20] Radar: indeed, that's the one that parndt maintains
[05:04:59] xcesariox: has joined #RubyOnRails
[05:05:22] eoy__: has joined #RubyOnRails
[05:08:38] Lightsword: has joined #RubyOnRails
[05:09:05] eoy: has joined #RubyOnRails
[05:09:26] riotjones: has joined #RubyOnRails
[05:10:20] riotjones: has joined #RubyOnRails
[05:10:42] eoy_: has joined #RubyOnRails
[05:11:34] gambl0re: has joined #RubyOnRails
[05:12:28] niiamon: has joined #RubyOnRails
[05:13:17] DoubleMalt: has joined #RubyOnRails
[05:14:05] ktchup: has joined #RubyOnRails
[05:14:27] ur5us: has joined #RubyOnRails
[05:17:19] niiamon: has joined #RubyOnRails
[05:20:04] DoctorMonocular: has joined #RubyOnRails
[05:20:13] leesharma: has joined #RubyOnRails
[05:20:56] seank_: has joined #RubyOnRails
[05:20:59] lxsndl: has joined #RubyOnRails
[05:21:23] Trynemjoel: has joined #RubyOnRails
[05:23:02] brianpWins: has joined #RubyOnRails
[05:24:41] diegoviola: I'm pretty confused/lost as of now I have to admit
[05:26:04] tetraktys: has joined #RubyOnRails
[05:26:08] stevednd: has joined #RubyOnRails
[05:28:51] aganov: has joined #RubyOnRails
[05:29:03] diegoviola: do I just have to pass the parent_id for my replies and use that?
[05:31:23] Trynemjoel: has joined #RubyOnRails
[05:32:03] smathy: has joined #RubyOnRails
[05:33:40] sp1rs: has joined #RubyOnRails
[05:34:12] eoy: has joined #RubyOnRails
[05:35:43] eoy__: has joined #RubyOnRails
[05:36:54] Trynemjoel: has joined #RubyOnRails
[05:37:14] anti-freeze: has joined #RubyOnRails
[05:37:22] eoy_: has joined #RubyOnRails
[05:38:48] Lightsword: has joined #RubyOnRails
[05:41:53] portiad: has joined #RubyOnRails
[05:43:02] ktchup: has joined #RubyOnRails
[05:43:07] cornerma1: has joined #RubyOnRails
[05:44:34] yardenbar: has joined #RubyOnRails
[05:46:25] Trynemjoel: has joined #RubyOnRails
[05:46:31] arBmind: has joined #RubyOnRails
[05:47:13] drollwit: has joined #RubyOnRails
[05:47:26] riotjones: has joined #RubyOnRails
[05:48:13] rvanlieshout: has joined #RubyOnRails
[05:50:29] hazelux: has joined #RubyOnRails
[05:54:27] diegoviola: do I just have to pass the id of the comment as the parent_id and send the new comment as the child, is that how it's supposed to work?
[05:56:07] Radar: diegoviola: What have you tried and how is it not working?
[05:57:19] metus_violarium: has joined #RubyOnRails
[05:57:47] diegoviola: Radar: I haven't tried things yet
[05:57:54] diegoviola: Radar: I'm trying to understand how those libs work
[05:58:27] renews: has joined #RubyOnRails
[06:01:22] FooMunki: has joined #RubyOnRails
[06:03:06] Radar: diegoviola: You give the child the parent_id.
[06:04:04] sevenseacat: ACTION checks clock
[06:06:42] safeforge: has joined #RubyOnRails
[06:07:17] chrissonar: has joined #RubyOnRails
[06:07:44] jenrzzz: has joined #RubyOnRails
[06:08:22] pyemkey: has joined #RubyOnRails
[06:09:35] s2013: has joined #RubyOnRails
[06:11:07] pyemkey: Hello. I would like to know if I have select on my page which fetch data dynamically to leave validation when there is no options inside.
[06:11:17] aceRacer: has joined #RubyOnRails
[06:11:51] sevenseacat: pyemkey: was that a question?
[06:12:11] ktchup: has joined #RubyOnRails
[06:12:34] aceRacer: I have an offers table and a offer_groups table. so in offers there is an offer_group_id which can be null. is it right to add_index [:offer_id, :offer_group_id] ?
[06:13:11] sevenseacat: aceRacer: what for?
[06:13:26] sevenseacat: a basic rule of thumb is to add indexes to any field that you look up records by
[06:13:34] pyemkey: sevenseacat: That was question without details. Sorry for that. I will try to be more precise. When I change select X, then next one gets data based on previous. Sometimes I have situation when I dont get any data. I would like to skip validation If select have no options.
[06:14:28] aceRacer: ok, so there needs to be a functionality where I can click on an offers and then it will also show the other offers in the offer_group (if any) it is in
[06:14:56] sevenseacat: aceRacer: seems unrelated to an index like that.
[06:15:57] aceRacer: um, then which kind of looking up it should be. I am confused about when to use and when not to use
[06:18:37] sevenseacat: well if you want to look up other offers in the same offer groyp, you'd be doing something like Offer.where(offer_group_id: @my_offer.offer_group_id), yeah ?
[06:18:51] schaerli: has joined #RubyOnRails
[06:18:51] liefstrider: has joined #RubyOnRails
[06:18:57] sevenseacat: so you're only looking up by offer_group_id - not offer_id and offer_group_id, which was what your ndex was
[06:19:22] aceRacer: oh ok i see.
[06:21:42] seank_: has joined #RubyOnRails
[06:21:51] bruno-: has joined #RubyOnRails
[06:26:55] Axy: has joined #RubyOnRails
[06:32:19] chipotle: has joined #RubyOnRails
[06:32:29] chrissonar: has joined #RubyOnRails
[06:32:44] liefstrider: has joined #RubyOnRails
[06:34:06] TomyLobo: has joined #RubyOnRails
[06:34:34] brianpWins: has joined #RubyOnRails
[06:35:01] krz: has joined #RubyOnRails
[06:35:27] benhuda: has joined #RubyOnRails
[06:41:16] ktchup: has joined #RubyOnRails
[06:41:24] drollwit: has joined #RubyOnRails
[06:44:11] krz: at https://github.com/rails/jbuilder#faster-json-backends where does the author expect us to put require 'multi_json'
[06:44:12] krz: MultiJson.use :yajl
[06:44:42] sevenseacat: probably in an initializer of some sort.
[06:45:10] DoubleMalt: has joined #RubyOnRails
[06:45:41] finnnnnnnnnnn: has joined #RubyOnRails
[06:46:04] erich: has joined #RubyOnRails
[06:47:45] solars: has joined #RubyOnRails
[06:48:21] benhuda: has joined #RubyOnRails
[06:48:40] wethu: has joined #RubyOnRails
[06:48:45] wethu: has joined #RubyOnRails
[06:50:02] GriffinHeart: has joined #RubyOnRails
[06:50:49] Macaveli: has joined #RubyOnRails
[06:51:16] ap4y: has joined #RubyOnRails
[06:51:26] krz: :thumbsup:
[06:51:49] krz: sevenseacat: you should start a slack ror channel :)
[06:52:05] jheathco: has joined #RubyOnRails
[06:52:33] renews: has joined #RubyOnRails
[06:53:40] liefstrider: has joined #RubyOnRails
[06:56:18] sevenseacat: man I have too many communication channels open already, and you want me to add yet another slack channel to it?
[06:56:55] krz: sevenseacat: you got slack for ror?
[06:57:01] krz: send me the link, will join
[06:57:15] sevenseacat: nah, I have a bunch of other slack communities though
[06:57:16] krz: is it this: http://www.rubyonrails.link/
[06:59:30] rvanlieshout: i'll stick to this one for now..
[06:59:58] diegoviola: https://news.ycombinator.com/item?id=10005577
[07:00:19] krz: sevenseacat: no fun if your arent on the ror slack channel
[07:01:00] sevenseacat: diegoviola: this is news?
[07:01:00] Axy: has joined #RubyOnRails
[07:01:00] Axy: has joined #RubyOnRails
[07:01:31] lapide_viridi: has joined #RubyOnRails
[07:05:13] Aeyrix: Slack is eg
[07:06:29] krz: ember js has a slack community. find it much convenient to be on there than on weechat. i.e. code snippets are easier to read
[07:06:29] sevenseacat: also, http://blog.megan.geek.nz/how-git-shows-the-patriarchal-nature-of-the-software-industry/ (kinda related to the github thing)
[07:06:48] kwd: has joined #RubyOnRails
[07:07:10] krz: and who doesnt like emojo reactions :P
[07:07:57] krz: :facepunch:
[07:08:31] kp666: has joined #RubyOnRails
[07:08:53] sevenseacat: git tying everything to a name/email address is pretty stupid.
[07:09:36] Aeyrix: Obligatory reminder that Git is an open source project made to fit one person's specific needs originally.
[07:09:36] kp666: has joined #RubyOnRails
[07:09:57] atmosx: Aeyrix: so?
[07:10:26] ktchup: has joined #RubyOnRails
[07:10:41] Aeyrix: So the design decisions made were primarily about solving the problems the creators had.
[07:10:43] sevenseacat: Aeyrix: yeah I know.
[07:11:28] niiamon: has joined #RubyOnRails
[07:12:02] sevenseacat: but several things about it really bug me, like not being able to set folder-specific git configs, to keep my work and personal stuff separate
[07:12:05] atmosx: Aeyrix: considering the fact that it took about 2 weeks to write the first version, which doesn't look like the current one, I'd say that it came out pretty well.
[07:12:13] atmosx: Aeyrix: also, one has to consider the alternatives
[07:12:34] Aeyrix: What in the green hills are you talking about?
[07:12:58] tbuehlmann: what's the green hills?
[07:13:08] atmosx: sounds like a betting company
[07:13:13] Aeyrix: A cursory google would answer that question.
[07:13:52] tbuehlmann: where's the human interaction in that?
[07:13:57] tbuehlmann: well, I know, google knows
[07:14:07] artto: has joined #RubyOnRails
[07:14:54] Creeves: has joined #RubyOnRails
[07:16:15] niiamon: has joined #RubyOnRails
[07:20:09] nhhagen: has joined #RubyOnRails
[07:20:14] chipotle: has joined #RubyOnRails
[07:21:14] Aeyrix: I really need to patch znx
[07:21:30] Aeyrix: To only accept one client per user at a time.
[07:21:41] leesharma: has joined #RubyOnRails
[07:21:58] keeguon: has joined #RubyOnRails
[07:22:33] seank_: has joined #RubyOnRails
[07:24:30] charliesome: has joined #RubyOnRails
[07:24:42] alexhartley: has joined #RubyOnRails
[07:25:19] darutoko: has joined #RubyOnRails
[07:25:30] rails663: has joined #RubyOnRails
[07:25:38] cajone: has left #RubyOnRails: ()
[07:25:45] Palsson: has joined #RubyOnRails
[07:27:03] ap4y: has joined #RubyOnRails
[07:29:08] rails663: In this article http://weblog.jamisbuck.org/2007/2/5/nesting-resources author suggests we shouldn't deep nest resources. My question is, what about :new action. If you have URL 'comments/new' how would you get parent post id? Is there a way or is deep nesting in this case acceptable?
[07:29:47] alex88: has joined #RubyOnRails
[07:30:06] alphaatom: has joined #RubyOnRails
[07:30:08] rvanlieshout: rails663: nesting != deep nesting
[07:30:17] rvanlieshout: but there are good reasons to nest the new and create actions
[07:31:56] cajone: has joined #RubyOnRails
[07:33:03] niiamon: has joined #RubyOnRails
[07:34:03] rails663: rvanlieshout: Alright, so nesting is completely normal in these cases (and actually mandatory)?
[07:34:33] rvanlieshout: nothing is mandatory
[07:34:41] rvanlieshout: but nesting several levels isn't normally the way to go
[07:35:35] drollwit: has joined #RubyOnRails
[07:35:53] eoy: has joined #RubyOnRails
[07:36:04] sevenseacat: you might be interested in shallow routing
[07:36:26] sevenseacat: see http://guides.rubyonrails.org/routing.html#nested-resources 2.7.2 shallow nesting
[07:37:07] AntiSpamMeta: has joined #RubyOnRails
[07:38:03] niiamon_: has joined #RubyOnRails
[07:39:35] ktchup: has joined #RubyOnRails
[07:39:46] rails663: Oh I see, it's actually shorter syntax for what I'm about to do.
[07:39:52] rails663: Thank you very much, guys!
[07:41:17] sevenseacat: ACTION sticks piece of paper to forehead "not a guy"
[07:42:04] Murat_: has joined #RubyOnRails
[07:46:44] renews: has joined #RubyOnRails
[07:47:34] krz: rails663: nest if you feel like the child resource needs to be isolated
[07:48:45] AntiSpamMeta: has joined #RubyOnRails
[07:50:03] erich: has joined #RubyOnRails
[07:50:20] DoubleMalt: has joined #RubyOnRails
[07:50:34] niiamon: has joined #RubyOnRails
[07:51:05] sosol: has joined #RubyOnRails
[07:51:49] Murat_: has joined #RubyOnRails
[07:55:23] AntiSpamMeta: has joined #RubyOnRails
[07:56:35] slani: hello how can I render a template into view with his own method?
[07:56:45] arup_r: has joined #RubyOnRails
[07:57:18] nhhagen: has joined #RubyOnRails
[07:57:29] x-light: has joined #RubyOnRails
[07:57:52] ishahnaz: has joined #RubyOnRails
[07:58:22] arup_r: I am trying to fetch articles by doing 3 queries, can I do it in one query ? https://gist.github.com/aruprakshit/f279ec81bc85104c95a3
[07:58:55] AntiSpamMeta: has joined #RubyOnRails
[07:59:05] sevenseacat: arup_r: if you could explain what those three queries were trying to accomplish, maybe
[07:59:48] Sylario: has joined #RubyOnRails
[08:00:10] mikecmpbll: has joined #RubyOnRails
[08:02:00] arup_r: I am taking a parent_topic id and the collecting subtopics of the parent topic id.. Now I am putting the ids in a array and fetching the Articles by matching those ids using IN query
[08:02:25] aceRacer: I have a situation.. I have Offer belongs_to :offer_group . and in my view I have to show the offer_group form inside my offer creation form. class Offer; belongs_to :offer_group; end. how do I do it ?
[08:02:26] AntiSpamMeta: has joined #RubyOnRails
[08:02:30] arup_r: I want these 3 quesries in a single query
[08:02:45] sevenseacat: so to answer my question, what you're actually trying to accomplish is getting all articles in a given category + its sub categories?
[08:04:24] arup_r: sevenseacat: yes
[08:04:41] benhuda: has joined #RubyOnRails
[08:05:25] sevenseacat: seems similar to what diegoviola was looking at earlier
[08:05:56] apeiros: ACTION thinks subtopic_id is a misnomer and should be parent_topic_id
[08:05:58] GriffinHeart: has joined #RubyOnRails
[08:06:17] apeiros: it references the parent, right? not a subtopic???
[08:06:30] sevenseacat: um.... thats a really good point
[08:07:15] czerasz: has joined #RubyOnRails
[08:07:49] sevenseacat: I'd be looking into how the existing tree gems do it, because its either going to be really messy in SQL, or its going to be more than one query, given trees arent necessarily just one level
[08:08:41] apeiros: well, arup's query is shallow
[08:08:45] apeiros: only one level of subtopics
[08:09:05] apeiros: so that'd be an additional question: recursively get all subtopics or only parent + first level of subtopic?
[08:10:06] apeiros: with pure sql you'd resolve recursive trees either by using a nested set (left/right values) or if your database supports it, connect by prior
[08:10:10] alex88: has joined #RubyOnRails
[08:10:33] slani: hello how can I render a template into view with his own method?
[08:10:45] sevenseacat: slani: 'his own method'? what does that mean?
[08:10:53] apeiros: ACTION thinks that "recursive" before "trees" was redundant :D
[08:11:11] AntiSpamMeta: has joined #RubyOnRails
[08:11:16] frzn: has joined #RubyOnRails
[08:11:16] frzn: has joined #RubyOnRails
[08:12:59] slani: sevenseacat: method inside controler
[08:13:17] marr: has joined #RubyOnRails
[08:13:21] pcpanic: has joined #RubyOnRails
[08:13:21] sevenseacat: slani: controller actions are completely independent of each other
[08:13:32] sevenseacat: you cannot render an action from inside another action
[08:13:39] apeiros: I know how to get the topic and its shallow subtopics in one sql statement - no idea how to translate it to AR, though:
[08:13:40] apeiros: SELECT id FROM topics WHERE subtopic_id IS NULL ORDER BY id ASC LIMIT 1 UNION SELECT id FROM topics WHERE subtopic_id = (SELECT id FROM topics WHERE subtopic_id IS NULL ORDER BY id ASC LIMIT 1)
[08:14:06] apeiros: and you can insert that sql into the articles query, reducing your 3 queries to 1 - but again, I have no idea how to do that with AR :D
[08:14:12] pcpanic: Hola hola! Any of you smart peoples know how to render erb contect from the DB ?
[08:14:32] sevenseacat: pcpanic: that sounds like a security hole waiting to happen
[08:14:41] apeiros: pcpanic: ERB.new(YourModel.find(it).erb_column).render ?
[08:14:42] pcpanic: sevenseacat: :(
[08:15:14] sevenseacat: I mean sure it's doable, but who's writing content for your site in ERB?
[08:15:15] slani: sevenseacat: but I can call a java script?
[08:15:20] apeiros: ah, s/render/result/
[08:15:37] sevenseacat: slani: you can load a javascript file in your view, yes.
[08:15:44] apeiros: (and of course, sevenseacat's hint wrt security is spot on)
[08:15:56] pcpanic: sevenseacat: So how would you suggest I embed photos and links without giong back to the old <a> and <img> ?
[08:16:28] slani: why I can't load onther controlers
[08:16:35] sevenseacat: in user-generated content? by using HTML or something like markdown
[08:16:35] krz: has joined #RubyOnRails
[08:16:46] sevenseacat: if its your own content, just use normal views
[08:16:48] givanse: has joined #RubyOnRails
[08:17:04] arup_r: apeiros: you are right, the name of the column was wrong.. someone did it before.. by mistake
[08:17:13] sevenseacat: slani: because that's not how MVC in rails works
[08:17:25] sevenseacat: a controller action is a single request/response
[08:17:28] pcpanic: sevenseacat: gotcha - you are doing holy work :)
[08:18:05] arup_r: apeiros: it is a one level hierarchy
[08:19:18] slani: sevenseacat: but java script is it own request , why I can't do request to other controler from view. then my soulution is only a a helper method
[08:19:53] sevenseacat: slani: I don't know what problem you're trying to solve, so
[08:20:09] DoctorMonocular: has joined #RubyOnRails
[08:21:10] AntiSpamMeta: has joined #RubyOnRails
[08:21:40] slani: sevenseacat: I hard to explain because I'm new in Rails and also my english is not good
[08:23:22] seank_: has joined #RubyOnRails
[08:23:40] blackhuey: has joined #RubyOnRails
[08:24:09] shilon: has joined #RubyOnRails
[08:26:22] Mendenhall: has joined #RubyOnRails
[08:27:13] niiamon_: has joined #RubyOnRails
[08:29:03] erich: has joined #RubyOnRails
[08:29:43] drollwit: has joined #RubyOnRails
[08:33:03] fighella: has joined #RubyOnRails
[08:33:59] sheeny: has joined #RubyOnRails
[08:34:07] sheeny: Hi all, I have a rails project which connects to an external database (i dont have control over the column names/data) unfortunately the column names are all upcase, so when i try object.attribute it obviously raises method missing, where object['ATTRIBUTE'] would work. I am considering overriding method missing to handle this but before I do i was wondering if anyone had a better cleaner solution?
[08:34:45] dideler: has joined #RubyOnRails
[08:36:18] rvanlieshout: maybe there is an option you can provide with the connection to your db
[08:36:58] Ropeney: has joined #RubyOnRails
[08:40:44] hazelux: has joined #RubyOnRails
[08:40:57] renews: has joined #RubyOnRails
[08:42:26] jenrzzz: has joined #RubyOnRails
[08:43:07] ktchup: has joined #RubyOnRails
[08:43:48] niiamon_: has joined #RubyOnRails
[08:46:26] sp1rs: has joined #RubyOnRails
[08:46:44] sheeny: Ah i see there is a 'lowercase_schema_reflection' option for SQL, the only problem is I am forced to use SQLAnywhere so it could be more interesting, but i will take a look
[08:48:17] ur5us: has joined #RubyOnRails
[08:52:32] renegadeandy: has joined #RubyOnRails
[08:52:53] renegadeandy: Hi, how can I get 09:50 as a time object rather than a formatted string in ruby
[08:53:25] DylanJ: does anyone have any tips or advice for starting an application normally deployed with capistrano on boot?
[08:53:51] DylanJ: currently i dont do this. foolishly. just wondering what people do for that scenario
[08:56:45] rvanlieshout: DylanJ: it's not up to capistarno to do that
[08:56:51] rvanlieshout: it depends on what server you're using
[08:56:56] rvanlieshout: what are you using?
[08:57:26] aceRacer: why can there be no form_for inside form_for
[08:57:44] DylanJ: rvanlieshout: right sure, i could just make an init script to run RAILS_ENV=production bundle exec puma ... whatever the args are.
[08:57:46] rvanlieshout: aceRacer: there can, but the browser doesn't handle that like you want it to do so
[08:57:47] DylanJ: but ubuntu
[08:57:53] rvanlieshout: aceRacer: fields_for is added for that
[08:58:17] rvanlieshout: DylanJ: !g https://www.google.nl/search?client=safari&rls=en&q=puma+init+script+ubuntu&ie=UTF-8&oe=UTF-8&gfe_rd=cr&ei=ItDBVeiPCMHz-ga88rrwCw
[08:58:18] DylanJ: but i'm wondering if people have init scripts that run "cap production some:command:to:start:their;thing
[08:58:48] rvanlieshout: you could start your upstart or initd or systemd script from capistrano
[08:58:54] shibly: has joined #RubyOnRails
[08:59:08] shibly: has left #RubyOnRails: ()
[09:00:37] niiamon_: has joined #RubyOnRails
[09:04:23] slani: sevenseacat: wha I can't do something like this $.get('<%= "/analytics/call_list.html.erb" %>'); inside view
[09:05:25] nightsh: has joined #RubyOnRails
[09:05:49] sevenseacat: slani: because $.get is for making JS requests to URLs, not to views
[09:06:26] sevenseacat: that would just output $.get("/analytics/call_list.html.erb")
[09:06:50] Ergo: has joined #RubyOnRails
[09:06:57] rickmasta: has joined #RubyOnRails
[09:18:32] arup_r: has joined #RubyOnRails
[09:18:38] niiamon_: has joined #RubyOnRails
[09:20:07] cheeti: has joined #RubyOnRails
[09:21:50] nya: has joined #RubyOnRails
[09:23:10] leesharma: has joined #RubyOnRails
[09:23:35] cheeti: hi how to save uploaded file in mongodb table? it's storing as "0" in DB
[09:23:45] drale2k_: has joined #RubyOnRails
[09:23:53] drollwit: has joined #RubyOnRails
[09:24:09] seank_: has joined #RubyOnRails
[09:25:03] nyaa: has joined #RubyOnRails
[09:25:09] drale2k_: has joined #RubyOnRails
[09:28:10] ita-ness: has joined #RubyOnRails
[09:28:33] ita-ness: Hello everyone
[09:28:51] logik-bomb: has joined #RubyOnRails
[09:28:59] ita-ness: Could someone do me a favour and let me know if they can read what I am writing?
[09:29:09] ita-ness: Having nickserv issues today.
[09:29:17] leex: Hi, if I have a model that can belong to either model A, B or C but only to one at a time do I need to write 3 belongs_to into my model and write a custom validation or is there a belongs_to_either a, b, c, presence: true in rails
[09:29:19] sevenseacat: ita-ness: yep, can xsee you.
[09:29:26] ita-ness: sevenseacat: Thank you!
[09:29:49] ita-ness: leex: Maybe a polymorphic association?
[09:30:07] platzhirsch: has joined #RubyOnRails
[09:31:28] cheeti: hi how to save uploaded file in mongodb table? it's storing as "0" in DB
[09:32:05] leex: ita-ness: will have a look whether it fits my case, thanks
[09:32:40] ita-ness: leex: Just put a :resource_class and a :resource_id on the model. Then you can save the class it belongs to right on the model, as well as the id. Then you can only have it belong to one thing at a time, and you can write a method to grab it. If you're using active record I think they even have some sort of polymorphic: true option that might maintain your relationship queries.
[09:33:14] leex: cool, thanks :)
[09:33:19] ita-ness: But don't quote me on that, it's been years since I used active record.
[09:34:34] cheeti: hi how to save uploaded file in mongodb table? it's storing as "0" in DB
[09:35:06] renews: has joined #RubyOnRails
[09:35:25] sevenseacat: cheeti: you probably want to look into gems like carrierwave for managing file uploads - you shouldnt save them into your db directly
[09:39:20] yfeldblum: has joined #RubyOnRails
[09:39:38] cheeti: sevenseacat ok thank u
[09:39:41] yashinbasement: has joined #RubyOnRails
[09:41:45] ita-ness: has left #RubyOnRails: ()
[09:41:46] ita-ness: has joined #RubyOnRails
[09:41:54] yfeldblum: has joined #RubyOnRails
[09:42:29] erich: has joined #RubyOnRails
[09:44:20] yz: has joined #RubyOnRails
[09:46:06] MaDErroR123: has joined #RubyOnRails
[09:46:42] Pipoca: has joined #RubyOnRails
[09:46:51] AntiSpamMeta: has joined #RubyOnRails
[09:47:14] yfeldblum: has joined #RubyOnRails
[09:49:01] MksN: has joined #RubyOnRails
[09:52:17] stardiviner: has joined #RubyOnRails
[09:52:22] MksN: Hi I have a problem with accepts_nested_attributes_for. I have a model commitment and a model tasks. commitment has_many :tasks and accepts_nested_attributes_for :tasks. But when I submit a new form with for example one new task, the task will not be listed in the params. I am working on this since hours and can't find the mistake (gist: https://gist.github.com/anonymous/79ee0397dde55fa4cb6c)
[09:53:50] platosha_: has joined #RubyOnRails
[09:54:03] sevenseacat: MksN: what params are getting submitted?
[09:56:16] drale2k_: has joined #RubyOnRails
[09:57:54] MksN: just the one of the commitment model. I can't even see the nested attributes in the debug(params) if I try to submit the form which won't pass validation, there are still only params from the commitment model, although i have added tasks_attributes: [:id, :title] to the strong parameters
[09:58:57] pontiki: i think you need to build some empty tasks on @commitment in your new action?
[09:59:39] sevenseacat: so... can you actually show us? :)
[10:00:15] quazimodo: has joined #RubyOnRails
[10:01:09] sevenseacat: also, what gem are you using for these nested forms?
[10:02:23] AntiSpamMeta: has joined #RubyOnRails
[10:03:41] MksN: Passed attributes: https://gist.github.com/anonymous/5146de24fcadec0dbde2 these are the attributes with adding one task and letting the validation fail (leaving title of commitment empty). there should be something like tasks_attributes: ... right unter title
[10:04:49] MksN: i am using the gem 'nested_form_fields'
[10:04:55] MaDErroR123: has joined #RubyOnRails
[10:06:39] alexhartley: has joined #RubyOnRails
[10:07:07] shmoon_: has joined #RubyOnRails
[10:07:09] pontiki: MksN: do you actually create a task? in your form? because you don't create one in your controller
[10:07:17] shmoon_: has left #RubyOnRails: ()
[10:07:28] pontiki: hi, shawnacscott
[10:07:48] shmoon_: has joined #RubyOnRails
[10:08:03] shmoon_: can you hear me ?
[10:08:13] shmoon_: I did register but chansev keeps on saying I need to do it
[10:08:13] pontiki: shmoon_: yes
[10:08:34] shmoon_: I was going through a piece of code and found ModelName.search, is there a search method on Models ?
[10:09:03] sevenseacat: shmoon_: only if you add one.
[10:09:04] norc: has joined #RubyOnRails
[10:09:26] shmoon_: model extends ActiveRecord::Base only
[10:10:12] sevenseacat: doesnt mean you didnt add one, or add a gem that added one.
[10:10:15] MaDErroR123: has joined #RubyOnRails
[10:12:30] MksN: ok I am trying something like @commitment.tasks.build in the controller
[10:13:08] charliesome: has joined #RubyOnRails
[10:13:52] AntiSpamMeta: has joined #RubyOnRails
[10:15:06] GriffinHeart: has joined #RubyOnRails
[10:15:39] MksN: you saved me :D thanks a lot it is working now :)
[10:17:14] stamina: has joined #RubyOnRails
[10:18:02] drollwit: has joined #RubyOnRails
[10:20:25] AntiSpamMeta: has joined #RubyOnRails
[10:20:26] rickmasta: has joined #RubyOnRails
[10:20:54] DoctorMonocular: has joined #RubyOnRails
[10:22:05] sevenseacat: has joined #RubyOnRails
[10:23:23] bruno-: has joined #RubyOnRails
[10:23:29] Oog: has joined #RubyOnRails
[10:25:01] seank_: has joined #RubyOnRails
[10:25:47] tvw: has joined #RubyOnRails
[10:26:02] MksN: has joined #RubyOnRails
[10:28:18] alexhartley: has joined #RubyOnRails
[10:29:16] renews: has joined #RubyOnRails
[10:29:41] alexhart_: has joined #RubyOnRails
[10:32:07] avril14th: has joined #RubyOnRails
[10:32:31] gerep: has joined #RubyOnRails
[10:32:44] chipotle: has joined #RubyOnRails
[10:33:51] AntiSpamMeta: has joined #RubyOnRails
[10:36:39] michael_mbp: has joined #RubyOnRails
[10:37:25] gerep: Hi all! I have the Inquiry model which has_many :inquiry_items which has_many :inquiry_item_distributor_prices. I have a form where the user will fill in the prices for each inquiry_item for the inquiry. This form in show.html.slim uses an @inquiry object and I post that to the inquiries_controller#add_prices. How can I save the inquiry_item_distributor_prices_attributes from inside the inquiry? https://gist.github.com/gerep/99d7af1cf569bbafa827
[10:39:51] benhuda: has joined #RubyOnRails
[10:42:07] jonee: has joined #RubyOnRails
[10:42:35] skroon: anyone in here using google BigQuery database, i'm wondering how to develop locally with this db for production inmind
[10:45:54] AntiSpamMeta: has joined #RubyOnRails
[10:46:27] MaDErroR123: has joined #RubyOnRails
[10:50:15] sp1rs: has joined #RubyOnRails
[10:50:45] krz: has joined #RubyOnRails
[10:54:21] rikkipitt: has joined #RubyOnRails
[10:54:31] Xiti: has joined #RubyOnRails
[10:56:12] alexhartley: has joined #RubyOnRails
[10:57:08] chills42: has joined #RubyOnRails
[10:57:30] benhuda: has joined #RubyOnRails
[10:58:27] gerep: I think my doubt can be shortened to this: How can I save nested_attributes of another nested_attributes?
[11:00:03] allcentury: has joined #RubyOnRails
[11:00:32] gerep: Because Inquiry accepts_nested_attributes_for :inquiry_items which accepts_nested_attributes_for :inquiry_item_distributor_prices and I"m trying to save the IniquiryDistributorPrices from the IniquiriesController
[11:00:44] renews: has joined #RubyOnRails
[11:02:14] sp1rs: has joined #RubyOnRails
[11:02:43] renegadeandy: Hello world. How can I make this syntactically pretty : https://gist.github.com/renegadeandy/7402108babb5a37330e4 - I want to return "No single ticket, if the find_by has no record"
[11:03:30] sp1rs1: has joined #RubyOnRails
[11:04:15] rvanlieshout: renegadeandy: "no single ticket" unless tickets.where(ticket_type: :single).present?
[11:04:32] rvanlieshout: get_ set_ is_ are not really ruby common
[11:04:42] rvanlieshout: def single_ticket_price implies that it's a get
[11:05:10] rodfersou: has joined #RubyOnRails
[11:05:21] rvanlieshout: tickets.find_by(ticket_type: :single).try(:price).presence || "No single ticket"
[11:05:23] renegadeandy: rvanlieshout: nice - ok let me rename and alter :)
[11:05:32] rvanlieshout: but it's strange that a method returns either a price or a string
[11:05:40] rvanlieshout: maybe have the method return nil
[11:05:52] rvanlieshout: and use .single_ticket_price || "No single ticket" in the view
[11:07:08] seank_: has joined #RubyOnRails
[11:07:18] renegadeandy: rvanlieshout: would that be considered best practice?
[11:07:32] Ergo: has joined #RubyOnRails
[11:07:49] rvanlieshout: the model shouldn't return localized data
[11:07:50] platzhirsch: Is there a way to change logging for all my rake tasks without touching each by hand
[11:08:01] rvanlieshout: and i you would tell me that a method returns a price, i would expect a bigdecimal or any other number, or nil
[11:08:03] AntiSpamMeta: has joined #RubyOnRails
[11:08:25] renegadeandy: rvanlieshout: well a price would be a formatted string like ??4.50
[11:08:40] rvanlieshout: not by the model
[11:09:08] renegadeandy: as that is a concern of the view
[11:09:14] bufferino: has joined #RubyOnRails
[11:09:21] rvanlieshout: exactly. or a decorator
[11:09:22] naftilos76: has joined #RubyOnRails
[11:09:25] rvanlieshout: but certainly not the model
[11:10:06] sp1rs: has joined #RubyOnRails
[11:10:30] Zinger: has joined #RubyOnRails
[11:10:33] renegadeandy: rvanlieshout: fantastic! Thank you
[11:12:11] Zinger: I have some code that makes it look like self is REQUIRED as a receiver when accessing an association inside my AR model
[11:12:14] drollwit: has joined #RubyOnRails
[11:12:32] rvanlieshout: it is required when setting
[11:12:32] Zinger: self.my_association = my_instance #works
[11:12:52] rvanlieshout: creates a local variable foo, containing bar
[11:12:56] rvanlieshout: self.foo = bar
[11:13:00] rvanlieshout: calls a method foo= on self
[11:13:00] Zinger: ok interesting
[11:13:09] Zinger: so why is that?
[11:13:19] rvanlieshout: because of local variables
[11:13:24] rvanlieshout: my_association is not a variable
[11:13:38] rvanlieshout: it's a def my_association and def my_association=()
[11:13:50] rvanlieshout: using my_association = without self just creates a local var
[11:14:37] Zinger: there must be something fundamental wrong with my understanding of ruby
[11:14:50] rvanlieshout: that method thing is rails
[11:15:02] rvanlieshout: it creates methods for all your db columns
[11:15:47] Zinger: my assumption was that ruby would spot the association= method on AR::Base and use that rather than creating a local variable
[11:16:10] rvanlieshout: imo it's function as it should
[11:16:41] Zinger: I'm not saying its wrong, I just want to correct my understanding of how ruby works
[11:16:47] Zinger: can't believe it's never come up until now
[11:17:46] skroon: when using MongoDB with rails, do I have to use different ActiveRecord syntax, or does it work just like another sql'ish adapter in my config/database.yml ?
[11:18:02] rvanlieshout: skroon: are you even using activerecord?
[11:18:10] sevenseacat: skroon: you would use an AR replacement that works with mongodb.
[11:18:22] skroon: rvanlieshout: yes i'm using activerecord now with MySQL
[11:18:24] sevenseacat: AR does not work with mongodb.
[11:18:33] skroon: sevenseacat: aha
[11:19:44] jgpawletko: has joined #RubyOnRails
[11:20:32] sp1rs: has joined #RubyOnRails
[11:20:53] niiamon: has joined #RubyOnRails
[11:21:07] fighella: has joined #RubyOnRails
[11:21:38] sp1rs: has joined #RubyOnRails
[11:21:41] DoctorMonocular: has joined #RubyOnRails
[11:22:00] stardiviner: has joined #RubyOnRails
[11:22:12] AntiSpamMeta: has joined #RubyOnRails
[11:23:24] skroon_: has joined #RubyOnRails
[11:23:28] aceRacer: what is the correct syntax for <%= link_to_if offer.offer_group.present? promotional_info_for(offer), offer_groups_offer_path(offer), data: { "remote-popup" => true, "title" => "Offers in #{offer.offer_group.try(:name)}" } %>
[11:24:39] leesharma: has joined #RubyOnRails
[11:24:43] sp1rs: has joined #RubyOnRails
[11:25:39] l0oky: has joined #RubyOnRails
[11:26:41] sevenseacat: depends what the error is with that blob of code.
[11:28:11] rustymyers: has joined #RubyOnRails
[11:28:48] wasp__: has joined #RubyOnRails
[11:28:56] bruno-: has joined #RubyOnRails
[11:29:12] doodlehaus: has joined #RubyOnRails
[11:31:19] renews: has joined #RubyOnRails
[11:31:30] workmad3: aceRacer: you're missing a ,
[11:32:27] Ropeney: has joined #RubyOnRails
[11:33:23] dionysus69: has joined #RubyOnRails
[11:33:34] Axilla: does anyone here use Paloma by chance to handle their page specific javascript? I've been looking for a way to better organize and namespace my JS in my rails apps and have been playing with this in a new project i'm working on. https://github.com/kbparagua/paloma the idea is great, and its working, but all of my unobtrusive javascript is no longer be triggered(the rails way), wondering what I need to
[11:33:41] Axilla: do to bring it over to paloma
[11:34:06] sevenseacat: that sounds like 'its great, but it doesnt work'
[11:34:19] sevenseacat: sounds not so great then >_>
[11:34:22] AntiSpamMeta: has joined #RubyOnRails
[11:34:25] Axilla: there's gotta be a way to handle ajax calls
[11:34:34] Axilla: i'm just not finding it in the docs
[11:34:39] Axilla: if not yea it sucks.. :(
[11:34:56] Axilla: which is a shame because i want better namespacing, and easier handling of only calling the JS i need for the page in my rails apps
[11:35:01] Axilla: instead of loading the entire pipeline
[11:35:31] workmad3: "Page-specific javascript for Rails done right." <-- hahahahahaha
[11:35:35] Axilla: even more dissapointing in the case that he says its done, "The Right Way." Making such a claim is bold.
[11:35:41] Axilla: lol i was just getting to that.
[11:35:59] sarink: has joined #RubyOnRails
[11:36:31] Axilla: i did find this https://github.com/kbparagua/paloma/wiki/HTML-Page-Changes-using-AJAX-with-Paloma-and-jQuery-in-Rails-4:
[11:36:32] sevenseacat: i guess i dont understand js enough to grok these kinds of things.
[11:36:35] workmad3: axilla: it kinda looks like a bastardisation of a JS MVC framework intended for SPA jammed into rails and served through the asset pipeline...
[11:36:58] Axilla: anyone got any recommendations on something to better organize my JS?
[11:37:00] workmad3: axilla: which is enough for me to completely ignore it
[11:37:08] Axilla: yea i'm pretty much with you.
[11:37:35] sevenseacat: that was a quick turnaround
[11:37:46] Axilla: well, i've been using it for a few days
[11:37:52] Axilla: and before i get to deep into it i wanted to talk about it :P
[11:38:00] Axilla: i wanted to taco bout it.
[11:38:14] Axilla: i like the premise of it
[11:38:33] Axilla: but the implementation is missing something and i wanted to be sure it wasn't me.
[11:39:28] workmad3: axilla: I'd rather use something like browserify-rails to allow use of CommonJS `require` inside the asset pipeline, or go completely separate and use a webpack or browserify project in a separate build and relegate rails to either pure JSON apis or possibly serving up a very basic SPA skeleton
[11:39:33] niiamon: has joined #RubyOnRails
[11:40:01] ldnunes: has joined #RubyOnRails
[11:40:05] Axilla: yea i'd never do the 2nd.. if i had to write js all day i'd be sad..
[11:40:11] Axilla: i try to stay in ruby as much as possible.
[11:40:15] sevenseacat: guess it really depends on how much js you write
[11:40:27] sevenseacat: i have no problem with structuring js and including everything into one application.js via the pipeline
[11:40:28] Axilla: i consider myself a rubyist first.. and I use rails because I can use ruby.
[11:41:01] workmad3: axilla: that's assuming I was going the whole SPA direction... if I'm not, I tend to ignore concerns about page-specific JS, possibly introduce a couple of js manifests if there are distinct areas of my app and try to not do anything too magical that involves invisible crossing-over of data between rails and JS
[11:41:24] Axilla: workmad3: how do you namespace your JS then?
[11:41:33] sevenseacat: why would you?
[11:42:02] Axilla: because it has lots of advantages.
[11:42:03] Axilla: http://viget.com/inspire/extending-paul-irishs-comprehensive-dom-ready-execution
[11:42:13] Axilla: i have been using this setup for awhile
[11:42:20] workmad3: axilla: if I need to at a level below a whole app in JS, I'll use pretty simple module exports inside my coffeescript
[11:43:19] workmad3: axilla: or if it was plain JS, I'd wrap the file in an anonymous function call - 'function(root){ <local scoped, export on root> }(window)'
[11:43:39] sevenseacat: ugh, controller and action body attributes
[11:43:48] sevenseacat: that to me is one of the worst anti-patterns
[11:44:17] workmad3: axilla: and then I just set up onReady functions inside components that will check to see if specific page elements are present and conditionally activate on that
[11:44:45] fighella: has joined #RubyOnRails
[11:45:08] Axilla: https://reinteractive.net/posts/172-a-better-way-to-modularise-your-js-in-rails
[11:46:08] workmad3: axilla: that entire post is based on the false premise that all your `require` sprocket directives should go in application.js
[11:46:08] sevenseacat: that site looks familiar
[11:46:45] workmad3: axilla: instead of using an actually sane variant whereby you put `require` directives inside other files so that you have dependencies declared where you're using them
[11:47:00] Trefex: has joined #RubyOnRails
[11:47:19] workmad3: axilla: which, similar to using `require` in ruby, resolves pretty much every dependency issue other than circular dependencies
[11:47:36] workmad3: (if you have circular dependencies, you're somewhat screwed though :) )
[11:48:35] workmad3: axilla: what I find really funny is that articles that criticise that style of require do a bait-and-switch and move to a saner style of dependency declaration whilst introducing commonjs or requirejs directives ;)
[11:48:50] liefstrider: has joined #RubyOnRails
[11:50:37] platzhirsch: Why is Rails.configuration.logger different to Rails.logger?
[11:51:25] arup_r: has joined #RubyOnRails
[11:51:25] workmad3: axilla: or, in other words, if the guy writing that article had done `//= require ./vehicle` at the top of his `models/car.js` file, he'd have gotten exactly the same desired behaviour and the ability to use `require_tree .` at the top level
[11:51:43] workmad3: axilla: without introducing requirejs ;)
[11:51:53] workmad3: (oh sorry... modulejs)
[11:53:45] workmad3: axilla: I approve of introducing a sensible module system btw... but I dislike straw-man arguments that introduce them to solve dependency resolution issues that simply don't exist if you use the same principle with plain sprockets :)
[11:54:49] arup_r: has joined #RubyOnRails
[11:55:12] beauby: has joined #RubyOnRails
[11:55:57] rustymyers: has joined #RubyOnRails
[11:56:15] Axilla: yea i'm with you there.
[11:56:35] Axilla: i'm just looking for a good way to keep my namespaces clean and my code organized
[11:57:55] workmad3: axilla: tbh, I'd be more tempted to look @ https://github.com/browserify-rails/browserify-rails and use CommonJS style modules
[11:58:40] sinkensabe: has joined #RubyOnRails
[11:58:43] workmad3: axilla: going from commonjs modules to es6 modules is conceptually easier, IMO
[11:59:13] leslie: Can you render templates based on the current locale?
[11:59:45] workmad3: leslie: yes: http://guides.rubyonrails.org/i18n.html#localized-views
[11:59:52] leslie: thanks :)
[12:01:07] workmad3: (I always like pointing people at that when they start doing crazy stuff like pulling every single string out of their views and into locale files...)
[12:01:27] rodfersou: has joined #RubyOnRails
[12:01:46] sp1rs: has joined #RubyOnRails
[12:01:53] sevenseacat: I do that for static pages and things for the like. for most other things, its I18n.t all of the things!
[12:03:54] sevenseacat: one of the best (worst) examples of i18n I've ever seen was the first Rails app I ever worked. it was literally full of things like I18n.t("create") + " " + I18n.t("new") + " " + I18n.t("supplier")
[12:03:58] DoubleMalt: has joined #RubyOnRails
[12:04:19] stardiviner: has joined #RubyOnRails
[12:04:20] ishahnaz: has joined #RubyOnRails
[12:04:47] sevenseacat: good thing we never actually needed to add another language for that app
[12:06:33] drollwit: has joined #RubyOnRails
[12:06:35] mostlybadfly: has joined #RubyOnRails
[12:06:45] okdas: Hey guys, any ETA when rails 5 will arrive?
[12:06:55] Axilla: supposedly
[12:07:09] sevenseacat: I am going to make helpa start auto-responding to "guys" soon, I swear
[12:07:15] okdas: okay, nice changes are coming!:)
[12:07:48] Axilla: actioncables seem cool and i hope turbolinks finally doesn't suck.
[12:08:04] Axilla: i think maybe DHH got it right this time? but probably not.
[12:08:27] rvanlieshout: since when dus turbolinks suck?
[12:08:34] okdas: Those ruby "starts"
[12:08:39] Axilla: when it gets in the way
[12:08:53] Axilla: when its working, it works amazing
[12:09:02] rvanlieshout: ah right. it never gets in the way for me
[12:09:02] Axilla: i'm hopeful for rails 5 :)
[12:09:28] Axilla: and i like the action_cables idea and having sockets in rails
[12:09:36] Axilla: should be awesome if implemented correctly
[12:09:48] Axilla: i haven't played with rails 5 at all
[12:09:55] workmad3: okdas: I personally don't make predictions until the first beta comes out... at which point I'd expect about 2-3 months (going by historical data)
[12:10:47] okdas: For me #websocket-rails is the best one now :) Will see at action cable, but yes, it is exiting change on the road map
[12:14:23] troysk: has joined #RubyOnRails
[12:14:45] zpe: has joined #RubyOnRails
[12:15:18] kitsuneyo: has joined #RubyOnRails
[12:15:47] kitsuneyo: how do i prevent "&amp;" and things like that in my html titles?
[12:15:58] rvanlieshout: please share more code for that problem
[12:16:05] rvanlieshout: the solution is simple, but potentially unsafe
[12:16:10] frzn: has joined #RubyOnRails
[12:16:26] rvanlieshout: in normal circumstances you wouldn't have that issue
[12:17:50] kitsuneyo: <% provide(:title, "#{@org.name}") %> - name is a string with a & character in it
[12:18:18] hazelux: has joined #RubyOnRails
[12:18:23] kitsuneyo: i saw html_safe, is that the one you mean is potentially unsafe?
[12:18:25] rvanlieshout: <% provide(:title, org.name) %>
[12:18:33] rvanlieshout: org.name is not a html safe string
[12:18:37] rvanlieshout: you shoulnd't assume it is
[12:18:58] rvanlieshout: "#{@org.name}" interpolates that @org.name and places it in that newly created string
[12:19:02] rvanlieshout: you can just use @org.name
[12:19:13] renews: has joined #RubyOnRails
[12:19:13] kitsuneyo: i see, let me try that
[12:19:25] rvanlieshout: if it still contains "&amp;" you should check what's in your db
[12:19:34] rvanlieshout: and sanitize the string, allowing certain html
[12:20:06] carlosd: has joined #RubyOnRails
[12:20:51] kitsuneyo: i switched to <% provide(:title, @org.name) %>, it still shows as &amp;
[12:21:14] rvanlieshout: so check your db
[12:21:24] rvanlieshout: what does it contain?
[12:21:48] rvanlieshout: kitsuneyo: and then make it html_safe
[12:21:53] rvanlieshout: not by using .html_safe, but by http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html
[12:24:40] Axilla: workmad3: so it wasn't paloma getting in the way of my unobtrusive javascript, it was something else I was doing. My bad!
[12:25:34] kitsuneyo: i read that guide but i'm unsure where to use sanitize - do i use it in form inputs, can i set it across the whole app or do i just use it in views?
[12:25:39] workmad3: kitsuneyo: also complain to your browser vendor... &amp; in the <title> tag should be correctly interpreted as an & when rendered
[12:25:51] AntiSpamMeta: has joined #RubyOnRails
[12:25:54] kitsuneyo: workmad3, it's Safari
[12:26:37] shyshy: has joined #RubyOnRails
[12:26:52] kitsuneyo: But Chrome displays it the same
[12:26:53] workmad3: kitsuneyo: safari renders &amp; as & in the title for me
[12:27:05] rvanlieshout: it could be &amp;amp; in the source
[12:27:05] workmad3: kitsuneyo: sounds like you may have a double-escape going on
[12:27:17] Lightsword: has joined #RubyOnRails
[12:27:32] workmad3: rvanlieshout: or it's &amp; in the database and that's being escaped to &amp;amp; :)
[12:27:32] kitsuneyo: when i render the same text in the body of the page, i get &
[12:27:59] garrypolley: has joined #RubyOnRails
[12:28:16] workmad3: kitsuneyo: it could also be a problem in 'provide()'
[12:28:44] workmad3: kitsuneyo: or in how you're putting the content in-place
[12:29:22] rikkipitt: has joined #RubyOnRails
[12:29:23] qejk: has joined #RubyOnRails
[12:29:36] kitsuneyo: i see... (actually i don't see :))
[12:29:40] adre: has joined #RubyOnRails
[12:30:35] HalcyonicStorm: has joined #RubyOnRails
[12:30:56] rvanlieshout: kitsuneyo: what's in the db?
[12:31:27] kitsuneyo: rvanlieshout, i'm trying to use pgadmin to find that out now
[12:31:42] rvanlieshout: rails dbconsole -p
[12:31:45] beauby: Guys, any way to avoid hitting the database each time a request (on a RESTful API, with an auth token) is received?
[12:31:47] rvanlieshout: select name from organisations where id =123
[12:32:01] rvanlieshout: beauby: what query is executed?
[12:32:04] kitsuneyo: oh yeah good thinking
[12:32:20] beauby: rvanlieshout: currently, looking up the auth_token
[12:32:39] rvanlieshout: and how should that be avoided?
[12:33:31] Dzejmskrokan: has joined #RubyOnRails
[12:34:03] MaDErroR123: has joined #RubyOnRails
[12:35:02] beauby: rvanlieshout: no idea, but I remember a guy on StackOverflow who kept saying "that's not the only way, especially if you need to scale up", but without giving more details
[12:35:22] rvanlieshout: then ignore that guy
[12:35:47] beauby: I guess storing the session in redis or something helps, but I honestly don't see how to avoid looking up the token
[12:36:17] rvanlieshout: is it a problem already?
[12:36:30] rvanlieshout: got an index on the token field?
[12:37:14] beauby: rvanlieshout: it's not an issue currently, I'm just interested in the problem
[12:37:23] arup_r1: has joined #RubyOnRails
[12:37:25] beauby: rvanlieshout: Yes, got an index on the token field
[12:37:39] rvanlieshout: then don't worry about it too muc
[12:37:52] krz: beauby: depeends on the client hitting your api
[12:38:15] krz: ember for example, only hits the api for token authenticity on page reload
[12:38:25] AntiSpamMeta: has joined #RubyOnRails
[12:38:48] krz: user moves to different pages. theres no need to hit the api endpoint. the token is cached on the client
[12:39:00] rvanlieshout: but the api endpoint should still validate it
[12:39:03] rvanlieshout: or create a session
[12:39:06] krz: i believe thats how most js frameworks do this as well
[12:39:34] krz: rvanlieshout: yea
[12:39:36] rvanlieshout: not only js frameworks
[12:39:49] rvanlieshout: almost every website that uses a login field :)
[12:40:14] rvanlieshout: it all depends if you want your api to use a session
[12:40:16] krz: but you only validate once
[12:40:20] rvanlieshout: with a cookie
[12:40:29] rvanlieshout: or separate things; not using a cookie
[12:41:01] krz: depending on the api resource that you hit. the request might need to validate the token. so this is an instance of validating on a request basis
[12:41:13] rvanlieshout: or on session basis
[12:41:24] rvanlieshout: as you've done with your ember project
[12:41:35] rvanlieshout: it's not the choice of ember
[12:41:42] krz: not really. i use local storage
[12:41:56] rvanlieshout: and where does it fill the local storage from?
[12:42:11] rvanlieshout: if that uses an external backend that doesn't allow you to use sessions ember will also need to send the token each request
[12:42:49] krz: local storage is different from a session storage
[12:43:15] rvanlieshout: true, that's why it only applies if you use an external api
[12:43:16] relix: has joined #RubyOnRails
[12:43:18] rvanlieshout: not related to local storage
[12:44:21] JulienTant: has joined #RubyOnRails
[12:44:28] kitsuneyo: i have another issue now where i get "NameError: uninitialized constant Organization::OrgLogoUploader" when i try to load a record in rails console
[12:44:29] krz: beauby: if you havent already. use JWT for tokens
[12:44:29] slani: sevenseacat: what is my options then? helper method??
[12:44:42] rvanlieshout: kitsuneyo: and where should that one be defined?
[12:44:58] kitsuneyo: in org_logo_uploader.rb
[12:45:27] kitsuneyo: app/uploaders/org_logo_uploader.rb, it's a carrierwave thing
[12:45:27] krz: slani: what?
[12:46:23] rvanlieshout: kitsuneyo: did you restart your console after you've added that uploader?
[12:46:38] kitsuneyo: yes, and the uploader actually works
[12:46:39] krz: kitsuneyo: filepicker.io works great for us :)
[12:46:51] krz: just thought id mention it
[12:47:05] kitsuneyo: krz, that looks nice, i've bookmarked it thanks
[12:47:18] krz: takes the headache off trying to figure out which runtime is causing problems for different browsers/versions
[12:47:24] rvanlieshout: but totally not related to the problem :)
[12:47:46] krz: end up using filepicker. get rid of carrierwave :D
[12:48:25] rvanlieshout: i really like carrierwave
[12:48:33] rvanlieshout: why should i switch?
[12:48:35] kitsuneyo: also filepicker isn't free :)
[12:48:59] rvanlieshout: just because i need a huge file picker with all kinds of features i don't need for just a upload + storage?
[12:49:05] slani: krz: old questions. I don't know how to include other request in to current view
[12:49:22] krz: rvanlieshout: thats not why you would use filepicker though. sure the storage features are great
[12:49:33] rvanlieshout: so. back to the question
[12:49:50] rvanlieshout: kitsuneyo: and what would you type in a console to trigger that?
[12:50:03] krz: slani: what other request ino current view?
[12:50:10] kitsuneyo: x = Organization.find(2)
[12:50:36] rvanlieshout: could you gist the trace, model and uploader?
[12:52:23] DoctorMonocular: has joined #RubyOnRails
[12:52:24] kitsuneyo: rvanlieshout: https://gist.github.com/kitsuneyo/3458fdfe0fbf8b85ef8e
[12:52:40] bmurt: has joined #RubyOnRails
[12:53:25] rvanlieshout: kitsuneyo: and a stand alone OrgLogoUploader in a console?
[12:54:05] slani: i have call_center.html.erb and call_list.html.erb I like to include call_list in call_center but I like that call_list method will be invoke
[12:54:07] MaDErroR123: has joined #RubyOnRails
[12:54:16] kitsuneyo: you mean just type that in the console? ok
[12:54:38] jenrzzz: has joined #RubyOnRails
[12:55:09] hazelux: has joined #RubyOnRails
[12:55:23] kitsuneyo: i added it to the gist, brb
[12:55:57] rvanlieshout: kitsuneyo: strange. it should autoload it. running in dev environment? changed autoload path?
[12:56:34] beauby: krz: Thanks, will look into JWT
[12:56:45] AntiSpamMeta: has joined #RubyOnRails
[12:57:03] Jon30: has joined #RubyOnRails
[12:58:55] n1lo: has joined #RubyOnRails
[12:59:33] juanpaucar: has joined #RubyOnRails
[12:59:33] kitsuneyo: running in dev env yeah, don't think i've changed autoload path
[12:59:51] Dzejmskrokan: has joined #RubyOnRails
[13:00:32] drollwit: has joined #RubyOnRails
[13:00:44] Dzejmskrokan: has joined #RubyOnRails
[13:01:49] rvanlieshout: and if you 'raise OrgLogoUploader.inspect' in a view?
[13:01:53] beauby: On a facebook-like model of posts with likes, does it make sens for a REST API to answer a GET /posts with entities that have a boolean attribute current_user_liked: bool (for authenticated requests)? It would mess up the potential caching I think. What are some alternatives?
[13:03:45] rvanlieshout: perform better caching
[13:03:49] rvanlieshout: it should be in there if you need it
[13:04:37] allcentury: has joined #RubyOnRails
[13:05:09] ramortegui: has joined #RubyOnRails
[13:07:43] Dzejmskrokan: has joined #RubyOnRails
[13:08:20] AntiSpamMeta: has joined #RubyOnRails
[13:11:41] socrates: has joined #RubyOnRails
[13:12:31] chills42: has joined #RubyOnRails
[13:12:59] vasilakisFiL: has joined #RubyOnRails
[13:13:12] vasilakisFiL: is there a way to get all mounted apps in rails ?
[13:13:15] renews: has joined #RubyOnRails
[13:14:10] bufferino: has joined #RubyOnRails
[13:17:37] Abhijit: has joined #RubyOnRails
[13:17:49] Abhijit: how do I <body background image?
[13:17:54] Abhijit: not from cs
[13:17:56] krz: vasilakisfil: get?
[13:18:06] rvanlieshout: Abhijit: as you would have done 10 years ago in plain html?
[13:18:10] doodlehaus: has joined #RubyOnRails
[13:18:25] victortyau: has joined #RubyOnRails
[13:18:31] Abhijit: rvanlieshout, body background="assets/image/folder/image.png" do not work
[13:18:46] stardiviner: has joined #RubyOnRails
[13:18:55] vasilakisFiL: krz in my routes, I mount some rack apps like sidekiq
[13:19:00] rvanlieshout: cause that's not the way to access a asset url
[13:19:05] vasilakisFiL: is there a way to get which apps are mounted ?
[13:19:14] krz: vasilakisfil: you want to see all mounted apps? rake routes ?
[13:19:31] rvanlieshout: Abhijit: http://guides.rubyonrails.org/asset_pipeline.html
[13:19:43] vasilakisFiL: no I meant from inside rails
[13:19:54] krz: vasilakisfil: you normally know which are mounted when they are defined in routes
[13:19:56] Abhijit: removed images folder name and it works
[13:20:10] troysk: has joined #RubyOnRails
[13:20:13] rvanlieshout: Abhijit: it won't work if you deploy it
[13:20:22] vasilakisFiL: yeah normally I do but in my case I don't since the code will in a separate gem
[13:20:53] krz: not sure then :)
[13:21:08] sevenseacat: you still have to mount that gem inside your routes
[13:21:14] diegoviola: has joined #RubyOnRails
[13:21:15] sevenseacat: otherwise you get nothing
[13:22:00] vasilakisFiL: yeah I know :P
[13:22:09] vasilakisFiL: but once you mount it you should be ok
[13:22:12] vasilakisFiL: it's a metrics gem
[13:23:14] chills42: has joined #RubyOnRails
[13:23:40] sarink: has joined #RubyOnRails
[13:23:58] krz: vasilakisfil: store the names of the engines mounted somewhere?
[13:24:06] krz: i.e. redis
[13:24:20] krz: $redis.get 'mounted_engines'?
[13:25:05] platosha: has joined #RubyOnRails
[13:26:08] platosha__: has joined #RubyOnRails
[13:26:12] kitsuneyo: rvanlieshout, <%= raise OrgLogoUploader.inspect %> raises a runtime error
[13:26:29] kitsuneyo: RuntimeError in OrganizationsController#show
[13:27:17] platosha_: has joined #RubyOnRails
[13:27:56] rvanlieshout: kitsuneyo: with that data?
[13:28:32] paulcsmith___: has joined #RubyOnRails
[13:28:47] dkam: has joined #RubyOnRails
[13:28:49] kitsuneyo: i don't understand the question
[13:29:07] devdazed: has joined #RubyOnRails
[13:29:20] poli: has joined #RubyOnRails
[13:29:34] rickmasta: has joined #RubyOnRails
[13:29:41] prestorium: has joined #RubyOnRails
[13:29:52] kitsuneyo: gonna have to come back to this later, thanks so much for the help rvanlieshout
[13:33:17] JulienTa_: has joined #RubyOnRails
[13:38:59] nightsh: has joined #RubyOnRails
[13:39:22] slani: krz: i have call_center.html.erb and call_list.html.erb I like to include call_list in call_center but I like that call_list method will be invoke
[13:39:29] jhack: has joined #RubyOnRails
[13:39:46] rvanlieshout: slani: that's not really hot it works
[13:39:52] rvanlieshout: you don't call views
[13:40:05] rvanlieshout: or actions from other views
[13:41:26] vasilakisfil__: has joined #RubyOnRails
[13:43:11] jkamenik: has joined #RubyOnRails
[13:44:59] slani: rvanlieshout: so how can I invoke a method from views
[13:45:09] bePolite: has joined #RubyOnRails
[13:45:27] rvanlieshout: slani: a method just by calling it
[13:45:28] jcm: has joined #RubyOnRails
[13:45:30] rvanlieshout: slani: an action.. don't
[13:45:32] rvanlieshout: that's wrong by design
[13:45:35] bePolite: Please how can I remove the CRSF filter on a post route in larval 4
[13:45:48] rvanlieshout: what's larval 4?
[13:46:27] rvanlieshout: i've really never heard of that
[13:46:44] sevenseacat: bePolite: I think you're in the wrong channel
[13:46:45] bePolite: rvanlieshout: Well I'm creating an API so a post route doesn't need a crsf filter
[13:46:48] darrencauthon: has joined #RubyOnRails
[13:47:00] naftilos76: has joined #RubyOnRails
[13:47:00] bePolite: Thanks sevenseacat
[13:47:08] sevenseacat: rvanlieshout: laravel is a php framework inspired by rails :)
[13:47:28] sevenseacat: bePolite: np. good luck!
[13:47:31] dopie: has joined #RubyOnRails
[13:47:33] JoshL: has joined #RubyOnRails
[13:47:51] bePolite: sevenseacat: I'm not sure about the "inspired by rails" part
[13:48:15] chills42_: has joined #RubyOnRails
[13:48:17] Pumukel: has joined #RubyOnRails
[13:49:19] drale2k_: has joined #RubyOnRails
[13:49:33] niiamon: has joined #RubyOnRails
[13:51:48] centrx: has joined #RubyOnRails
[13:53:53] slani: any good tutorial abouth js.erb ?
[13:54:49] drollwit: has joined #RubyOnRails
[13:54:57] rvanlieshout: i don't think many people use js.erb anymore
[13:55:04] artto: has joined #RubyOnRails
[13:55:05] rvanlieshout: it's more unobtrusive js
[13:55:15] rvanlieshout: but i could be wrong about that
[13:55:20] sevenseacat: nope, you're not wrong
[13:57:39] Fire-Dragon-DoL: has joined #RubyOnRails
[13:57:59] krz: yea was just gonna ask about js.erb. thought it made a comeback
[13:58:10] werelivinginthef: has joined #RubyOnRails
[13:58:30] slani: rvanlieshout: what is my solution then? what is alternative to js.erb
[13:59:08] krz: slani: assets/javascripts/folder-structure/foobar.js
[13:59:28] krz: put all your js in app/assets/javascripts
[13:59:49] krz: or if you feel like you need better abstraction. id recommend a js framework. backbone perhaps?
[14:00:17] safeforge: has joined #RubyOnRails
[14:00:58] gavit: with devise, if you create a user during dev, how do I confirm my user?
[14:01:26] krz: start off with app/assets/javascripts/. when you realize your rails app starts to get into 70% js and 30% rails/ruby. think about a js framework
[14:01:43] slani: krz: how can I then call thi js from view
[14:01:45] krz: devise. so much shivers
[14:01:55] sud1234: has joined #RubyOnRails
[14:02:12] krz: slani: im assuming youll be using jquery. jquery listens to the DOM
[14:02:49] krz: $('body.users-index') do something
[14:03:00] centrx: I'm on the Cloud
[14:03:02] centrx: And I can't get out
[14:03:17] centrx: Can anyone help?
[14:03:25] krz: centrx: whats the cloud?
[14:03:29] xhoy: hi, i have a bit of a complicated question, are building a small CMDB, and we have configurationItems (CI), and ConfigurationItemsClasses (CIC), since different CI's have differen CIC's (for example a printer doesn't have a screen size) we tought of defining some blog/hash with the different CiC "types" and build some kind of hash_to_attribute initalizer. but the more i think about it the more i wonder if some body else build something lik
[14:03:46] centrx: krz, All I see is particles and instances of particles
[14:03:56] smathy: ACTION still uses js.erb for simple things
[14:03:57] krz: centrx: sounds yummy
[14:04:04] slani: krz: any tutorial
[14:04:46] krz: slani: this is what you dont want http://railscasts.com/episodes/205-unobtrusive-javascript
[14:05:30] juanpaucar: has joined #RubyOnRails
[14:05:46] Aeyrix: has joined #RubyOnRails
[14:05:56] krz: hmm surprised ryan bates hasnt made a screencast on this
[14:06:27] smathy: xhoy, sorry, your message makes no sense to me.
[14:06:31] pontiki: colleague found this crazy situation in a project we're working on: validations were added to a model after there was existing data in the database for that model that violate those validations.
[14:06:35] krz: slani: maybe http://guides.rubyonrails.org/working_with_javascript_in_rails.html
[14:07:02] pontiki: the problem in this particular case is that the validations require a numerical value greater than zero (cannot be zero).
[14:07:04] sud1234: has left #RubyOnRails: ()
[14:07:31] renews: has joined #RubyOnRails
[14:07:45] smathy: slani, reading http://guides.rubyonrails.org/working_with_javascript_in_rails.html will help.
[14:07:54] pontiki: further, this didn't become important until just recently when calculations on those fields were added
[14:08:04] niiamon: has joined #RubyOnRails
[14:08:21] krz: pontiki: bypass validation?
[14:08:23] pontiki: we can't really think of a good default for these currently null field values
[14:08:49] xhoy: smathy: mm ok, we would have a hash {screensize: string, ip: string, devicename: string} and then a CI instance with a hash: {screensize: 18", ip: 123.123.123, devicename: "foo"}
[14:08:53] pontiki: krz, actually, if the user is editing this model, we *want* them to get an invalid response
[14:09:02] xhoy: and the "class" would define does attributes
[14:09:16] Aeyrix: has joined #RubyOnRails
[14:09:27] nzst: has joined #RubyOnRails
[14:09:31] xhoy: so it would be like activerecord but then in an text field instead of "defined" columns in the db
[14:09:37] krz: pontiki: valide only when field is present
[14:09:41] uris: has joined #RubyOnRails
[14:09:42] krz: validate*
[14:09:48] pontiki: krz: but i was thinking that before we get around to running the calculations, we can run valid? on it to see if it's possible to use the record
[14:09:53] smathy: pontiki, where does the data for those fields come from in the new records created since the calculations were added?
[14:10:08] pontiki: smathy: it's all user-entered
[14:10:41] smathy: pontiki, so yeah, any time a user touches that record, check if it's valid and redirect them to an update page with a message about needing more data.
[14:10:52] krz: pontiki: validate :funny_field, if: -> { self.funny_field.present? }
[14:10:55] stardiviner: has joined #RubyOnRails
[14:11:01] pontiki: yes, that's what we'll do, but the record could be *used* in the mean time
[14:11:12] smathy: krz, but he WANTS them to get the validation error.
[14:11:13] pontiki: no, krz, you're not really understanding the situation, it seems
[14:11:24] smathy: pontiki, used how?
[14:11:40] pontiki: if the record gets updated, we *want* these validations to fail so they can make the record correct
[14:11:41] smathy: pontiki, or was the "but" not an objection?
[14:12:04] smathy: pontiki, right, sounds pretty simple then.
[14:12:11] smathy: ...just a question of good messaging.
[14:12:46] Aeyrix: has joined #RubyOnRails
[14:13:00] pontiki: these records are part of a brewing recipe. the site has since added a feature where people can order a custom kit based on that recipe
[14:13:06] krz: ok then. so i dont see the issue. your current validations on the model are correct. if null. show error right?
[14:13:22] smathy: xhoy, ok, that's quite a common thing to do, Rails has a `serialize` method built in for mapping a single DB field to a Hash or other object that represents it.
[14:13:28] xhoy: so in stead of 'hard' defining columns in de DB there would be a hash to define the attributes of that specific instance
[14:13:46] pontiki: i'm not asking about the validations on the model for new or updated records, krz
[14:13:56] xhoy: smathy: so DIY and no gem?
[14:13:59] smathy: xhoy, http://devdocs.io/rails/activerecord/attributemethods/serialization/classmethods#method-i-serialize
[14:14:07] pontiki: i'm talking about using records from the model that existed *before* those validations were put in place
[14:14:08] smathy: xhoy, not sure what you think you need the gem for.
[14:14:10] slani: krz: thanks for your help
[14:14:14] slani: I will check
[14:14:30] smathy: pontiki, using them how?
[14:14:36] dopie: has joined #RubyOnRails
[14:14:42] xhoy: well, we have the "class" that would define what "attributes" that specific instance would have
[14:14:45] smathy: pontiki, you obviously can't use them for anything that requires data that they don't have.
[14:14:47] pontiki: smathy: in building an order for the custom kit
[14:15:05] pontiki: smathy: right, that's where i'm going with this
[14:15:22] smathy: xhoy, ok, so for `serialize` to work you just have to define `dump` and `load` class methods in your class and it can be used to serialize/deserialize that data.
[14:15:30] pontiki: my thought, again, was to call record.valid? before we apply the calculations and toss back an error "recipe not orderable"
[14:15:57] xhoy: smathy: oke, so thats the basic
[14:16:13] xhoy: but then i would love to validate the in/ouput?
[14:16:18] smathy: pontiki, yep, or if the calculations are fairly granular then just check the individual fields - whatever makes most sense for your data.
[14:16:29] xhoy: based on somekind of " definition" (CiC)
[14:16:36] xhoy: i could code that
[14:16:41] smathy: xhoy, you'd have to do that in your own validation method.
[14:16:42] xhoy: in the dump/load class
[14:16:47] Aeyrix: has joined #RubyOnRails
[14:16:47] xhoy: smathy: oke
[14:16:52] AntiSpamMeta: has joined #RubyOnRails
[14:17:04] xhoy: but then i tought *maby* somebody build something for this :0
[14:17:22] pontiki: this is one of those bloody projects that no one gets assigned to, no one owns, but then suddenly becomes super important to the image of the company :(
[14:17:43] smathy: xhoy, if the validations are complex, use your own class for them too, perhaps namespaced inside your serializer class: validates_with
[14:18:10] smathy: xhoy, they have, it's called the `serialize` method. I'm not sure what else you think you need here.
[14:18:18] xhoy: smathy: not mutch
[14:18:27] xhoy: but i tought it could get rather complex later on
[14:18:50] smathy: xhoy, it sounds like the complexity will be in your domain, not in serializing/deserializing and validating.
[14:18:55] xhoy: and maby somebody build the advanced version of this so i dont need to define my own validations and god just
[14:19:16] xhoy: smathy: well for example, based on the "layout" of the object the form needs to change (in the view)
[14:19:19] workmad3: mmm... "I thought it could get rather complex later on" <-- the source of most bad design
[14:19:43] xhoy: smathy: and i would need to write that part asswell
[14:19:48] centrx: Should have used a VAX
[14:19:52] krz: sweet! thunderstorm outside!
[14:20:39] diegoviola: some idiot just asked me to build a forum with posts and messages and replies as a "test" in 4 days, these people need to rot in hell
[14:21:00] workmad3: diegoviola: do it in an hour, show them how awesome you are :P
[14:21:16] workmad3: diegoviola: shouldn't be too difficult... 'gem install forem; <follow forem setup guide>'
[14:21:23] axl_: has joined #RubyOnRails
[14:21:39] diegoviola: workmad3: he wants me to code all from scratch
[14:21:59] Papierkorb: has joined #RubyOnRails
[14:22:00] workmad3: diegoviola: fine... 3 hours then :P
[14:22:06] workmad3: diegoviola: on your marks, get set... GO!!!
[14:22:17] drale2k_: has joined #RubyOnRails
[14:22:28] diegoviola: I'm not Linus Torvalds
[14:22:40] tubbo: i have s.files = `git ls-files`.split("\n") in my gem, but when i load it into my app i get "Errno::ENAMETOOLONG: File name too long @ rb_file_s_stat - .gitignore" wtf
[14:22:45] xhoy: 4 hours then?
[14:22:58] workmad3: diegoviola: you're wasting time
[14:23:07] HalcyonicStorm: has joined #RubyOnRails
[14:23:10] xhoy: this looks a bit like hour case: http://stackoverflow.com/questions/10144504/rails-gem-plugin-for-dynamic-custom-fields-in-model
[14:23:13] workmad3: diegoviola: 2 hours 59 minutes before demo time... what ya gonna do?
[14:23:15] diegoviola: workmad3: I already have posts with comments but I'm getting confused about replies
[14:23:19] krz: diegoviola: job interview?
[14:23:22] diegoviola: https://github.com/collectiveidea/awesome_nested_set
[14:23:57] krz: diegoviola: sounds like a challenge. its not really that bad tbh. do scaffold. im assuming nothing fancy with tags or search?
[14:24:03] pontiki: are "replies" comments on comments?
[14:24:09] workmad3: diegoviola: just do it dirt-simple with a parent_id if you're getting confused...
[14:24:11] JoshL: has joined #RubyOnRails
[14:24:20] chills42: has joined #RubyOnRails
[14:24:25] diegoviola: workmad3: parent_id is what it's confusing me
[14:24:28] chouhoulis: has joined #RubyOnRails
[14:24:34] Dzejmskrokan: has joined #RubyOnRails
[14:24:38] tubbo: or just use Forem
[14:24:40] diegoviola: what is parent_id supposed to be? the id of the message?
[14:24:52] workmad3: diegoviola: parent_id == nil is your root message, otherwise it's the id of the message you're replying to
[14:25:08] renanoronfle: has joined #RubyOnRails
[14:25:10] workmad3: tubbo: that was my first suggestion :P
[14:25:21] tubbo: yeah but it was the right answer so i thought i'd reiterate it
[14:25:29] tubbo: why bother doing all this BS for a company that you already hate?
[14:25:43] tubbo: you're basically telling them to "fuck off" with code
[14:25:50] krz: posts has many comments. comments have many replies. or replies is a m:m of comments (i.e. comment_id1, comment_id2)
[14:26:00] krz: both will work
[14:26:58] krz: diegoviola: yea pick a company that does ember+rails
[14:27:01] Lightsword: has joined #RubyOnRails
[14:27:11] diegoviola: he also said I need to add a blacklist and pagination and lots of testing, great
[14:27:17] workmad3: krz: tubbo's suggestion is to work somewhere that won't drive him crazy :P
[14:27:43] sevenseacat: ACTION adds another mark in the column
[14:28:13] j_mcnally: has joined #RubyOnRails
[14:28:25] DaniG2k: has joined #RubyOnRails
[14:28:37] disgrntld: has joined #RubyOnRails
[14:29:42] badmadrad: has joined #RubyOnRails
[14:30:01] smathy: xhoy, gotcha. So no, I don't think there's anything like that. Even if there was most of the work is still in your own domain because you're still going to need to decide what sort of input field to present based on your own data. I mean if all you're doing is giving text fields then it's very simple, if you're giving more then the difficulty is all on your side.
[14:30:25] xhoy: so no short cuts on this :)
[14:30:26] smathy: xhoy, I think there's a decent railscast on this topic though, search for Dynamic Forms.
[14:30:38] xhoy: i am watching it right now :)
[14:30:45] xhoy: thanks for the effort!
[14:30:58] xhoy: rayan should come back soon :)
[14:31:00] smathy: I think when you're finished you'll see that there's not a lot of room for a gem.
[14:31:05] maxdoubt: has joined #RubyOnRails
[14:31:36] smathy: Ryan should take care of Ryan's best interests - but yeah, he's a great resource, I know what you mean.
[14:31:37] kitsuneyo: has joined #RubyOnRails
[14:32:01] xhoy: but lets hope his interest is in our interest :)
[14:32:15] xhoy: thanks for the help, ill sink my time in to this:>
[14:33:04] rjno: has joined #RubyOnRails
[14:33:09] diegoviola: pontiki: replies can be replies on comments and replies on replies
[14:33:47] beauby: has joined #RubyOnRails
[14:36:24] olksndr: has joined #RubyOnRails
[14:37:37] Trefex: has joined #RubyOnRails
[14:37:57] Abhijit: has left #RubyOnRails: ("Bye.")
[14:39:20] leesharma: has joined #RubyOnRails
[14:39:30] smathy: xhoy, you're welcome.
[14:39:47] pixelhandler: has joined #RubyOnRails
[14:40:05] Lightsword: has joined #RubyOnRails
[14:41:30] kitsuneyo: how should i use sanitize to santize user-input data?
[14:41:50] hazelux: has joined #RubyOnRails
[14:42:09] kitsuneyo: i don't know whether to put it in the controller, the view or the model
[14:43:03] aceRacer: I have a problem. I have to duplicate an offer and the offer has a promotional_image. now when I am doing @new_ofr = @old_ofr.dup; @new_ofr.title = @new_ofr.title + "- duplicated"; and calling @new_ofr.save(validate: false).. I am getting an error Errno::EISDIR (Is a directory @ unlink_internal - /home/kreetiuser/dev/rails/SM/public)
[14:43:45] aceRacer: paperclip is being used for image upload
[14:47:13] rjno: has joined #RubyOnRails
[14:48:24] Criten: kitsuneyo: model validations :)
[14:48:36] Criten: oh.. use sanitize?
[14:48:51] drollwit: has joined #RubyOnRails
[14:48:59] Ergo: has joined #RubyOnRails
[14:49:18] Criten: normally you can use that right in your tempaltes
[14:49:25] Criten: http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html
[14:50:37] zorak8: has joined #RubyOnRails
[14:51:32] umgrosscol: has joined #RubyOnRails
[14:52:37] The_Phoenix: has joined #RubyOnRails
[14:52:47] kitsuneyo: has joined #RubyOnRails
[14:53:14] DoctorMonocular: has joined #RubyOnRails
[14:53:44] kitsuneyo: sorry Criten, was away
[14:53:54] srinidhi: has joined #RubyOnRails
[14:54:02] erich: has joined #RubyOnRails
[14:54:14] Gribo: has joined #RubyOnRails
[14:55:22] Gribo: has left #RubyOnRails: ()
[14:55:26] Gribo: has joined #RubyOnRails
[14:55:43] jenrzzz: has joined #RubyOnRails
[14:56:33] Gribo: Hello, is there any channel for complete ruby on rails beginners?
[14:56:46] Gribo: An equivalente to ##c++-basic
[14:57:39] centrx: Gribo, This channel is fine, but make sure to do your homework (e.g. start with http://guides.rubyonrails.org/ and https://www.railstutorial.org/ )
[14:58:49] garrypolley: has joined #RubyOnRails
[14:59:04] kitsuneyo: so i'm using "<% provide(:title, sanitize(@org.name)) %>" but the & character in my html <title> is still displaying as &amp;
[14:59:22] kitsuneyo: i checked the db and the character is stored as &, not &amp;
[14:59:44] kitsuneyo: if i use @org.name.html_safe then the problem goes away
[15:00:05] kitsuneyo: this is happening in chrome and safari
[15:00:52] Gribo: centrx, I'm following a different tutorial.
[15:01:19] HalcyonicStorm: Gmorning, nerds
[15:01:35] renews: has joined #RubyOnRails
[15:01:51] centrx: Gribo, ok cool
[15:02:19] Gribo: I'm trying to update ruby and was told to run this command in the tutorial rvm use ruby-2.2.0 however I get an error telling me rvm is not recognized.
[15:02:20] centrx: HalcyonicStorm, hey dorkus
[15:02:37] Gribo: I used the installer from rubyinstaller website so I should work I think
[15:03:13] beauby: Gribo: try opening a new terminal
[15:03:32] HalcyonicStorm: centrx: good day to you, sir
[15:04:20] centrx: Gribo, Sounds like you need to install 'rvm'. RVM is a tool for encapsulating different versions of Ruby into different environments
[15:04:54] vasilakisfil__: has joined #RubyOnRails
[15:04:54] eoy: has joined #RubyOnRails
[15:06:11] Brando753: has joined #RubyOnRails
[15:07:52] garrypolley: has joined #RubyOnRails
[15:08:30] theery: has joined #RubyOnRails
[15:08:51] puppeh: any idea why after upgrading from 3.2 to 4.0 this no longer works? http://pastie.org/private/cex5tlniulpye8joef80gg
[15:08:51] shinnya: has joined #RubyOnRails
[15:08:51] oflannabhra: has joined #RubyOnRails
[15:10:25] kitsuneyo: i put "sanitize("#{page_title} | #{base_title}")" in my title_helper method and it works :DDD
[15:11:34] centrx: puppeh, Where is the 'earth' coming from in the routes?
[15:13:39] puppeh: oh sry forgot to say that this is a namespace in the routes. the controller is called Earth::UserSetingsController
[15:14:30] tubbo: Earf::WelcomeController ;)
[15:14:57] jobewan: has joined #RubyOnRails
[15:15:06] platosha_: has joined #RubyOnRails
[15:15:15] tubbo: puppeh: you're not passing an :id into that route, so it's throwing an error
[15:15:31] puppeh: yes, makes sense, but I'm trying to find the relevant change (commit) that went into rails 4.0
[15:15:38] puppeh: because this works with rails 3.2
[15:15:45] puppeh: gone through actionpack changelog, couldn
[15:15:49] tubbo: puppeh: i highly doubt that
[15:15:52] puppeh: ..couldn't find anything related
[15:16:23] tubbo: puppeh: i've had that error many times in my life, and especially when i was a wee young'in working on rails 3.x apps
[15:16:37] tubbo: if you don't provide a part of the route that's required, rails will throw an error.
[15:16:52] puppeh: hm..strange that it works on 3.2
[15:16:59] puppeh: yeah that what I knew too
[15:17:23] tubbo: puppeh: hmm, maybe we're not seeing the real problem here.... can you run `rake routes | git grep earth_login_path`?
[15:17:40] tubbo: you should get back a single result, just to confirm if that route is pointing to the right place
[15:18:01] tubbo: puppeh: also noticed you have `:as => :user_setting_hide_shop_new`, that changes the name of the route path helper right?
[15:18:10] poli: has joined #RubyOnRails
[15:19:40] kies^: has joined #RubyOnRails
[15:20:01] puppeh: yes, so should I also update get :new_setting ?
[15:20:06] puppeh: to get :user_setting_hide_shop_new ?
[15:20:11] tubbo: puppeh: give it a shot
[15:20:38] tubbo: puppeh: though usually `get|post|put` is supposed to take in the name of the method on the controller, *not* the route name
[15:20:52] tubbo: unless this is some kind of integration test
[15:20:56] dopie: ugh... still struggling with this active admin / country-state select
[15:21:09] Phoop: Anyone else experienced that an integer (127194368839780000 in this case) begin passed into an Sidekiq args gets converted to float before ending in Redis?
[15:21:13] dopie: can anyone pop in here to help me I got the jQuery working
[15:21:22] shmoon_: so when I specify a file in config.assets.precompile in the configuration file(s), the main purpose of that is to generate the compiled version via sprockets when I run the bundle exec rake assets:precompile, am I right ?
[15:21:35] tubbo: dopie: where da codez at
[15:21:44] dopie: tubbo, will put it up
[15:22:03] tubbo: dopie: you still trying to get carmen-rails working or are you just doing it yourself now?
[15:22:43] tubbo: shmoon_: yeah it's to define additional manifest files for sprockets, which should be built to ./public/assets and able to be included in your app in production
[15:23:01] dopie: tubbo, a mixture of both
[15:23:45] gavit: anyone use devise yet? is it rails g active_admin:install && rails g active_admin:install User
[15:24:04] tubbo: gavit: "yet?" you know it's been out for 5 years right? ;)
[15:24:13] puppeh: doesn't work
[15:24:16] puppeh: it needs the route name
[15:24:32] tubbo: puppeh: get does? interesting. are you in a controller test right now or some kind of integration test?
[15:24:42] puppeh: controller
[15:24:44] tubbo: dopie: sounds like par for the course
[15:24:50] gavit: tubbo: s/yet// :)
[15:25:18] puppeh: but why should it require the :id parameter? because I've defined so in the routes?
[15:25:24] gavit: its unclear to me if I should run both or just one ;(
[15:25:29] puppeh: the route is this: get '/user_setting/:id/new', :action => :new_setting, :as => :user_setting_hide_shop_new
[15:25:58] tubbo: gavit: well if this is devise you want `rails g devise:install` and `rails g devise User`...but you were talking about active_admin:install, which is not devise at all (though it might use devise)
[15:26:30] tubbo: puppeh: why are you customizing routes like that instead of using the RESTful Resources DSL?
[15:26:40] puppeh: tubbo: that's not code I wrote and I cannot change it atm
[15:26:51] puppeh: I'm only upgrading to rails 4.0, and believe that just the test is wrong
[15:26:54] bePolite: has joined #RubyOnRails
[15:27:09] Palsson: has joined #RubyOnRails
[15:27:10] tubbo: puppeh: the route is wrong because it doesn't follow a conventional approach to Rails development...
[15:27:11] puppeh: well changing the test to ` get :new_setting, id: user.id ` fixes it
[15:27:14] gavit: tubbo: yeah sorry, I'm trying to get activeadmin+devise
[15:27:22] tubbo: puppeh: then that's all you need to worry about! :) move on haha
[15:27:52] tubbo: gavit: dunno, haven't used AA in forever. but if the docs tell you to do it you probably should...
[15:28:34] gavit: tubbo: did you find a replacement?
[15:29:19] DaniG2k: has joined #RubyOnRails
[15:30:33] tubbo: gavit: i just bake the admin into the regular routes or build an admin interface myself from scratch. honestly with rails and something like foundation or bootstrap, it takes a lot less time than you'd think.
[15:31:05] tubbo: probably takes me just about as much time to build a beautiful admin panel from scratch than it did to fight with active_admin to get it up and running the way i want
[15:32:15] jcm: has joined #RubyOnRails
[15:32:29] dopie: tubbo, https://gist.github.com/staycreativedesign/3abc4f93b89173fe855c is any other information needed?
[15:32:50] bruno-: has joined #RubyOnRails
[15:33:30] erGoline: has joined #RubyOnRails
[15:33:41] Gribo: Do most Rails developers use linux?
[15:34:15] centrx: Gribo, There are a good number on Mac as well
[15:34:17] tubbo: Gribo: i wish! most of us use OS X though in my experience.
[15:34:32] tubbo: if OS X had containers i'd never think of moving to Linux, but alas...
[15:35:37] da3mian: has joined #RubyOnRails
[15:36:02] erGoline: Hi! I need to "track" all objects (models) used in a request. Immagine I have to populate an array that I use in a after_filter. Any idea on how achieve this?
[15:37:59] tubbo: dopie: do you know how to set values in jQuery? it's pretty easy: $('#your-element').val('new value');
[15:37:59] kitsuneyo: has joined #RubyOnRails
[15:38:18] dopie: tubbo, yes I did that in the js file
[15:38:52] podman: has joined #RubyOnRails
[15:40:10] tubbo: dopie: ok cool. not sure how carmen works or anything but i imagine you have to call back to Carmen and get all the states in that country, right?
[15:40:42] eoy: has joined #RubyOnRails
[15:40:42] vasilakisfil__: has joined #RubyOnRails
[15:42:47] tubbo: dopie: check out this section of the carmen-demo-app README, it tells you how to do exactly what you're doing: https://github.com/jim/carmen-demo-app#setup
[15:43:01] drollwit: has joined #RubyOnRails
[15:43:02] tubbo: dopie: scroll down to the JS (it's actually CoffeeScript) part
[15:43:03] andrew-l: has joined #RubyOnRails
[15:43:53] tubbo: dopie: it seems that he had to make an additional controller action https://github.com/jim/carmen-demo-app/blob/master/app/controllers/orders_controller.rb#L8-L10 and partial https://github.com/jim/carmen-demo-app/blob/master/app/views/orders/_subregion_select.html.erb to get the job done
[15:43:58] gambl0re: has joined #RubyOnRails
[15:44:25] tubbo: looks like he's just making an ajax GET request, passing over the country code selected, and loading the HTML contents that are returned back to him, which are just a bunch of <option> tags
[15:45:03] tubbo: dopie: it seems he's replacing the whole div, you don't *actually* have to do that...you can just replace the html inside the state <select> tag
[15:45:03] andrew-l: i'm looking for some help with getting validation error messages and the locales file working together
[15:45:07] ascarter: has joined #RubyOnRails
[15:45:29] lindii_: has joined #RubyOnRails
[15:46:13] MMM: has joined #RubyOnRails
[15:46:40] MMM: has left #RubyOnRails: ()
[15:47:22] h4ckurate: has joined #RubyOnRails
[15:49:22] riotjones: has joined #RubyOnRails
[15:49:36] tubbo: andrew-l: the syntax is kinda weird. i found https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en-CA.yml to be a helpful resource, it has "complete" locale files that show you where all the message overrides are hiding
[15:50:19] imkj: has joined #RubyOnRails
[15:50:25] poli: Is it okay to have a Party class and a Organization and a Person class with Single Table Inheritance having the Party class as parent? Is there any downsides to that?
[15:50:49] Gribo: tubbo, I'm using windows and everytime I do mimic something from the tutorial I have to fix a windows related problem.
[15:50:53] tubbo: poli: yeah, there are lots of downsides to single-table inheritance. also your STI doesn't make sense, how can a Person be an Organization?
[15:51:05] tubbo: Gribo: you should definitely try to develop your stuff on a linux VM
[15:51:17] poli: tubbo: People and Organizations both inherit from Party
[15:51:39] imkj: Gribo: Linux is definitely the way to go; Mac is OK too.
[15:51:48] tubbo: poli: i get that, it doesn't make sense.
[15:51:56] tubbo: poli: an Organization should have many People...
[15:52:05] poli: tubbo: So Party has variable number of addresses, email addresses, phone numbers etc.
[15:52:34] centrx: Windows is really only good for development if you're using C#/ASP.NET
[15:52:38] Gribo: Okay I'll try linux.
[15:52:44] poli: tubbo: And so People and Organizations have variable numbers of addresses, email addresses, phone numbers etc inheriting from Party
[15:52:44] Gribo: Yeah I used to develop in ASP.net
[15:52:56] poli: tubbo: That's text book, actually.
[15:53:08] imkj: centrx: From what I hear, PHP support is OK these days too. I wouldn't know about Rails; I use my Debian box for that.
[15:53:10] lapideviridi: has joined #RubyOnRails
[15:53:27] towski_: has joined #RubyOnRails
[15:53:45] qejk: has joined #RubyOnRails
[15:53:56] DoctorMonocular: has joined #RubyOnRails
[15:54:01] tubbo: poli: i still don't understand how a Person is a Party. unless you're talking about me of course OHHHHHHH
[15:54:03] tubbo: ACTION parties
[15:55:04] poli: tubbo: Just really gathering the common relationships of Person and Organization. So you don't need different PhoneNumber classes and you don't need polymorphic associations between PhoneNumber and Organization and PhoneNumber and Person.
[15:55:19] Gribo: centrx, Can you send me that tutorial link you posted earlier?
[15:55:47] uris: has joined #RubyOnRails
[15:55:49] poli: tubbo: be right back, luch time.
[15:55:49] renews: has joined #RubyOnRails
[15:55:51] zpe: has joined #RubyOnRails
[15:55:56] treehug88: has joined #RubyOnRails
[15:56:00] centrx: Gribo, https://www.railstutorial.org
[15:56:01] kitsuneyo: has joined #RubyOnRails
[15:56:41] qejk: has joined #RubyOnRails
[15:57:30] theery: has joined #RubyOnRails
[15:57:36] tubbo: poli: seems more complicated than it needs to be, and polymorphism definitely makes more sense than STI
[15:57:44] treehug88: we have a decnt sized rails app that provides a nice API, which is currently undocumented. What's the state-of-the-art (and/or the easiest thing to do) to document this API for consumers (that might be working in different languages and/or code bases)
[15:58:43] tubbo: poli: i'd just have Organization have_many Person, you can make PhoneNumber and Address whole model if you want to, and make them polymorphic. makes a lot more sense to me instead of trying to be too slick with the data design. it's always better to separate concerns.
[15:59:23] tubbo: treehug88: there's a few options...we personally use the Slate middleman template to write a "guides" site for our platform and API.
[15:59:25] Scripore: has joined #RubyOnRails
[15:59:38] Coldblackice: has joined #RubyOnRails
[15:59:40] tubbo: you can also use Relish if you wrote your docs in Cucumber, which has the added benefit of being testable
[16:02:16] jcm: has joined #RubyOnRails
[16:02:21] treehug88: thanks tubbo, that's useful. Anything where the docs are embedded (say in comments) in the rails app?
[16:02:49] garrypolley: has joined #RubyOnRails
[16:06:40] treehug88: anyone ever use this and have positive/negative things to say? https://github.com/Apipie/apipie-rails
[16:07:20] andrew-l: tubbo: thanks! i'll check it out
[16:14:10] rickmasta: has joined #RubyOnRails
[16:14:20] strcmp1: has joined #RubyOnRails
[16:19:06] atmosx: Hello. When creating my scaffold I forgot a param. So I added it everywhere manually (views, models, schema, etc.) .. The problem is that validations for this new field, do not work. Any idea why?
[16:19:14] atmosx: I probably need to add something someplace.
[16:20:01] beauby: atmosx: Could you provide a gist?
[16:20:14] atmosx: beauby: sure
[16:20:19] Altonymous: has joined #RubyOnRails
[16:20:58] tubbo: treehug88: yeah you could use RDoc but honestly i've never found RDoc-generated docs to be better than API docs written "by hand".
[16:21:01] srinidhi: has joined #RubyOnRails
[16:21:23] tubbo: treehug88: also makes less sense in an HTTP API because your documentation will look like a library, not an API. it will be harder to show example requests and responses, etc.
[16:21:35] Altonymous: Trying to setup fitures for a legacy database. I have an association between two models.. the 2nd model belongs to the first. However, the 2nd model does not use the primary key for the relationship. instead it uses another unique column .. Aside from explicitly setting the value for this column in both fixtures, do I have any other options?
[16:21:48] atmosx: beauby: https://gist.github.com/atmosx/4555f71bb1ec561d1c01
[16:22:04] treehug88: thanks tubbo. At this point we're going from 'no docs' to 'some docs' so (almost) anything (sane) is an improvement
[16:22:48] atmosx: Altonymous: I don't think so.
[16:23:00] Altonymous: In essence there is a legacy auto-incrementing column and a new column that???s a UUID on the primary table, on the 2nd table it uses the new UUID column, but the model can???t be switched to use the new UUID column yet.
[16:24:15] portiad: has joined #RubyOnRails
[16:25:31] nettoweb: has joined #RubyOnRails
[16:26:23] [Butch]: has joined #RubyOnRails
[16:27:22] nettoweb: guys, I often heard about 'Zero Downtime Deployment With Unicorn And Capistrano' but never saw how to do zero deployment downtime with passenger, do you know someting about? Im wanting to try but usually the articles talk about unicorn ou maybe puma, but I've never seen about passenger.
[16:27:23] bricker: has joined #RubyOnRails
[16:27:53] tubbo: nettoweb: you can do it with passenger enterprise IIRC, but not passenger open-source
[16:28:09] tubbo: and all you do is just send that SIGHUP signal to the Passenger master process rather than Unicorn :)
[16:28:49] robbyoconnor: has joined #RubyOnRails
[16:28:54] richipargo: has joined #RubyOnRails
[16:29:09] nettoweb: tubbo so with passenger open source that's not possible? Maybe this is why I often seen about unicorn and puma so
[16:29:25] tubbo: not that i know of
[16:30:41] lucha: has joined #RubyOnRails
[16:30:57] rakm: has joined #RubyOnRails
[16:32:06] garrypolley: has joined #RubyOnRails
[16:32:15] beauby: atmosx: when you say it does not work, what do you mean?
[16:32:21] tubbo: bricker: zero-downtime deploys?
[16:33:03] bricker: it's built-in to passenger enterprise but there are many other ways to do it while still using passenger open-source
[16:33:25] beauby: atmosx: AFAIK validations are not ran with new, only when you attempt to save the object
[16:33:42] atmosx: beauby: the unit test should fail, but it doesn.t
[16:33:51] garrypolley_: has joined #RubyOnRails
[16:34:21] nettoweb: tubbo I created a droplet on DO with nginx/puma instead nginx/passenger (production) and was worst than passenger, next time I'll try unicorn because I really need to improve my deploy, it takes about 1 minute loading app, and using Unicorn there some options with workers to keep my app running
[16:34:43] nettoweb: tubbo Do you already tested passenger/puma/unicorn?
[16:35:08] DoctorMonocular: has joined #RubyOnRails
[16:35:51] gambl0re: has joined #RubyOnRails
[16:36:30] atmosx: beauby: since I have uniqiness: true and a fixture with the same id_number, logically the test should fail becuase I'm explicitly using the fixture's id_number. But let me check manually again
[16:37:02] Lightsword: has joined #RubyOnRails
[16:37:08] drollwit: has joined #RubyOnRails
[16:37:49] atmosx: beauby: when I check manually (trying to add user with same id_number as one of the seed data) it comes up with an error, so the validation works...
[16:37:55] atmosx: should i .save somewhere?
[16:39:06] higuys: has joined #RubyOnRails
[16:40:04] treehug88: recreate it with the generator under a different name (and with all the required params) and see what's different
[16:43:33] Altonymous: has joined #RubyOnRails
[16:44:22] Scripore: has joined #RubyOnRails
[16:44:46] artto: has joined #RubyOnRails
[16:46:23] JoshL_: has joined #RubyOnRails
[16:47:19] johntrails: has joined #RubyOnRails
[16:47:35] renanoronfle: has joined #RubyOnRails
[16:47:47] michaeldeol: has joined #RubyOnRails
[16:48:18] johntrails: Can smoeone help me figure something out. I have a app connected to 2 database... through the rails console i can access individual database from each db.. but when I call it via the rails app itself and try to use a view/controller that calls that model.. I get the error "Could not load 'active_record/connection_adapters/sqlserver_adapter'. Make sure that the adapter in config/database.yml"
[16:48:33] johntrails: if my config was off, shouldnt I be able to not access it via rails console ?
[16:49:08] nettoweb: tubbo can you tell me why I cant do with open source but can with entrerprise? there's some big difference between both versions?
[16:49:54] renews: has joined #RubyOnRails
[16:49:58] gambl0re: has joined #RubyOnRails
[16:50:13] kitsuneyo: has joined #RubyOnRails
[16:50:24] tubbo: nettoweb: yeah. enterprise costs money.
[16:51:07] nettoweb: tubbo hehe, some technology differences that would be intereting I know?
[16:51:34] tubbo: first result
[16:51:43] arBmind: has joined #RubyOnRails
[16:52:33] towski_: has joined #RubyOnRails
[16:53:41] gavit: when trying omniauth, can you somehow bypass the url req of fb? can I e.g. use my hostfile to fake the domain?
[16:54:01] nettoweb: tubbo one thing I think is concurrency and multi thread, maybe that's why I cant get zero downtime with passenger
[16:54:27] artto_: has joined #RubyOnRails
[16:54:28] The_Phoenix: has joined #RubyOnRails
[16:54:34] gambl0re: in order to get a jr.rails developer position what should i be able to do?
[16:54:50] Rylee: learn fast
[16:54:58] centrx: Sing a song
[16:55:17] gambl0re: what should i be able to do then just create a crud app
[16:55:36] centrx: That's a good start
[16:55:42] centrx: gambl0re, It depends on the company/position
[16:56:08] centrx: gambl0re, Some positions might require you to be smart and quick learning -- without even much experience in Rails
[16:56:13] gambl0re: i know...but in genearl what should i be able to do
[16:56:20] centrx: CRUD app is good
[16:56:39] gambl0re: and should i be fairly fluent in mysql?
[16:56:39] ermacaz: has joined #RubyOnRails
[16:56:55] Sylario: Mysql certainly not
[16:57:07] centrx: gambl0re, Solid database fluency is valuable yes
[16:57:38] DoctorMonocular: has joined #RubyOnRails
[16:58:23] artto_: has joined #RubyOnRails
[16:58:32] DoctorMonocular: has joined #RubyOnRails
[16:59:31] marr: has joined #RubyOnRails
[16:59:45] juanpaucar: has joined #RubyOnRails
[16:59:53] paulcsmith___: has joined #RubyOnRails
[17:00:10] juanpaucar: has joined #RubyOnRails
[17:00:20] dopie: Ok I think this is a better gist
[17:00:22] dopie: https://gist.github.com/staycreativedesign/bb366901681bc5f406f2
[17:00:23] gambl0re: sql/mysql is different?
[17:00:39] dopie: How do I pass the value of country into ALL_STATES ?
[17:01:04] centrx: gambl0re, There's a difference between being fluent in SQL, and being fluent with a specific RDBMS. Database management is more than just SQL queries.
[17:01:16] centrx: gambl0re, Also, different databases do have some variations in syntax
[17:01:38] centrx: johntrails, Do you have the sql server activerecord adapter installed?
[17:02:18] JimmyNeutron: has joined #RubyOnRails
[17:02:34] centrx: dopie, Looks like you want to store what's in ALL_STATES in the database, as opposed to a constant in the code?
[17:03:18] yfeldblum: has joined #RubyOnRails
[17:03:26] chills42: has joined #RubyOnRails
[17:04:53] dopie: centrx, will I want the constant to reflect the states that are available for that current country
[17:05:09] oflannabhra: has joined #RubyOnRails
[17:05:11] dopie: will = well
[17:05:11] yfeldblum: has joined #RubyOnRails
[17:05:48] centrx: dopie, Doesn't seem like it should be constant then, if it's going to change, right?
[17:06:25] zpe: has joined #RubyOnRails
[17:07:09] ermacaz: has joined #RubyOnRails
[17:08:14] ermacaz: does the newest version of rails 3 support ruby 2.2?
[17:08:30] pwnd_nfsw: has joined #RubyOnRails
[17:08:33] renanoronfle: has joined #RubyOnRails
[17:08:58] dopie: centrx, so i should put it in a method instead
[17:09:46] tetraktys: has joined #RubyOnRails
[17:09:47] centrx: dopie, yeah makes sense to me
[17:10:55] johntrails: centrx: yes, it's the reason that I am able to access via rails console
[17:11:09] drale2k_: has joined #RubyOnRails
[17:11:50] centrx: johntrails, Maybe the console is using the development environment but the app is using the production/staging environment?
[17:12:00] tetraktys: has joined #RubyOnRails
[17:12:11] centrx: johntrails, Maybe there is some code in the app that is switch DBs, e.g. certain model uses a different database?
[17:13:23] mwlang: has joined #RubyOnRails
[17:14:31] RegulationD: has joined #RubyOnRails
[17:15:01] mwlang: does anyone know where the 503 error (Server under heavy load) page is for a basic ???out of the box??? configuration of passenger + nginx + RoR4 app is served from? I???m looking for the page in order to change the message that???s displayed.
[17:15:35] lwu_: has joined #RubyOnRails
[17:15:53] jenrzzz: has joined #RubyOnRails
[17:16:50] mwlang: Ah, nevermind, I going to just create the custom error page per the guide: https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#passenger_max_request_queue_size
[17:17:04] umgrosscol: has joined #RubyOnRails
[17:17:05] lwu_: ok. I am registered
[17:17:50] centrx: ermacaz, Probably not officially, but it surely works okay, maybe a few tweaks
[17:17:59] centrx: ermacaz, Ruby's above 1.9 are very compatible with each other
[17:18:09] centrx: backward-compatible that is of course
[17:18:18] dopie: centrx, https://gist.github.com/staycreativedesign/bb366901681bc5f406f2 updated the input
[17:18:55] ascarter: has joined #RubyOnRails
[17:19:01] centrx: dopie, ok yeah, I would probably make it a method in the Carmen::Country model
[17:19:08] qejk: has joined #RubyOnRails
[17:19:32] dopie: how would I do that?
[17:19:47] dopie: since its a gem
[17:19:57] dopie: not sure how I would be go about doing that
[17:21:03] dopie: http://stackoverflow.com/questions/18668645/overriding-model-in-gem-adding-callback-and-methods
[17:22:02] centrx: dopie, oh ok, you don't need to override it necessarily
[17:22:18] centrx: dopie, For example, you can have a library in your code that acts as an interface for the gem
[17:22:57] centrx: dopie, and Carmen::Country.coded(country).subregions is not really that complicated. It's a judgement call whether you want to be its own method. But you may find you want a library to do custom things with the gem (instead of overriding)
[17:23:15] lapide_viridi: has joined #RubyOnRails
[17:23:21] dopie: I really don't need it to be its own method
[17:23:32] dopie: calling it like that is perfectly fine for me
[17:24:25] dopie: Ok so I got the setup right, are my routes correct?
[17:24:29] mikecmpbll: has joined #RubyOnRails
[17:24:50] Maletor: has joined #RubyOnRails
[17:25:04] centrx: looks ok, I'm not a route expert though
[17:25:10] centrx: Does it work?
[17:25:18] bruno-: has joined #RubyOnRails
[17:25:41] centrx: dopie, why do you have get :terms but then get '/xyz' with the slash ?
[17:25:46] finnnnnnnnnnn: has joined #RubyOnRails
[17:25:58] cnk: has joined #RubyOnRails
[17:26:04] Papierkorb: has joined #RubyOnRails
[17:26:21] dopie: just doing what the carmen-rails app does
[17:26:29] dopie: get :subregion_options
[17:26:32] dopie: would be the something
[17:27:30] dopie: samething
[17:27:55] Zadrel: has joined #RubyOnRails
[17:28:11] dopie: url = "/admin/ems_organizations/new?parent_region=#{country}"
[17:28:11] dopie: I'm pretty sure url = "/admin/ems_organizations/new?parent_region=#{country}"
[17:28:15] finnnnnnnnnnn: I???ve added a class to my rails project it lives in - app/scrapers/joke_scraper.rb I want to call that class from a rake task. How do I require that class in the rake file?
[17:28:16] dopie: is where i'm wrong
[17:28:32] finnnnnnnnnnn: I???ve tried - task :get => :environment do require "scrapers/competition_scraper" end
[17:28:47] finnnnnnnnnnn: cannot load such file
[17:29:42] givanse: has joined #RubyOnRails
[17:30:05] oflannabhra: has joined #RubyOnRails
[17:30:42] JoshL: has joined #RubyOnRails
[17:30:54] Zadrel: hello there! anyone knows how to check a Paperclip's attached file type(.gif, .xlsx, .jpeg, .pdf and so on)?
[17:31:18] drollwit: has joined #RubyOnRails
[17:32:18] iamjarvo: has joined #RubyOnRails
[17:32:28] finnnnnnnnnnn: ohh, sorted my problem. Thanks
[17:32:49] finnnnnnnnnnn: (there was no need to require, => :environment did it for me
[17:32:52] iamjarvo: has joined #RubyOnRails
[17:33:14] danman: has joined #RubyOnRails
[17:33:38] iamjarvo: has joined #RubyOnRails
[17:33:53] nahtnam: has joined #RubyOnRails
[17:34:22] iamjarvo: has joined #RubyOnRails
[17:34:35] garrypolley: has joined #RubyOnRails
[17:36:01] lwu: has joined #RubyOnRails
[17:36:15] dionysus69: has joined #RubyOnRails
[17:36:21] alphaatom: has joined #RubyOnRails
[17:37:07] jtperreault: Zadrel: I believe there is a content_type method you can use
[17:38:58] Zadrel: jtperreault: you know if i can use this method to check in the view if the file_type is the one i want? i need to display different icons according to the file_type
[17:39:08] platosha: has joined #RubyOnRails
[17:40:21] ascarter: has joined #RubyOnRails
[17:40:28] rubyonrailed: has joined #RubyOnRails
[17:41:17] safeforge: has joined #RubyOnRails
[17:41:37] rubyonrailed: can I use rspecs `let` with capybara?
[17:41:42] Aswebb_: has joined #RubyOnRails
[17:42:17] Mia: has joined #RubyOnRails
[17:42:17] Mia: has joined #RubyOnRails
[17:42:22] jtperreault: Zadrel: sounds like you could, returns a string for me. app I'm working on only attaches images, calling that method returns "image/jpeg".
[17:42:24] bricker: rubyonrailed: yes
[17:42:45] Zadrel: jtperreault: thx
[17:42:54] jtperreault: Zadrel: so, you could set up a case that displays w/e icon you need based on that output
[17:44:06] renews: has joined #RubyOnRails
[17:44:44] hahuang65: has joined #RubyOnRails
[17:45:20] romdi`: has joined #RubyOnRails
[17:47:46] riotjones: has joined #RubyOnRails
[17:49:03] kitsuneyo: has joined #RubyOnRails
[17:51:23] cornerma1: has joined #RubyOnRails
[17:53:09] arup_r: has joined #RubyOnRails
[17:53:11] rickmasta: has joined #RubyOnRails
[17:53:57] lxsndl: has joined #RubyOnRails
[17:54:13] jenrzzz: has joined #RubyOnRails
[17:54:59] siddart: has joined #RubyOnRails
[17:55:23] kitsuneyo: is there a conventional way to style file_field?
[17:55:44] kitsuneyo: i've seen a couple of methods, they all look pretty awkward
[17:56:17] Marquel: has joined #RubyOnRails
[17:57:57] baweaver: has joined #RubyOnRails
[17:58:48] RegulationD: has joined #RubyOnRails
[18:00:10] Scripore: has joined #RubyOnRails
[18:00:36] jamgood96: has joined #RubyOnRails
[18:02:02] fmcgeough: has joined #RubyOnRails
[18:02:31] ascarter: has joined #RubyOnRails
[18:03:46] safeforge: has joined #RubyOnRails
[18:11:40] jamgood96: will the _destroy parameter work for has_one associations that are created via the build_ command?
[18:11:59] chipotle: has joined #RubyOnRails
[18:12:06] platzhirsch: has left #RubyOnRails: ()
[18:12:11] bradleyprice: has joined #RubyOnRails
[18:13:44] makerops_: has joined #RubyOnRails
[18:14:37] makerops_: how do I utilize the namespace of a rake task within the spec file itself?
[18:16:31] atmosx: What is the proper way to re-install new data added into db/seeds.rb ... db:reset db:seed ?
[18:17:16] makerops_: https://gist.github.com/anonymous/d91db81f86f9891859fb
[18:18:13] makerops_: I have this rake task,and I want to be able to access t.pattern, within the t.name.rb file
[18:19:16] ep: has joined #RubyOnRails
[18:20:33] DLSteve: has joined #RubyOnRails
[18:22:11] xicreative: has joined #RubyOnRails
[18:23:36] baweaver: has joined #RubyOnRails
[18:23:41] kidoz: has joined #RubyOnRails
[18:23:58] DEA7TH: has joined #RubyOnRails
[18:25:29] drollwit: has joined #RubyOnRails
[18:26:05] robbyoconnor: has joined #RubyOnRails
[18:27:14] bricker: atmosx: you can also just run the file with rails runner
[18:28:50] j_mcnally: has joined #RubyOnRails
[18:29:32] djbkd: has joined #RubyOnRails
[18:31:19] smathy: has joined #RubyOnRails
[18:32:51] EXCHGR: has joined #RubyOnRails
[18:33:32] atmosx: bricker: I don't know what rails runner is
[18:34:12] bricker: atmosx: `rails runner db/seeds.rb`
[18:35:04] atmosx: oh but you have to reset anyway
[18:35:20] garrypolley: has joined #RubyOnRails
[18:35:25] bricker: atmosx: yes, seeds aren't incremental, they're meant to be run once. If you want to add data incrementally use a migration.
[18:35:31] werelivinginthef: has joined #RubyOnRails
[18:36:00] cored_: has joined #RubyOnRails
[18:36:25] atmosx: bricker: I will look into it.
[18:36:35] bricker: okeledokele
[18:37:28] cored_: has left #RubyOnRails: ()
[18:37:59] cored: has joined #RubyOnRails
[18:38:18] cored: I have some records on a table associated to another model, but everytime I do this model.association.exists?
[18:38:20] renews: has joined #RubyOnRails
[18:38:22] cored: it's returns false
[18:38:32] Lightsword: has joined #RubyOnRails
[18:38:48] cored: according to the documentation http://apidock.com/rails/ActiveRecord/Base/exists%3F/class it should return true
[18:39:04] patrick99e99: has joined #RubyOnRails
[18:39:52] alexclark: has joined #RubyOnRails
[18:40:19] polpak: has joined #RubyOnRails
[18:40:22] alexclark: does rails create the attr_accessors for your db columns on boot up or is that done using method_missing?
[18:40:35] erich: has joined #RubyOnRails
[18:41:10] patrick99e99: hey rails friends.. I am trying to post data containing an array with curl and I do not know what the hell I am doing wrong. Can anyone here help? I am doing: curl -X POST -d "{\"title\":{\"child_ids\":[1,2,3]}}" ... my create actions shows params getting parsed as: {"{\"title\":{\"child_ids\":"=>{"1,2,3"=>{"}}"=>nil}}, Does anyone know why??!
[18:41:26] AzaToth: has joined #RubyOnRails
[18:41:37] bricker: alexclark: it defines the methods proper, method_missing is prohibitively slow
[18:41:40] centrx: alexclark, done on start, as method_missing would be slow
[18:41:52] centrx: beaten again!
[18:42:10] alexclark: bricker: centrx: thanks!
[18:42:14] bradleyprice: has joined #RubyOnRails
[18:42:20] xicreative: patrick99e99: Your recognizes the request as JSON?
[18:42:50] patrick99e99: params shows "format"=>"json"
[18:44:24] ivanskie: has joined #RubyOnRails
[18:47:55] patrick99e99: ok nevermind.. ill post on sof
[18:50:24] juanpaucar: has joined #RubyOnRails
[18:50:42] tubbo: patrick99e99: http://i.imgur.com/i1Ok6qN.gif
[18:52:16] garrypolley: has joined #RubyOnRails
[18:52:18] tubbo: patrick99e99: that's pretty weird. can you try doing it without escaping? e.g. '{ "title": { "child_ids": [1,2,3] } }'
[18:52:28] leesharma: has joined #RubyOnRails
[18:53:35] arup_r: How can I wrap the belongs_to object inside the formbuilder object.. Current way wouldn't work
[18:53:36] arup_r: https://gist.github.com/aruprakshit/1448253bc3e1cef453a1
[18:53:59] dopie: has joined #RubyOnRails
[18:54:24] Papierkorb_: has joined #RubyOnRails
[18:54:52] ascarter: has joined #RubyOnRails
[18:54:56] alexclark: has joined #RubyOnRails
[18:54:58] Scripore: has joined #RubyOnRails
[18:55:35] arup_r: Payment belongs_to booking
[18:58:16] Lightsword: has joined #RubyOnRails
[18:59:28] tubbo: arup_r: 'f' should *not* ever be an object...
[18:59:31] tubbo: it should be a form object
[18:59:33] tubbo: s/object/model
[18:59:43] workmaster2n: has joined #RubyOnRails
[18:59:44] tubbo: arup_r: it should be a form object, not a model. apologies if i confused ya :)
[18:59:51] arup_r: Yes. I get it
[19:00:34] arup_r: Can I use field_for with belongs_to association ? I am trying to avoid select_tag ,,,
[19:00:46] workmaster2n: why do rake tasks behave differently in production than development? In particular, why do I need to explicitly include models used in rake tasks in production but not in development?
[19:01:57] erich: has joined #RubyOnRails
[19:02:07] atmosx: arup_r: when you say 'belongs_to association' you mean something like: Booking.first.payments.all ?
[19:02:56] arup_r: Booking has_many payments and Payment belongs_to booking
[19:03:03] atmosx: yeah I got it
[19:03:06] atmosx: it figures
[19:03:38] atmosx: arup_r: where is 'f' defined?
[19:04:23] TomyLobo: has joined #RubyOnRails
[19:04:26] leifcr: has joined #RubyOnRails
[19:04:32] arup_r: https://gist.github.com/aruprakshit/1448253bc3e1cef453a1#file-show-html-L2
[19:11:16] tubbo: arup_r: locals: { f: f.object.booking } is where you fucked up
[19:11:20] drale2k_: has joined #RubyOnRails
[19:11:21] tubbo: arup_r: f should always be the form object
[19:11:34] arup_r: tubbo, I got it..
[19:11:59] arup_r: :) I am asking any other way to use it
[19:12:25] hazelux: has joined #RubyOnRails
[19:12:35] arup_r: Any way to wrap the booking object with form object of @payment..
[19:12:58] arup_r: If not possible I'll go with *_tag helper
[19:14:40] shilon: has joined #RubyOnRails
[19:15:16] hazelux: What's a good way to show a modal only once, after a user signs up? Is there any way I can call javascript from the controller?
[19:15:32] pixelhandler: has joined #RubyOnRails
[19:16:30] xicreative: hazelux: Activate a partial containing the JS with a flash?
[19:17:00] ivanskie: question for ppl using ActiveAdmin.. what do you do when a model has a belongs_to another model that doesn't have :name.. ? in my activeadmin form for orders, the dropdown for Customer lists object.. (Customer only has company_name attribute).. activeadmin's doc didnt help.. any ideas?
[19:17:01] iamjarvo: has joined #RubyOnRails
[19:17:25] cac: has joined #RubyOnRails
[19:17:44] ivanskie: i've even tried adding self declation to customer controller to spit out company_name.. didn't help
[19:18:53] ratmav: has joined #RubyOnRails
[19:19:08] safeforge: has joined #RubyOnRails
[19:19:16] hazelux: xicreative: Aha that sounds interesting. Something like if flash[:onboarding] render partial?
[19:19:39] drollwit: has joined #RubyOnRails
[19:19:54] ivanskie: google to the rescue.. nevermind :)
[19:21:19] xicreative: hazelux: Yeah, something like that. ;-)
[19:21:46] nfk: has joined #RubyOnRails
[19:22:11] hazelux: Great idea. Thanks xicreative!
[19:23:25] tubbo: arup_r: no
[19:25:27] alphaatom: has joined #RubyOnRails
[19:25:59] gambl0re: has joined #RubyOnRails
[19:26:32] alphaatom: has joined #RubyOnRails
[19:27:58] harisamin: has joined #RubyOnRails
[19:28:47] leifcr: has joined #RubyOnRails
[19:29:59] Dzejmskrokan: has joined #RubyOnRails
[19:30:27] davidw: has joined #RubyOnRails
[19:32:19] Schalla: has joined #RubyOnRails
[19:32:28] renews: has joined #RubyOnRails
[19:33:11] nofxx: has joined #RubyOnRails
[19:38:38] DCio: has joined #RubyOnRails
[19:39:18] Trynemjoel: has joined #RubyOnRails
[19:39:19] dman777_alter: has joined #RubyOnRails
[19:39:55] dman777_alter: if error_list_generator is private function in a controller, is it allowed to return a value to the caller? error_list = error_list_generate()
[19:40:09] DCio: Anyone have experience running background processes on heroku? I'm trying to wrap my head around it and i cant :/
[19:40:39] davidw: Any ideas why this passes it { is_expected.to validate_presence_of(:name) } - with an after_initialize that ensures there is a plan, but fails with def plan super || (self.plan = FreePlan.new) ? end
[19:41:28] jge: has joined #RubyOnRails
[19:42:35] jge: Hey all, I was running (redmine) with thin but I've switched over to Passenger but I'm getting this: http://pastie.org/private/lcuaxcsuywhytigbkrba
[19:42:47] jge: anyone could shed some light please?
[19:42:56] jge: I'm running Ubuntu 14.04 LTS
[19:43:29] jge: with ruby1.9.1 (ubuntu repos)
[19:43:41] RandyT: has joined #RubyOnRails
[19:44:48] Trynemjoel: has joined #RubyOnRails
[19:44:53] crimson_penguin: has left #RubyOnRails: ("["Textual IRC Client: www.textualapp.com"]")
[19:44:54] VeryBewitching: has joined #RubyOnRails
[19:44:57] maxdoubt: has joined #RubyOnRails
[19:46:14] d2dchat: has joined #RubyOnRails
[19:47:01] tubbo: jge: looks like the rails version is higher than you/the app expects it to be. the fact ruby 1.9.1 is installed is alarming...that's very out-of-date (like, not supported anymore) and has a couple security holes that haven't been officially patched
[19:47:43] tubbo: jge: i would recommend uninstalling ruby and using ruby-install to build a 2.x version of ruby from source, as building from source is the recommended way to install ruby on your machine. OS package maintainers tend to be woefully out of date for a variety of reasons.
[19:48:04] jenrzzz: has joined #RubyOnRails
[19:48:09] diegoviola: has joined #RubyOnRails
[19:48:57] jge: tubbo: yeah I installed both (ruby and redmine) from repos and like you said they're awfully out of date
[19:49:45] rogue_koder: has joined #RubyOnRails
[19:50:48] arup_r: has joined #RubyOnRails
[19:50:48] Trynemjoel: has joined #RubyOnRails
[19:51:46] Scriptonaut: has joined #RubyOnRails
[19:52:18] Scriptonaut: According to rspec, this value (account.seats) isn't changing. However I put a binding.pry in there and it is. I can't seem to get it to reload. Can you guys see anything obviously wrong with this way of reloading an object in rpsec on line 3: https://gist.github.com/robins35/4478901c239ad7ea1ef5
[19:53:51] nahtnam: Does heroku run rake db migrate for you?
[19:54:19] blackmesa: has joined #RubyOnRails
[19:54:19] nahtnam: Scriptonaut: Thanks
[19:54:26] Scriptonaut: at least not on my app
[19:54:31] Scriptonaut: maybe there's a way to configure it
[19:55:53] smathy_: has joined #RubyOnRails
[19:56:02] nahtnam: Scriptonaut: Yeah, you would have to fork the ruby buildpack
[19:56:13] nahtnam: if you want it to run rake db:migrate
[19:57:27] rickmasta: has joined #RubyOnRails
[20:00:40] iamjarvo_: has joined #RubyOnRails
[20:01:14] ascarter: has joined #RubyOnRails
[20:01:42] tubbo: web: bundle exec rake db:migrate && bundle exec rails server
[20:02:02] erich: has joined #RubyOnRails
[20:02:20] Trynemjoel: has joined #RubyOnRails
[20:02:52] tubbo: yo this is the most jabroni payment processor i've ever worked with
[20:02:55] tubbo: payu latam: never again
[20:02:56] ascarter: has joined #RubyOnRails
[20:03:20] centrx: !!! You said the word of the day !!!
[20:04:21] alphaatom: has joined #RubyOnRails
[20:08:50] Trynemjoel: has joined #RubyOnRails
[20:10:23] alexclark: has joined #RubyOnRails
[20:10:35] Tuxero: has joined #RubyOnRails
[20:11:18] gavit: so much work to add something like a name to a DeviseUser?
[20:13:30] sbhatore: has joined #RubyOnRails
[20:13:49] drollwit: has joined #RubyOnRails
[20:14:10] workmaster2n: has joined #RubyOnRails
[20:15:15] dman777_alter: hey....I have route for only .json and .csv. I don't want to use .json on the url as a suffix. How can I make it check the header and if it is not csv then default to .json?
[20:16:29] drale2k_: has joined #RubyOnRails
[20:16:32] Criten: dman777_alter: when you define your route you can do :defaults => { :format => 'json' }
[20:17:11] ermacaz: has joined #RubyOnRails
[20:17:51] arBmind1: has joined #RubyOnRails
[20:18:28] Criten: dman777_alter: you could also set request.format explicitly too...
[20:18:33] Criten: in a before_filter or something
[20:19:09] workmaster2n: has joined #RubyOnRails
[20:19:29] dman777_alter: Criten: with :defaults => { :format => 'json' } it ignores the header if I have text/csv in it
[20:20:15] dman777_alter: Criten: is there anyway around that? I would like to use the :defaults if possible
[20:20:29] Criten: dman777_alter: hmm.. i dont think it should ignore them
[20:20:40] Criten: does if you dont have the defrault
[20:21:45] dman777_alter: Criten: no, if I take the default off it respects the request header when I have the text/csv
[20:22:05] vickleton: has joined #RubyOnRails
[20:22:38] lwu_: has joined #RubyOnRails
[20:22:56] baweaver: has joined #RubyOnRails
[20:24:15] Scripore: has joined #RubyOnRails
[20:24:32] dopie: tubbo, got it to work
[20:24:41] tubbo: .........................................
[20:24:48] tubbo: dopie: cool
[20:25:42] strcmp1: has joined #RubyOnRails
[20:26:41] renews: has joined #RubyOnRails
[20:27:45] Lightsword: has joined #RubyOnRails
[20:28:12] djbkd: has joined #RubyOnRails
[20:29:30] tenderlove: has joined #RubyOnRails
[20:30:41] erts: has joined #RubyOnRails
[20:31:00] jcm: has joined #RubyOnRails
[20:31:05] hazelux: has joined #RubyOnRails
[20:34:37] gambl0re: how do you guys plan and structure your database?
[20:35:01] enitiz: has joined #RubyOnRails
[20:36:40] silverdust: gambl0re: There's database normalization
[20:36:41] michael_mbp: has joined #RubyOnRails
[20:37:18] silverdust: 3NF. You could do that in your team without being language/framework specific
[20:37:31] erich: has joined #RubyOnRails
[20:37:33] gambl0re: whats database normalization?
[20:37:41] roolo: has joined #RubyOnRails
[20:37:44] w0rd-driven: has joined #RubyOnRails
[20:38:12] tubbo: ^ literally the most worthless discussion about programming i've ever seen on IRC
[20:38:30] tubbo: and that is saying something
[20:39:07] silverdust: You mean he's trolling?
[20:39:34] andrew-l: has left #RubyOnRails: ("ERC Version 5.3 (IRC client for Emacs)")
[20:39:37] baweaver: has joined #RubyOnRails
[20:39:57] tubbo: silverdust: no, i'm trolling :)
[20:42:36] ap4y: has joined #RubyOnRails
[20:43:46] ten27pm: has joined #RubyOnRails
[20:47:43] Maletor: has joined #RubyOnRails
[20:50:49] yfeldblum: has joined #RubyOnRails
[20:51:13] shinnya: has joined #RubyOnRails
[20:51:44] djbkd: has joined #RubyOnRails
[20:52:56] infocreativosweb: has joined #RubyOnRails
[20:53:22] Trynemjoel: has joined #RubyOnRails
[20:55:41] j0sephandres: has joined #RubyOnRails
[20:55:45] x-light: has joined #RubyOnRails
[20:56:15] siddart: has joined #RubyOnRails
[20:56:20] j0sephandres: Someone knows what this error is: "unknown regexp options - bdy "?
[20:56:23] iamjarvo: has joined #RubyOnRails
[20:58:42] arup_r: ActiveMerchant doco is saying it needs first and last name(https://github.com/activemerchant/active_merchant#usage), but I have creditcard interface which takes full name from UI as an input
[20:58:53] Trynemjoel: has joined #RubyOnRails
[20:59:26] arup_r: so I am thinking I'll split the full name to first and last name and then give it to AM. Am I on correct way ?
[20:59:35] dman777_alter: Criten: can I set the request format inside of the respond_to block?
[21:00:41] tubbo: arup_r: that's not a possibility
[21:00:49] user1138: has joined #RubyOnRails
[21:00:52] tubbo: arup_r: what if my name is Joseph Santa Maria DuBois The Third?
[21:00:59] tubbo: what's my first and last name?
[21:01:05] arup_r: so what should I do ?
[21:01:13] tubbo: arup_r: force the user to type in their first and last name
[21:01:16] iamjarvo: has joined #RubyOnRails
[21:01:16] tubbo: two different inputs
[21:01:40] arup_r: ok... then UI needs to be changed...
[21:02:09] redondos: has joined #RubyOnRails
[21:02:18] jcm: has joined #RubyOnRails
[21:02:39] redondos: hello. how can i change the format of a request? e.g. serve the html template when somebody requests foo.bar
[21:02:52] redondos: rather, /foo.bar
[21:03:22] enitiz: has joined #RubyOnRails
[21:04:44] da3mian: has joined #RubyOnRails
[21:06:02] l0oky: has joined #RubyOnRails
[21:07:25] zorak8: has joined #RubyOnRails
[21:07:59] drollwit: has joined #RubyOnRails
[21:09:17] mordocai: has joined #RubyOnRails
[21:16:20] czerasz: has joined #RubyOnRails
[21:16:54] Dzejmskr_: has joined #RubyOnRails
[21:17:11] bruno-: has joined #RubyOnRails
[21:17:39] drale2k_: has joined #RubyOnRails
[21:20:01] Neener54: has joined #RubyOnRails
[21:20:06] Criten: dman777_alter: you can set it before it yes
[21:20:13] Criten: request.format = 'json'
[21:20:49] renews: has joined #RubyOnRails
[21:21:54] chuy: has joined #RubyOnRails
[21:22:42] fullofcaffeine: has joined #RubyOnRails
[21:22:46] dman777_alter: Criten: thanks
[21:23:01] fullofcaffeine: Does anyone here use `ember-cli-rails`?
[21:24:16] fullofcaffeine: I'm wondering about images, whether to just put all images in public or use the Rails assets pipeline. The problem is that you don't have access to `image_path` helpers in hbs/emblem templates. There are some hacky ways to get around that but they just feel dirty.
[21:24:19] Mendenhall: has joined #RubyOnRails
[21:24:27] fullofcaffeine: If anyone uses it and has any insights, I'd be very eager to know
[21:24:42] fullofcaffeine: and greateful ;)
[21:25:06] ur5us: has joined #RubyOnRails
[21:25:55] leesharma: has joined #RubyOnRails
[21:25:55] barce: has joined #RubyOnRails
[21:26:01] bradleyprice: has joined #RubyOnRails
[21:26:18] fullofcaffeine: s/greateful/grateful
[21:26:49] smathy: has joined #RubyOnRails
[21:27:16] Criten: fullofcaffeine: I dont use ember-cli-rails... but i'd assume ember-cli manages them
[21:27:28] weaksauce: anyone know how to add input types to foundation?
[21:28:21] weaksauce: there are a lot of rules like input[type="text"] and I want to add a new type that inherits all those.
[21:28:27] fullofcaffeine: Yeah, ember-cli-rails seems to be just a way to conveniently package the Ember app within Rails and also when you have portions of the app that don't use Ember, but mixing the assets pipeline with ember-cli is not intended, and it gets messy soon
[21:28:50] fullofcaffeine: For that, ember-rails is a better option. However, looks like ember-rails is being deprecated in favour of ember-cli as of lately, so I've read
[21:30:17] superlou: has joined #RubyOnRails
[21:30:27] enitiz: has joined #RubyOnRails
[21:30:29] fighella: has joined #RubyOnRails
[21:35:30] roolo_: has joined #RubyOnRails
[21:36:24] werd-driven: has joined #RubyOnRails
[21:37:21] ModusPwnens: has joined #RubyOnRails
[21:37:24] gambl0re: what is this? uninitialized constant User::FILL_IN
[21:37:35] gambl0re: validates FILL_IN, presence: true
[21:37:40] hazelux: has joined #RubyOnRails
[21:38:23] Ergo: has joined #RubyOnRails
[21:38:52] gambl0re: whats wrong with that line?
[21:38:53] x-light_: has joined #RubyOnRails
[21:39:01] gambl0re: FILL_IN is deprecated?
[21:39:06] mordocai: has left #RubyOnRails: ("ERC (IRC client for Emacs 24.5.1)")
[21:39:15] ModusPwnens: I have a resource controller with an index action. I want to make a request to it when I perform a search that replaces the current list of resources on the page. However, I also want to make a request to load additional resources when the user tries to paginate through the search results.
[21:39:25] j0sephandres: i'm just starting a project, has some models, some controllers, practically no code lines yet and show me this error: unterminated regexp meets end of file
[21:39:33] tubbo: fullofcaffeine: the thing is, ember-cli already has its own asset pipeline
[21:39:37] tubbo: so you don't need rails'
[21:39:46] ddv: has joined #RubyOnRails
[21:39:59] j0sephandres: please help me
[21:40:02] zorak8: has joined #RubyOnRails
[21:40:04] ModusPwnens: When I do a search, I want to replace the list of resources with that returned from the server. When I do a pagination request, I simply want to append. Is this possible if I'm returning JS from the server? Or should I just do JS with the response with dedicated handlers?
[21:40:08] tubbo: fullofcaffeine: in fact, i'd recommend disabling the asset pipeline and handling all compilation through ember...if i were in your shoes. great gem though, never heard of it but i might play with it later.
[21:40:12] gambl0re: what is this? uninitialized constant User::FILL_IN
[21:40:15] ddv: has joined #RubyOnRails
[21:40:16] gambl0re: validates FILL_IN, presence: true
[21:40:20] gambl0re: whats wrong with that line?
[21:40:20] shinnya: has joined #RubyOnRails
[21:40:23] tubbo: gambl0re: what's FILL_IN?
[21:40:37] zorak8: has joined #RubyOnRails
[21:40:44] FernandoBasso: has joined #RubyOnRails
[21:40:46] tubbo: should be defined in the class level of User, otherwise something is wrong there
[21:41:09] gambl0re: i dont know
[21:41:16] gambl0re: im just following michael hart'ls tutorial book
[21:41:19] null__: has joined #RubyOnRails
[21:41:19] null__: has joined #RubyOnRails
[21:41:23] gambl0re: it says to do that on pg 85
[21:42:01] tdguy: has joined #RubyOnRails
[21:43:27] bruno-: has joined #RubyOnRails
[21:44:23] FernandoBasso: has joined #RubyOnRails
[21:46:23] Scripore: has joined #RubyOnRails
[21:49:07] baweaver: has joined #RubyOnRails
[21:49:13] treehug88: has joined #RubyOnRails
[21:50:48] j0sephandres: come on "unterminated regexp meets end of file"
[21:51:22] towski__: has joined #RubyOnRails
[21:54:14] kadoppe: has joined #RubyOnRails
[21:55:15] rubyonrailed: has joined #RubyOnRails
[21:58:40] j0sephandres: "unterminated regexp meets end of file"
[21:58:57] Dzejmskrokan: has joined #RubyOnRails
[21:59:13] wethu: has joined #RubyOnRails
[21:59:34] pixelhandler: has joined #RubyOnRails
[22:00:58] Scripore: has joined #RubyOnRails
[22:01:36] garrypolley: has joined #RubyOnRails
[22:01:39] workmad3: j0sephandres: it means you forgot to close a regexp
[22:01:51] rubyonra_: has joined #RubyOnRails
[22:02:05] workmad3: j0sephandres: if you wanted someone to point out where, you'd need to show us the code
[22:02:08] drollwit: has joined #RubyOnRails
[22:02:16] jcm: has joined #RubyOnRails
[22:03:49] lwu: has joined #RubyOnRails
[22:03:56] baweaver: has joined #RubyOnRails
[22:04:08] j0sephandres: workmad3 this app, i just started
[22:04:29] j0sephandres: workmad3 it has some model some controllers, but practically no code
[22:05:12] j0sephandres: i think foundation gem it is generating conflicts
[22:06:01] hazelux: devise users: how does one go about adding custom code to a devise controller? Just monkeypatch with controller.class_eval?
[22:06:23] nya: has joined #RubyOnRails
[22:07:15] lwu: has joined #RubyOnRails
[22:07:57] viiralvx: has joined #RubyOnRails
[22:08:09] GreatDanton: has joined #RubyOnRails
[22:10:27] j0sephandres: nah! google it and google it error after error, PHP it's the solution to all those errors, thank you anyway.
[22:13:46] allcentury: has joined #RubyOnRails
[22:14:43] DEA7TH: has joined #RubyOnRails
[22:14:43] baweaver: has joined #RubyOnRails
[22:14:43] null__: has joined #RubyOnRails
[22:14:43] null__: has joined #RubyOnRails
[22:14:59] renews: has joined #RubyOnRails
[22:15:25] jenrzzz: has joined #RubyOnRails
[22:15:48] milesforrest: has joined #RubyOnRails
[22:16:11] sar1nk: has joined #RubyOnRails
[22:16:18] strcmp2: has joined #RubyOnRails
[22:19:33] crdpink: has joined #RubyOnRails
[22:19:49] ledestin: has joined #RubyOnRails
[22:20:01] drale2k_: has joined #RubyOnRails
[22:22:58] recurrence: has joined #RubyOnRails
[22:23:18] recurrence: My Rails Admin CanCanCan authorize is being passed an empty User model. Anyone run into this before and know of a fix?
[22:23:27] SloggerKhan1: has joined #RubyOnRails
[22:24:29] maxdoubt: has joined #RubyOnRails
[22:24:44] drale2k__: has joined #RubyOnRails
[22:25:03] Lewix: has joined #RubyOnRails
[22:27:25] recurrence: ah you have to set the current user method in init
[22:28:26] Radar: GOOD MORNING
[22:28:32] Radar: recurrence: !admin
[22:28:32] helpa: recurrence: Please do not use active_admin, rails_admin or any other gems to build your admin interfaces. Instead, build it yourself. This will lead you to a safe path of understanding of the code, rather than to the Hell that is those gems.
[22:28:51] Scriptonaut: has left #RubyOnRails: ()
[22:29:18] recurrence: ooo, how are these gems hell? I???ve used them before and they were always useful
[22:29:29] Radar: So many people come in here asking how to do complex things with them
[22:29:38] Radar: I would prefer if those people just filed issues on the repos instead :)
[22:29:42] bruno-: has joined #RubyOnRails
[22:29:48] Radar: imo, we are not the support channel for those gems
[22:30:12] Radar: And then it almost always ends up that it would've been easier for the people to build the admin interface themselves rather than use these gems
[22:30:19] recurrence: fair enough :)
[22:30:22] Radar: so as a result, we have !admin and we have...
[22:30:24] Radar: !activeadmin
[22:30:24] helpa: *makes a cross with fingers and says a prayer*
[22:30:53] ereslibre: has joined #RubyOnRails
[22:32:05] x-light: has joined #RubyOnRails
[22:35:04] andrew-l: has joined #RubyOnRails
[22:35:48] andrew-l: hey tubbo - FYI found my answer here: http://stackoverflow.com/a/17935975/1383110 (re: setting validation error messages from locales file)
[22:40:18] robbyoconnor: has joined #RubyOnRails
[22:40:57] andrew-l: but thanks again!
[22:44:25] Lightsword: has joined #RubyOnRails
[22:44:58] null___: has joined #RubyOnRails
[22:44:59] ddv: has joined #RubyOnRails
[22:46:15] bePolite: has joined #RubyOnRails
[22:47:52] ereslibre: has joined #RubyOnRails
[22:50:48] Jon30: has joined #RubyOnRails
[22:51:44] r0bby_: has joined #RubyOnRails
[22:52:26] jenrzzz: has joined #RubyOnRails
[22:53:44] robbyoconnor: has joined #RubyOnRails
[22:56:17] drollwit: has joined #RubyOnRails
[22:58:36] michaeldeol: has joined #RubyOnRails
[22:59:20] jenrzzz: has joined #RubyOnRails
[23:02:21] jcm: has joined #RubyOnRails
[23:02:28] dopie: has joined #RubyOnRails
[23:05:33] j_mcnally: has joined #RubyOnRails
[23:05:42] r0bby_: has joined #RubyOnRails
[23:09:14] renews: has joined #RubyOnRails
[23:10:01] Axsuul: has joined #RubyOnRails
[23:10:14] xicreative: has left #RubyOnRails: ()
[23:11:33] leesharma: has joined #RubyOnRails
[23:12:50] iamjarvo: has joined #RubyOnRails
[23:14:15] Gribo: has joined #RubyOnRails
[23:14:23] user1138: has joined #RubyOnRails
[23:14:34] iamjarvo: has joined #RubyOnRails
[23:15:11] crdpink2: has joined #RubyOnRails
[23:15:40] Gribo: has joined #RubyOnRails
[23:20:26] j_mcnally: has joined #RubyOnRails
[23:21:07] charliesome: has joined #RubyOnRails
[23:21:14] Axilla: recurrence: active_admin is limited to single nested menu bars for one.
[23:21:20] Axilla: i ran into that issue using it :(
[23:21:29] Axilla: we use it at work, but some day its gonna go
[23:23:09] baweaver: has joined #RubyOnRails
[23:24:56] lwu: has joined #RubyOnRails
[23:25:19] Jon30: has joined #RubyOnRails
[23:30:38] blackmesa: has joined #RubyOnRails
[23:30:43] GeissT: has joined #RubyOnRails
[23:33:27] j3r0: has joined #RubyOnRails
[23:35:04] Scripore: has joined #RubyOnRails
[23:39:13] valetudo: has joined #RubyOnRails
[23:40:44] ascarter: has joined #RubyOnRails
[23:41:27] hackeron: has joined #RubyOnRails
[23:42:27] ascarter: has joined #RubyOnRails
[23:42:30] CanTonic: has joined #RubyOnRails
[23:43:06] smathy: has joined #RubyOnRails
[23:43:21] jgpawletko: has joined #RubyOnRails
[23:46:19] leesharma: has joined #RubyOnRails
[23:50:26] drollwit: has joined #RubyOnRails
[23:53:24] alan_andrade: has joined #RubyOnRails
[23:54:08] baweaver: has joined #RubyOnRails
[23:56:11] workmad3: has joined #RubyOnRails
[23:57:13] garrypolley: has joined #RubyOnRails
[23:57:18] blankammo: has joined #RubyOnRails
[23:57:27] nya: has joined #RubyOnRails
[23:58:47] maxdoubt: has joined #RubyOnRails