« Back to channel list

#RubyOnRails - 04 April 2016

« Back 1 day Forward 1 day »
[00:01:10] sudoubuntu: has joined #RubyOnRails
[00:01:28] halfamind: has joined #RubyOnRails
[00:01:53] uglybandersnatch: has left #RubyOnRails: ()
[00:03:28] twilling: has joined #RubyOnRails
[00:07:24] delgiudices: has joined #RubyOnRails
[00:10:30] chouhoulis: has joined #RubyOnRails
[00:12:09] chagel: has joined #RubyOnRails
[00:13:06] alias-ls-to-rm: has joined #RubyOnRails
[00:14:46] delgiudices: has joined #RubyOnRails
[00:18:38] capin: good evening Radar
[00:18:46] Radar: hello capin
[00:19:07] capin: how goes it?
[00:19:46] Radar: Well thanks :) Just starting my week (well, started it an hour ago)
[00:19:49] Radar: So far no fires
[00:20:21] capin: it's still sunday in these neck of the woods ;)
[00:21:29] capin: ewhhh what's new in 4.2.6 ?
[00:21:51] capin: 4.2.5.1 had been out for a while
[00:30:24] jhack: has joined #RubyOnRails
[00:31:17] jhack: anyone an expert with carrierwave can help me out with this issue? Errno::ENOENT: No such file or directory @ rb_sysopen - /
[00:31:26] jhack: trying to upload a file through a react-native android app
[00:32:24] Radar: jhack: is that the full output of the error? No stacktrace?
[00:32:37] makenoise: has joined #RubyOnRails
[00:32:47] jhack: ill put it in a gist
[00:33:09] jhack: https://gist.github.com/jhack32/34322cc232ef5b7c360bcbfd38937613
[00:33:22] jhack: It’s working for iOS
[00:33:24] jhack: for some reason..
[00:33:44] Radar: The file path seems weird.
[00:33:53] njero: has joined #RubyOnRails
[00:33:57] Radar: Almost like React native isn't submitting it as a file, but more as a path parameter.
[00:34:00] jhack: yeah, thats what I thought as wel
[00:34:01] Radar: Please include params in that gist too
[00:34:21] jhack: Yeah, i am submitting just the params actually
[00:34:24] jhack: i mean path*
[00:34:46] jhack: How would i send the file via a fetch call?
[00:35:03] jhack: but thats what i need to figure out I guess
[00:37:13] pawnbox: has joined #RubyOnRails
[00:38:21] halfamind: has joined #RubyOnRails
[00:42:14] Dreamer3_: anyone using ironcache?
[00:42:50] User458764: has joined #RubyOnRails
[00:43:17] helpa: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[00:45:17] Dreamer3_: don't ! me :) I just want a general discussio
[00:45:38] Dreamer3_: well i guess i'd like to see a performance comparison, but google has nothing
[00:46:05] Dreamer3_: i'm afraid it might suck with more than one or two calls since each is a full HTTP trip
[00:46:16] Dreamer3_: i know redis can batch requests, etc
[00:47:00] IrishGringo: has joined #RubyOnRails
[00:47:56] Dimik: how can i launch cmd_line "cmd.exe" with a click of a button on ruby on rails ?
[00:48:23] diggitydane: has joined #RubyOnRails
[00:49:07] Radar: Dimik: !xy
[00:49:07] helpa: Dimik: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[00:49:26] georgedrummond: has joined #RubyOnRails
[00:49:38] Arcaire: Kernel.system('cmd.exe') really
[00:49:58] Radar: Arcaire: Why the Kernel. prefix?
[00:50:06] Dimik: yeah why kernel
[00:50:31] Dimik: i know how to execute it, don't know how to execute it with a button
[00:50:34] Dimik: new to rails
[00:50:57] Radar: Dimik: What do you want to do once the user brings up cmd.exe?
[00:51:30] johnflux: has joined #RubyOnRails
[00:51:44] Dimik: i have the cmd.exe running my ruby script which executes a tree of scripts
[00:52:07] Radar: Can you show us the exact command you want to start? Surely it's not just "cmd.exe"
[00:52:21] Dimik: since i don't know ruby on rails it was the only solution i could come up with to run my ruby scripts
[00:52:39] Dimik: cmd_line = "start cmd.exe /c \"system.rb\""
[00:52:39] Dimik: puts cmd_line
[00:52:39] Dimik: system(cmd_line)
[00:52:49] Radar: What is in system.rb?
[00:53:10] Dimik: that's my sample ruby script
[00:53:37] Radar: That is not quite what I was after.
[00:53:41] Radar: Show me the content of system.rb please.
[00:53:43] Radar: In a gist.
[00:53:52] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[00:54:49] Dimik: ideally there will be ARGV passed to it with some number so based on those numbers the script will run capybara to get data from google and then do algorithmic calculations
[00:54:57] Dimik: something like that
[00:55:06] Radar: Dimik: Please show us the code. We can help you if you show us the code.
[00:56:57] helpa: A "Full Trace" as opposed to the default "Application Trace" is preferred.
[00:57:00] Radar: Uh, not that noe.
[00:57:08] Radar: !rule 3.3
[00:57:08] helpa: 3.1 If you're using an older version of Ruby or Rails, please tell us.
[00:57:13] helpa: NO FAKE CODE. If you're under an NDA, we cannot help you with your problem. Go hire a consultant.
[00:57:26] diggitydane: I'm trying to direct post to S3 using aws-sdk 2. When I do @post.url, it comes back as https://aws.com/bucket where I want https://bucket.aws.com/ where can you change this config?
[00:57:32] diggitydane: https://gist.github.com/anonymous/64edb44984c938b2bd331be320fc443b
[00:57:39] Dimik: NDA is a pain.
[00:57:44] Radar: Dimik: You can call Ruby code from Ruby. The way you're going about it now seems very wrong.
[00:57:53] smathy: Why would you want to run ruby via cmd.exe from (other) ruby?
[00:57:59] Radar: smathy: your @ is showing
[00:58:10] Radar: Dimik: If you put the file in your `lib` dir and define a class around it then you can call it like SomeClassName.perform(args_go_here)
[00:58:37] Arcaire: diggitydane: Why?
[00:58:46] smathy: -o smathy
[00:58:48] Dimik: because i don't know rails
[00:59:10] diggitydane: Arcaire, because we're using paperclip and the URL format we're using in the regex is that
[00:59:11] Arcaire: Dimik: Now is a really good time to learn if you're under an NDA using Rails. :)
[00:59:12] Dimik: Radar, thanks i'll look into it
[00:59:38] sevenseacat: has joined #RubyOnRails
[00:59:54] Dimik: i'm ok with ruby though
[01:00:21] diggitydane: Arcaire, and it's interesting because every example online, including aws docs, has the bucket name as the subdomain
[01:00:34] Dimik: it's just every "build your first ruby on rails application" link on google is a complete cluster..
[01:00:36] Radar: Dimik: I think that you still have some things to learn. Shelling out to cmd.exe to run Ruby from Ruby seeems... weird.
[01:00:40] Radar: Dimik: !r4ia
[01:00:40] helpa: Dimik: 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:00:44] Radar: Dimik: The only Rails book you'll ever need.
[01:01:05] sevenseacat: isa pretty good one.
[01:01:11] Dimik: thanks i appreciate it
[01:01:16] Arcaire: Can confirm, read from start to finish before it was even released.
[01:01:44] hahuang65: has joined #RubyOnRails
[01:02:05] Radar: Dimik: You should get whoever put you under that NDA to buy you at least 10 copies.
[01:02:29] Dimik: yeah i'm working on it
[01:02:55] PlasmaStar: has joined #RubyOnRails
[01:02:57] Arcaire: diggitydane: Isnt' this - https://gist.github.com/anonymous/64edb44984c938b2bd331be320fc443b#file-aws-rb-L6 - meant to be Aws::S3::Resource.new(ENV['AWS_BUCKET'])
[01:03:29] Arcaire: You're kind of trying to access the bucket attribute before you've even created/instantiated the resource.
[01:03:36] Arcaire: Which won't work for pretty obvious reasons when I put it like that.
[01:04:14] twilling: has left #RubyOnRails: ()
[01:04:28] joshkovach: has joined #RubyOnRails
[01:04:51] diggitydane: No, as far as the docs go, it's correct
[01:04:56] diggitydane: Arcaire, http://docs.aws.amazon.com/sdkforruby/api/index.html
[01:05:08] diggitydane: Resource.new takes region and credentials
[01:07:17] makenoise: has joined #RubyOnRails
[01:08:58] Radar: ACTION got around this by not using paperclip or carrierwave...
[01:09:26] sevenseacat: <3 carrierwave
[01:09:49] Arcaire: A brief look at the docs shows there's two ways to access a bucket. The SDK uses one.
[01:09:51] Arcaire: You've used the other.
[01:10:30] Radar: https://gist.github.com/radar/7b8472e916013a95978efb61bff7ed79
[01:10:35] diggitydane: Radar: ha, I wish I could. project is due soon and already had a bunch of paperclip in it
[01:10:38] Radar: diggitydane: that ^ is one option
[01:11:09] Radar: Please note the comment at the top of that file.
[01:11:19] diggitydane: Radar: ok, I'll take a look. thanks
[01:11:43] Radar: I'm actually trying to steer clear of the magical-ness of paperclip/carrierwave these days.
[01:12:00] Arcaire: ACTION even stays clear of the magic of Devise.
[01:12:05] Radar: I want code that is explicitly performing actions. Not something that Just Works (In A Totally Magical Way) (tm)
[01:12:05] Arcaire: I don't like any of it. <_<
[01:12:51] Radar: Oh Alt+2 does that. Fancy™.
[01:12:58] Arcaire: Yas. Alt+R is ®.
[01:14:30] diggitydane: ahh, I got it. If your bucket has a period, sdk 2 appends it to the end of the url, if not uses it as subdomain. thanks for your help guys
[01:14:55] Radar: Oh neat :)
[01:15:57] Arcaire: wew named pathing
[01:18:00] Arcaire: Wow POWER8s are only $1210.00/mo
[01:20:13] Arcaire: Probably not worth it.
[01:20:34] Radar: Could probably get my node app above 10 req/s
[01:20:42] Radar: Or my Rails 3 app above 5.
[01:25:44] one_zero: has joined #RubyOnRails
[01:27:08] Radar: Might get my assets:precompile time under a min too
[01:27:23] sevenseacat: yeah now you're dreaming
[01:31:37] sleungcy: has joined #RubyOnRails
[01:34:16] eljimbo: has joined #RubyOnRails
[01:36:45] pawnbox: has joined #RubyOnRails
[01:37:33] Ropeney: cache all the things :D
[01:38:49] joshkovach: has joined #RubyOnRails
[01:41:16] Arcaire: The network performance in these VMs is pretty good.
[01:41:30] Arcaire: Think it's almost better than standard-issue VMs you get from DigitalOcean or whatever.
[01:41:42] Arcaire: ACTION is having a "play with new tech" day, it seems.
[01:41:47] nodejunkie: has joined #RubyOnRails
[01:41:53] Arcaire: Trying to hit 1Gbit/sec.
[01:42:45] SteenJobs: has joined #RubyOnRails
[01:43:43] smathy: $1210/mo = "think it's almost better" - oh my.
[01:44:09] SteenJobs: hey guys - in one of my views, i have a form with a single input - a checkbox, with name=“project[tos_agreed]”. problem is, if the checkbox is not selected, my params don’t contain the key “project”, and then when i run params.require(:project)….it throws an error
[01:44:23] Radar: SteenJobs: params[:project] ||= {}
[01:44:25] helpa: Next question, please!
[01:44:30] SteenJobs: haha thanks
[01:45:13] smathy: ...although if you're using a Rails checkbox view helper then it *should* work (because it creates a hidden element for when its not checked)
[01:47:11] Ropeney: why not .fetch(:project, {}) instead of require?
[01:47:23] krz: has joined #RubyOnRails
[01:47:24] Radar: Because it's strong parameters?
[01:47:32] SteenJobs: smathy: i’m doing the whole custom image thing again, and using the rails helper breaks my css
[01:47:46] SteenJobs: Radar: where do you recommend putting that? just for neatness sake. i have my usual method “project_params” whcih contains params.require(:require), i guess in that method right before params.require?
[01:48:06] SteenJobs: stupid question
[01:48:07] SteenJobs: don’t answer
[01:48:11] Ropeney: I thought params.fetch(:project, {}).permit(...) does same thing?
[01:48:20] Ropeney: I could be wrong
[01:48:23] Radar: SteenJobs: Are you using a regular check box or not?
[01:48:26] SteenJobs: i’m doing that thing where i rely on you guys cause you’re here and it’s easy, rather than just doing it myself
[01:48:31] Radar: Ropeney: very much nope
[01:48:31] SteenJobs: yea - but not using the rails helper
[01:48:36] Radar: SteenJobs: and why not
[01:49:03] SteenJobs: because i have custom css for using image assets for checked and unchecked, and the “checked” value isn’t being picked up by my css when using the rails helper
[01:49:41] SteenJobs: i’ve been hacking the frontend throughout this whole project to reflect the creative director’s designs
[01:49:42] Radar: SteenJobs: You could solve the issue the same way rails does it. Adding a hidden field to your form with the same name. That'll get used when the checkbox is unchecked.
[01:49:44] Ropeney: Radar: http://guides.rubyonrails.org/action_controller_overview.html#more-examples ?
[01:49:46] sevenseacat: i'd rewrite that personally
[01:49:54] sevenseacat: yeah what Radar said
[01:49:55] SteenJobs: which since he knows nothing about web dev, didn’t design it with any web friendly stuff in mind
[01:49:58] Radar: Ropeney: I'm telling you, it does not do the same thing.
[01:50:20] SteenJobs: ok cool, thanks.
[01:50:25] Radar: Ropeney: here are some FACTS https://github.com/rails/strong_parameters/blob/master/lib/action_controller/parameters.rb#L57-L59
[01:50:29] Ropeney: Radar, and that worries me so I'm trying to work that out now
[01:50:29] Radar: cc Arcaire
[01:53:06] SteenJobs: Radar: gonna do it the last way you recommended, for some reason project => {} is still causing the param missing error
[01:53:19] SteenJobs: what does the rails helper return as the value in the hidden field when unchecked?
[01:53:30] Radar: SteenJobs: use it and find out
[01:53:39] smathy: Yeah {} won't work.
[01:53:46] smathy: {}.presence # => nil
[01:54:27] Radar: <dhh voice> whups
[01:54:29] smathy: SteenJobs, just make a hidden input field of the same name before your checkbox with a value of ""
[01:54:43] smathy: (which is what Rails does)
[01:54:51] SteenJobs: you were’nt supposed to tell me!!!
[01:55:23] smathy: I gave you a fair lead time to get this sorted before I dropped the answer.
[01:55:33] SteenJobs: smathy: fair. i was busy testing it
[01:55:41] SteenJobs: although it may cause a validation problem
[01:56:02] SteenJobs: because “” is a string, presence will be true, correct?
[01:56:03] smathy: You should fix that validation then.
[01:56:12] smathy: SteenJobs, !try
[01:56:12] helpa: SteenJobs: Why don't you try it and find out for yourself?
[01:56:22] SteenJobs: no answer dropping
[01:57:49] rake_db_migrate: has joined #RubyOnRails
[01:58:03] Ropeney: Radar, thanks for pointing it out :) I have to find where i read .fetch was a good choice now
[01:58:28] Bil1: has joined #RubyOnRails
[01:59:57] baweaver: has joined #RubyOnRails
[02:00:16] smoitra: has joined #RubyOnRails
[02:00:28] Bil1: Hello again folks. I was looking for a quick opinion of sorts. I am trying to build an input box that is smart. I need to be able to select a single person from over 5000 entries in a form. I just implmented typeahead.js with bloodhound and I am not super happy with it. I need the drop down to show the name of the person but submit the ID. I made this work by using a hidden field and if form validation fails javascript re-po
[02:00:44] Bil1: display name. Is there a better alternative to achieve what I'm looking for?
[02:01:08] sevenseacat: thats pretty much the standard way
[02:01:11] SteenJobs: smathy: presence validation doesn’t catch it
[02:02:02] smathy: If only someone had thought to add other validations to Rails.
[02:02:20] SteenJobs: haha researching now
[02:02:44] Bil1: Thanks sevenseacat. It just felt very down and dirty. Had to specify two routes, one for searching by whatever and another for pulling the user by ID. This away i can do a quick ajax call on typeahead callback event to fill in the input box with something other than the ID. It just feels kind sloppy.
[02:03:26] SteenJobs: smathy: wait that’s odd, the guides say that .blank? is used, so it should catch empty strings, which means it’s not the validation but something else in the code
[02:04:27] GregUK: has joined #RubyOnRails
[02:04:34] halfamind1: has joined #RubyOnRails
[02:05:09] Bil1: I wish I could figure out what is filling in the typeahead box with the person's ID. The callback works but for a split second the numeric ID pops into the box and then is replaced with their first last - location - ID template that I built.
[02:05:34] Radar: Bil1: Maybe consider using Select2 if you can't fix typeahead.js
[02:05:51] Bil1: @Radar i'll look into that now. I hadn't heard of this.
[02:06:42] GregUK: has joined #RubyOnRails
[02:07:15] GregUK: has joined #RubyOnRails
[02:08:30] Bil1: @Radar wow that looks to be what I thought typeahead would do. I think i'm going to try implementing it instead. Dude, you are always very helpful!
[02:08:59] smizell: has joined #RubyOnRails
[02:10:40] SteenJobs: smathy: we’re in business
[02:12:25] armyriad: has joined #RubyOnRails
[02:14:12] jtdowney: has joined #RubyOnRails
[02:14:12] jtdowney: has joined #RubyOnRails
[02:15:29] SteenJobs: smathy: i had copied over some code from a different controller, where the object was “profile” whereas here it’s “project”, and i missed changing one of the instances
[02:16:24] aloneintheworld: I have a User model with a has_one Partner relationship. The Partner is also based on the User class, so I end up having a partner_id column on the User table. When I write myuser.build_partner(…). The partner is correctly created and the partner_id referenced to the user correctly filled. But I also want to make the relationship bi-directional. Whenever I create a partner for a given user, I also want that user to be a
[02:16:25] aloneintheworld: partner.. for the partner… I want to end up with both partner_id filled on both objects… any ideas on how to resolve that ?
[02:16:46] RegulationD: has joined #RubyOnRails
[02:17:16] Axy: has joined #RubyOnRails
[02:18:07] smathy: aloneintheworld, !code
[02:18:07] helpa: aloneintheworld: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[02:21:01] sudoubuntu: has joined #RubyOnRails
[02:22:28] aloneintheworld: i dont have code yet
[02:22:34] georgedrummond: has joined #RubyOnRails
[02:22:49] aloneintheworld: i just want to have a has_one relationship bidirectional
[02:23:12] smathy: Huh, I wonder how the partner is being created correctly then. That's amazing.
[02:23:49] sevenseacat: has_one relationships are not bidirectional
[02:23:57] stardiviner: has joined #RubyOnRails
[02:24:21] sevenseacat: has_one can be paired with a belongs_to for a two-way relationship
[02:24:32] aloneintheworld: here it is: https://gist.github.com/anonymous/6e9a87de8f496c7f7e9b981f14e05f91
[02:26:22] aloneintheworld: sevenseacat: so in my controller I would have something like p = user.build_partner(..) and then user.partner = p
[02:26:37] aloneintheworld: that would make it bidirectional I think
[02:26:40] sevenseacat: you have one or the other, not both
[02:26:46] sevenseacat: they do the same thing
[02:28:38] aloneintheworld: build_partner would fill partner_id on both objects ? as long as i have belongs_to and has_one
[02:28:52] sevenseacat: only one object has a partner_id
[02:29:00] sevenseacat: a partner doesnt have a partner_id
[02:29:07] htmldrum: has joined #RubyOnRails
[02:29:35] aloneintheworld: “ has_one :partner, class_name: 'User', foreign_key: :partner_id, dependent: :nullify “
[02:29:59] aloneintheworld: I want both objects being partners of each other
[02:30:32] smathy: OMG, it's code!
[02:30:53] sevenseacat: okay. two FKs is still a waste of time and effort and prone to getting out of date and introducing bugs
[02:31:44] delgiudices: has joined #RubyOnRails
[02:32:40] sleungcy: has joined #RubyOnRails
[02:33:39] smathy: You said you had no code yet.
[02:34:02] smathy: ...and yet, code you are a-showing.
[02:37:14] chipotle: has joined #RubyOnRails
[02:44:23] smoitra: has joined #RubyOnRails
[02:44:56] sudoubuntu: has joined #RubyOnRails
[02:47:27] Graphettion: has joined #RubyOnRails
[03:02:50] SteenJobs: so i switched over to aggregating all the form data in session, and then saving and redirecting when navigating to the final page in the flow - at that point i delete the form data from session upon successful save. problem is, when the user navigates backwards, session[:project_data] is nil so the code throws a NoMethodError - how would you recommend handling this situation?
[03:03:19] SteenJobs: (this isn’t the onboarding flow..apparently the designs for this app have a bunch of multi-step forms, so i switched over to session usage because we can’t have duplicates in the db)
[03:05:14] w0rd-driven: has joined #RubyOnRails
[03:05:53] ensyde_: has joined #RubyOnRails
[03:07:43] mDuff: has joined #RubyOnRails
[03:13:32] SteenJobs: all good - made a before_action for my update action, and redirect to the first page in the flow should session[:project_data] be nil
[03:14:22] braincrash: has joined #RubyOnRails
[03:16:18] beast_: has joined #RubyOnRails
[03:29:01] halfamind: has joined #RubyOnRails
[03:29:57] htmldrum: has joined #RubyOnRails
[03:30:00] ur5us: has joined #RubyOnRails
[03:30:28] fedexo: has joined #RubyOnRails
[03:32:28] djbkd: has joined #RubyOnRails
[03:34:47] rake_db_migrate: has joined #RubyOnRails
[03:38:23] owenjones: has joined #RubyOnRails
[03:40:52] StevenXL: has joined #RubyOnRails
[03:42:24] baweaver: has joined #RubyOnRails
[03:42:56] arBmind: has joined #RubyOnRails
[03:44:19] lemur: has joined #RubyOnRails
[03:44:47] htmldrum: has joined #RubyOnRails
[03:44:58] baweaver_: has joined #RubyOnRails
[03:51:23] rake_db_migrate: has joined #RubyOnRails
[03:52:13] sleungcy: has joined #RubyOnRails
[03:54:29] David_H_Smith: has joined #RubyOnRails
[04:01:06] Limix: has joined #RubyOnRails
[04:02:50] moeabdol: has joined #RubyOnRails
[04:05:51] chouhoulis: has joined #RubyOnRails
[04:08:28] krz: has joined #RubyOnRails
[04:11:24] chagel: has joined #RubyOnRails
[04:14:25] SteenJobs: has joined #RubyOnRails
[04:15:33] PlasmaStar: has joined #RubyOnRails
[04:31:23] w0rd-driven: has joined #RubyOnRails
[04:31:29] ascarter: has joined #RubyOnRails
[04:33:19] ascarter: has joined #RubyOnRails
[04:34:04] pawnbox: has joined #RubyOnRails
[04:35:08] ascarter: has joined #RubyOnRails
[04:37:47] apg: has joined #RubyOnRails
[04:37:47] apg: has joined #RubyOnRails
[04:39:11] apg: has joined #RubyOnRails
[04:40:44] apg: has joined #RubyOnRails
[04:43:55] vsdfs: has joined #RubyOnRails
[04:45:50] Palsson: has joined #RubyOnRails
[04:46:30] IrishGringo: has joined #RubyOnRails
[04:46:39] Cohedrin_: has joined #RubyOnRails
[04:51:49] Lumia930: has joined #RubyOnRails
[04:56:13] Devalo: has joined #RubyOnRails
[04:57:43] dnewkerk: has joined #RubyOnRails
[05:00:50] David_H__: has joined #RubyOnRails
[05:02:38] r0bby_: has joined #RubyOnRails
[05:03:11] diegoaguilar: has joined #RubyOnRails
[05:07:52] chipotle: has joined #RubyOnRails
[05:08:14] pwnd_nsfw`: has joined #RubyOnRails
[05:08:57] alfie_max15: has joined #RubyOnRails
[05:09:20] Macaveli: has joined #RubyOnRails
[05:11:33] baweaver: has joined #RubyOnRails
[05:12:08] gingray: has joined #RubyOnRails
[05:15:16] workmad3: has joined #RubyOnRails
[05:21:33] sandelius: has joined #RubyOnRails
[05:23:49] sandelius: has joined #RubyOnRails
[05:24:54] hxegon: has joined #RubyOnRails
[05:29:51] DoubleMalt: has joined #RubyOnRails
[05:31:33] sleungcy: has joined #RubyOnRails
[05:32:41] krz: has joined #RubyOnRails
[05:36:45] rubyonrailed: has joined #RubyOnRails
[05:37:01] Cohedrin: has joined #RubyOnRails
[05:39:15] User458764: has joined #RubyOnRails
[05:42:59] halfamind: has joined #RubyOnRails
[05:45:52] jetpack_joe: has joined #RubyOnRails
[05:48:04] kp666: has joined #RubyOnRails
[05:48:47] GitGud: has joined #RubyOnRails
[05:50:48] FCser: has joined #RubyOnRails
[05:54:15] krz: has joined #RubyOnRails
[05:57:14] Palsson: has joined #RubyOnRails
[05:58:29] duncannz: has joined #RubyOnRails
[05:59:38] pawnbox: has joined #RubyOnRails
[06:03:41] rogue_koder: has joined #RubyOnRails
[06:03:49] Macaveli: has joined #RubyOnRails
[06:05:56] solars: has joined #RubyOnRails
[06:06:11] pawnbox: has joined #RubyOnRails
[06:08:12] djbkd: has joined #RubyOnRails
[06:08:33] emilkarl: has joined #RubyOnRails
[06:10:42] dionysus69: has joined #RubyOnRails
[06:14:28] cd-rum: has joined #RubyOnRails
[06:14:40] aganov: has joined #RubyOnRails
[06:14:50] pawnbox: has joined #RubyOnRails
[06:17:24] apotry: has joined #RubyOnRails
[06:18:13] RegulationD: has joined #RubyOnRails
[06:20:27] rakm: has joined #RubyOnRails
[06:20:41] scepticulous: has joined #RubyOnRails
[06:22:55] htmldrum: has joined #RubyOnRails
[06:23:29] arup_r: has joined #RubyOnRails
[06:23:32] dionysus69: has joined #RubyOnRails
[06:25:21] emilkarl: Anyone had issue with Devise and sign out? Signout seems to be happening but if I access sign_in_path i get logged in back again.
[06:25:54] Lumia930: has joined #RubyOnRails
[06:25:56] helpa: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[06:26:40] emilkarl: Is there any known issue or should I investigate deeper? It all happened after updating devise (3.5.6) and devise invitable (1.3.6).
[06:26:51] lxsameer: has joined #RubyOnRails
[06:26:55] sevenseacat: check the issues and see if its a known issue
[06:27:31] sudoubuntu: has joined #RubyOnRails
[06:29:14] emilkarl: Yep, will do
[06:29:34] brt: has joined #RubyOnRails
[06:31:07] rubyonrailed: has joined #RubyOnRails
[06:34:45] sandelius: has joined #RubyOnRails
[06:35:07] thorgi: has joined #RubyOnRails
[06:35:10] comrad: has joined #RubyOnRails
[06:35:42] neanderslob_: has joined #RubyOnRails
[06:37:45] emilkarl: Change from cookie_store to activerecord-session_store solved the issue.
[06:40:13] thorgi: has joined #RubyOnRails
[06:44:35] sekrit: has joined #RubyOnRails
[06:46:36] alfie_max15: has joined #RubyOnRails
[06:47:30] RubyPadawan_: has joined #RubyOnRails
[06:47:41] Dimik: has joined #RubyOnRails
[06:50:56] sandstrom: has joined #RubyOnRails
[06:55:57] chipotle: has joined #RubyOnRails
[07:01:55] sleungcy: has joined #RubyOnRails
[07:02:07] pawnbox: has joined #RubyOnRails
[07:02:08] akshat_: has joined #RubyOnRails
[07:02:51] Palsson: has joined #RubyOnRails
[07:04:15] ur5us: has joined #RubyOnRails
[07:06:15] dionysus69: has joined #RubyOnRails
[07:11:15] Ergo: has joined #RubyOnRails
[07:11:52] johnflux: has joined #RubyOnRails
[07:12:23] sandstrom: has joined #RubyOnRails
[07:14:48] arup_r: ACTION searching in his dictionary ..
[07:15:22] mark2: has joined #RubyOnRails
[07:16:14] rubyonrailed: So say I have a channel, and it has many entries. Daily that channel can have entries for many users. I want to be able to report how many entries there were during the week, but I only want to show how many days a entry was created. So I don’t want to show how many entries were created that week, just how many days an entry happened
[07:17:48] sevenseacat: that question looks familiar
[07:18:01] mwlang: rubyonrailed: so….’select count(distinct entry_date) from channel_entries where entry_date between X and Y?
[07:18:08] sevenseacat: oh right, slack cross-post
[07:18:38] rubyonrailed: sevenseacat: everyone is asleep there
[07:18:52] mhoungbo: has joined #RubyOnRails
[07:18:58] pwnd_nsfw: has joined #RubyOnRails
[07:19:14] pawnbox: has joined #RubyOnRails
[07:19:17] sevenseacat: i dont find it a very useful slack community, must be said
[07:19:38] sandelius: has joined #RubyOnRails
[07:20:07] rubyonrailed: There are some people there that work hard and keeping it a positive place. No negatives from me.
[07:20:30] htmldrum: has joined #RubyOnRails
[07:20:52] sevenseacat: sure it's positive, just not useful to me :P
[07:22:31] syndikate: has joined #RubyOnRails
[07:24:11] sevenseacat: controller namespaces - singular or plural?
[07:27:10] sp1rs: has joined #RubyOnRails
[07:27:30] sevenseacat: this is like the second or third time I've come across this in recent projects - wanting to have eg. a User model and also a User controller namespace and major asplosions occur
[07:28:50] David_H_Smith: has joined #RubyOnRails
[07:33:20] defsdoor: has joined #RubyOnRails
[07:35:40] arBmind1: has joined #RubyOnRails
[07:37:56] RubyJedi-ing_: has joined #RubyOnRails
[07:38:03] armyriad: has joined #RubyOnRails
[07:39:36] masscrx: has joined #RubyOnRails
[07:40:09] Papierkorb: has joined #RubyOnRails
[07:40:21] Macaveli: has joined #RubyOnRails
[07:40:46] htmldrum: has joined #RubyOnRails
[07:41:30] Denarii: has joined #RubyOnRails
[07:41:31] speakingcode: has joined #RubyOnRails
[07:41:52] AntiSpamMeta: has joined #RubyOnRails
[07:42:59] swav: has joined #RubyOnRails
[07:43:05] djellemah: has joined #RubyOnRails
[07:43:10] apeiros: has joined #RubyOnRails
[07:43:22] chagel: has joined #RubyOnRails
[07:43:41] gremly: has joined #RubyOnRails
[07:43:51] scope2229: has joined #RubyOnRails
[07:44:09] duncannz: has joined #RubyOnRails
[07:50:37] adre: has joined #RubyOnRails
[07:51:30] swav: has joined #RubyOnRails
[07:52:03] benlieb: has joined #RubyOnRails
[07:52:14] edwinvdgraaf: has joined #RubyOnRails
[07:54:06] timmyBsd: has joined #RubyOnRails
[07:58:43] ur5us: has joined #RubyOnRails
[08:02:07] ferr: has joined #RubyOnRails
[08:05:01] moeabdol: has joined #RubyOnRails
[08:05:46] benlieb: has joined #RubyOnRails
[08:05:59] tildes: has joined #RubyOnRails
[08:06:59] tildes: I use detect to find a specific record in a table (based on ActiveRecord), but I would actually get the last (by database id), rather than the first occurrence. Any ideas?
[08:08:10] tildes: Ok. maybe with MyModel.order(id: :desc).detect ... I'll try
[08:09:30] tildes: Suppose I have ten records, ids from 1 to 10. Records 2, 4, 7 satisfy my condition. (but this can change over time, and over time there will be more records). I would like to have a query, that would return 7 instead of 2, in style of detect
[08:09:31] htmldrum: has joined #RubyOnRails
[08:09:47] tildes: as of now, with the current data
[08:10:23] moep: has joined #RubyOnRails
[08:11:30] tildes: MyModel.order(id: :desc).detect(&:returns_truthy) seems to cut it
[08:11:38] sevenseacat: "style of detect" is bad, because it means you have to load the entire set from the db just to get one
[08:11:47] sp1rs: has joined #RubyOnRails
[08:11:55] sevenseacat: what is "my condition"
[08:11:58] tildes: any better suggestions are *more* than *welcome*
[08:12:51] tildes: A person can have many employment_relationships. Also there can be a lot of persons (people) without one. I want to find one person, with a 'current' employment_relationship
[08:13:23] tildes: so 'my condition' means: person, who has a employment relationship, that is valid for the queried date
[08:13:47] sevenseacat: sounds like a SQL join and where clause, or an AR merge
[08:13:57] sevenseacat: if you gist up your current code, we can see what we can do
[08:13:57] yardenbar: has joined #RubyOnRails
[08:15:53] tildes: sevenseacat it might take a while to clean up, there is a lot of code already in this instance. I appreciate the help and offer to take a look however
[08:16:27] sevenseacat: ok. this might help you: http://guides.rubyonrails.org/active_record_querying.html#specifying-conditions-on-the-joined-tables
[08:16:47] gambl0re: hows glendalough stn?
[08:17:03] sevenseacat: join the relationships, then filter by date and by 'current'
[08:17:17] sevenseacat: gambl0re: you tell me
[08:17:22] darutoko: has joined #RubyOnRails
[08:17:34] gambl0re: havent been there in a while
[08:18:05] tildes: sevenseacat: indeed it might! thanks a lot
[08:18:58] RegulationD: has joined #RubyOnRails
[08:20:28] armyriad: has joined #RubyOnRails
[08:20:49] apotry: has joined #RubyOnRails
[08:23:47] Skelz0r: has joined #RubyOnRails
[08:25:08] finnnnnnnnnnn: has joined #RubyOnRails
[08:28:29] htmldrum: has joined #RubyOnRails
[08:33:14] ql6wlld: has joined #RubyOnRails
[08:35:04] Palsson: has joined #RubyOnRails
[08:36:21] krz: has joined #RubyOnRails
[08:36:44] rakm: has joined #RubyOnRails
[08:37:55] duderonomy: has joined #RubyOnRails
[08:38:37] Palsson: has joined #RubyOnRails
[08:39:50] rake_db_migrate: has joined #RubyOnRails
[08:39:57] baweaver: has joined #RubyOnRails
[08:40:40] Palsson_: has joined #RubyOnRails
[08:42:53] TheRokh: has joined #RubyOnRails
[08:43:52] Palsson: has joined #RubyOnRails
[08:44:21] eyeamaye: has joined #RubyOnRails
[08:44:39] rubyonrailed: has joined #RubyOnRails
[08:44:41] rakm: has joined #RubyOnRails
[08:45:13] ruid: has joined #RubyOnRails
[08:46:07] arBmind: has joined #RubyOnRails
[08:46:16] marr: has joined #RubyOnRails
[08:46:40] Dbugger: has joined #RubyOnRails
[08:47:04] njero: has joined #RubyOnRails
[08:47:36] Dbugger: Hey everyone. I want to make an instance method in a model, that updates a timestamp. it has just one instruction, like this: "released_at = DateTime.now if released_at.nil?" but apparently it is not preserving the changes in the DB. did I miss something?
[08:49:34] sevenseacat: dbugger: two things - 1) setting the attribute, and 2) saving it
[08:52:18] benlieb: has joined #RubyOnRails
[08:52:27] sevenseacat: your method sets a local variable inside the method called released_at, but thats about it
[08:53:16] Palsson: has joined #RubyOnRails
[08:54:17] SPYGAME: has joined #RubyOnRails
[08:55:59] blackmes1: has joined #RubyOnRails
[08:58:58] moeabdol1: has joined #RubyOnRails
[09:00:22] arup_r: has joined #RubyOnRails
[09:03:50] krz: has joined #RubyOnRails
[09:04:59] sp1rs: has joined #RubyOnRails
[09:06:43] sleungcy: has joined #RubyOnRails
[09:13:43] chagel: has joined #RubyOnRails
[09:17:05] htmldrum: has joined #RubyOnRails
[09:19:25] srinidhi: has joined #RubyOnRails
[09:20:12] snowy: has joined #RubyOnRails
[09:22:44] snowy: has joined #RubyOnRails
[09:22:44] sandelius: has joined #RubyOnRails
[09:26:29] pawnbox: has joined #RubyOnRails
[09:26:52] krz: has joined #RubyOnRails
[09:29:34] patrick_star_2: has joined #RubyOnRails
[09:29:50] srinidhi: has joined #RubyOnRails
[09:29:53] smoitra: has joined #RubyOnRails
[09:32:27] finnnnnnnnnnn: has joined #RubyOnRails
[09:34:14] n008f4g_: has joined #RubyOnRails
[09:37:19] RubyJedi-ing: has joined #RubyOnRails
[09:53:04] blackhuey: has joined #RubyOnRails
[09:57:38] timmyBsd: has joined #RubyOnRails
[10:01:39] TvL2386: has joined #RubyOnRails
[10:03:14] tvw: has joined #RubyOnRails
[10:04:46] sandelius: has joined #RubyOnRails
[10:05:05] smoitra: has joined #RubyOnRails
[10:11:48] blackhuey1: has joined #RubyOnRails
[10:12:51] bronson: has joined #RubyOnRails
[10:13:49] quazimodo: has joined #RubyOnRails
[10:16:07] diegoaguilar: has joined #RubyOnRails
[10:16:11] htmldrum: has joined #RubyOnRails
[10:19:49] RegulationD: has joined #RubyOnRails
[10:20:31] jsrn_: has joined #RubyOnRails
[10:22:24] voidDotClass: has joined #RubyOnRails
[10:24:41] voidDotClass: I have a scenario where I have 1) A user table / model, 2) An exam table / model, 3) A question table / model. Each exam has a bunch of questions. And each user has done a bunch of exams. What I need is to separately track the answers the user has given for each question. Any ideas how to model this second 'answers' scenario? here each answer belongs to a question, and just adds a string 'answer' field to it
[10:25:50] workmad3: voidDotClass: an answer should probably belong to both a question and a user
[10:26:23] voidDotClass: so i should make a separate table / model for the answers?
[10:27:04] workmad3: voidDotClass: that's generally how you'd do it, yes
[10:27:13] voidDotClass: Right now exam has_many questions, so its easy to show the questions of a particular exam when i view an exam. how will i fetch the user's answers for questions to a particular exam?
[10:30:39] dANOKELOFF: has joined #RubyOnRails
[10:35:29] finnnnnnnnnnn: has joined #RubyOnRails
[10:37:18] fernandomm: has joined #RubyOnRails
[10:43:49] bollullera: has joined #RubyOnRails
[10:44:36] Spami: has joined #RubyOnRails
[10:45:51] lxsameer: hey people, is it possible to require an assets manifest inside an other manifest ?
[10:46:21] drptbl: has joined #RubyOnRails
[10:47:00] sevenseacat: did you try it?
[10:47:35] quazimodo: has joined #RubyOnRails
[10:48:52] ur5us: has joined #RubyOnRails
[10:51:58] dipnlik: has joined #RubyOnRails
[10:54:15] quazimodo: so I can't decide if i should carry on using form objects to set 'archived_at' flags on things manually if they have an _archive flag set to true (much like how rails automatically does it with _destroy) or if I should implement a 'marked_for_archival' and make it work exactly how allow_destroy: true works
[10:54:37] emilkarl: has joined #RubyOnRails
[11:01:56] rodfersou: has joined #RubyOnRails
[11:04:08] weckl: has joined #RubyOnRails
[11:06:37] sergey_makagon: has joined #RubyOnRails
[11:07:21] rickmasta: has joined #RubyOnRails
[11:08:01] sleungcy: has joined #RubyOnRails
[11:11:33] Detch: has joined #RubyOnRails
[11:12:25] sandelius: has joined #RubyOnRails
[11:15:53] skislak: has joined #RubyOnRails
[11:23:32] GodFather: has joined #RubyOnRails
[11:24:57] dipnlik: has joined #RubyOnRails
[11:25:47] scope2229: i cant seam to find spec/models/user_spec.rb
[11:26:02] scope2229: i use db migrate
[11:26:41] sevenseacat: maybe you didnt make it yet?
[11:26:54] scope2229: do i have to make that one myself
[11:27:15] scope2229: the tutorial doesnt mention anything
[11:27:18] sevenseacat: or generate it
[11:28:04] Ropeney: has joined #RubyOnRails
[11:28:32] ldnunes: has joined #RubyOnRails
[11:30:12] scope2229: rails generate model User name:string email:string
[11:30:25] scope2229: this is supposed to create the file but it doest
[11:30:31] sevenseacat: then if your app is configured to use rspec, it will generate the spec file
[11:31:09] flashpoint9: has joined #RubyOnRails
[11:33:10] scope2229: thats another fault with the tutorial nowhere does it say use rspec
[11:33:10] ldnunes: has joined #RubyOnRails
[11:34:49] sevenseacat: well if you're not using rspec, then you're not going to get an rspec file generated
[11:34:58] sevenseacat: the tutorial is likely using minitest
[11:34:59] krz: has joined #RubyOnRails
[11:36:35] scope2229: yer it is but why suddenly want you to use rspec
[11:37:21] sevenseacat: dont look at me, i dont even know what tutorial you're talking about.
[11:38:01] pwnd_nsfw: THE tutorial
[11:39:57] rake_db_migrate: has joined #RubyOnRails
[11:43:09] sevenseacat: there can be only one.
[11:43:22] pwnd_nsfw: has left #RubyOnRails: ("Leaving")
[11:43:35] blackmes1: has joined #RubyOnRails
[11:44:21] pwnd_nsfw: has joined #RubyOnRails
[11:45:29] chagel: has joined #RubyOnRails
[11:46:45] Lumia930: has joined #RubyOnRails
[11:50:21] mauro1254: has joined #RubyOnRails
[11:51:48] King_Rex: has joined #RubyOnRails
[11:52:17] rake_db_migrate: has joined #RubyOnRails
[11:52:39] trinaldi: has joined #RubyOnRails
[11:52:40] King_Rex: has joined #RubyOnRails
[11:53:09] scope2229: haha michael harts
[11:53:44] crameth: has joined #RubyOnRails
[11:53:56] scope2229: how would i use rspec then jus gem 'rspec'
[11:54:13] sevenseacat: thats one of the better ones out there. if youre having such big problems with it, you've likely skipped or missed parts.
[11:54:17] dvinciguerra_: has joined #RubyOnRails
[11:54:40] FooMunki: has joined #RubyOnRails
[11:55:21] sp1rs: has joined #RubyOnRails
[11:56:00] crameth: has joined #RubyOnRails
[11:56:08] sevenseacat: there's no mention of rspec in section 6 because the tutorial is using minitest
[11:56:24] sevenseacat: so it generates a test/models/user_test.rb
[11:56:50] sevenseacat: https://www.railstutorial.org/book/modeling_users#code-generate_user_model
[11:57:03] scope2229: but then tells you to edit and modify spec/model
[11:57:20] Lumia930: has joined #RubyOnRails
[11:57:20] scope2229: i just did a search for RSPEC to see if i had missed something
[11:57:36] scope2229: box 1.1 is the only mention and its about eliminating it
[11:57:43] sevenseacat: theres no mention of rspec in the entire chapter
[11:58:37] crameth: has joined #RubyOnRails
[11:58:52] adlerdias: has joined #RubyOnRails
[11:59:25] scope2229: listing 6.4
[11:59:49] scope2229: listing 6.5
[11:59:49] sevenseacat: shows a minitest test
[11:59:55] scope2229: using rspec
[11:59:55] sevenseacat: also shows a minitest test
[12:00:18] sevenseacat: https://www.railstutorial.org/book/modeling_users#code-default_user_test ?
[12:01:12] scope2229: yer the name of the file i dont have because im not using rspec
[12:01:21] scope2229: i have all the minitest
[12:01:48] sevenseacat: again, this tutorial has nothing to do with rspec, it does not use it
[12:01:49] sevenseacat: there is no mention of it
[12:02:04] scope2229: whah yours is a different book ?????
[12:02:07] pwnd_nsfw: scope2229, you should just buy Rails 4 in Action bro
[12:02:13] dipnlik: has joined #RubyOnRails
[12:02:20] scope2229: http://rails-4-0.railstutorial.org/book/modeling_users#code-generate_user_model
[12:02:38] sevenseacat: yeah thats a really old version
[12:02:44] scope2229: is any better than michaels
[12:02:48] sevenseacat: that does use rspec it seems
[12:02:49] sevenseacat: its the same book
[12:02:59] pwnd_nsfw: scope2229, you should just buy Rails 4 in Action bro
[12:03:01] scope2229: its 3rd gen
[12:03:11] scope2229: i refuse to give up
[12:03:24] scope2229: oncxe i finish it again i will
[12:03:48] scope2229: seven cast so which book to follow yours or mine hahaha
[12:04:04] sevenseacat: the one i linked is the current version, using the current version of rails.
[12:04:12] sevenseacat: the version of rails in yours is no longer supported.
[12:04:25] scope2229: but its 4.0
[12:04:34] scope2229: im still using 4.2.6
[12:04:41] sevenseacat: then you're doing things quite wrong
[12:04:54] sevenseacat: and no wonder you keep running into problems
[12:05:00] scope2229: man i never had these problems with python
[12:05:20] pwnd_nsfw: Am I muted or something?
[12:05:27] sevenseacat: if you followed a python 2 tutorial while using python 3, you certainly would have these problems
[12:05:32] antgel: has joined #RubyOnRails
[12:05:33] sevenseacat: pwnd_nsfw: i can see you :P
[12:05:47] scope2229: i can see i just dont want to give up on the tutorial
[12:05:57] sevenseacat: also, comparing a framework and a language doesnt really make much sense
[12:05:59] pwnd_nsfw: Yous hould give up on it
[12:06:03] pwnd_nsfw: and get R4IA
[12:06:18] sevenseacat: but to each their own i guess
[12:07:13] delgiudices: has joined #RubyOnRails
[12:08:54] sleungcy: has joined #RubyOnRails
[12:09:10] antgel: Hi all. Hope it's not OT to talk about CI / tests here. Our org grew and we're suffering. We use Jenkins to run minitests on every branch that a developer wants to submit to staging. The whole process including deploying to staging if successful, takes 20 minutes, which adds up when you have 5-6 developers in the queue (and even then their deploy may not succeed)
[12:09:28] chipotle: has joined #RubyOnRails
[12:10:05] antgel: Interested to hear any tips / strategies that people have used for finding a good balance between maintaining code quality, and minimizing time that developers have to wait to get feedback, and that Product Owners have to wait to see their features on staging
[12:11:11] sevenseacat: the developers cant run the tests on their own computers? they have to get their feedback from CI?
[12:11:17] IrishGringo: has joined #RubyOnRails
[12:11:44] antgel: sevenseacat: It's a sore point. Laziness / imperfect dev environments, etc
[12:12:04] M-shine: has joined #RubyOnRails
[12:12:12] antgel: But I can bring it up (again) with the VP.
[12:12:13] King_Rex: has joined #RubyOnRails
[12:12:56] sevenseacat: that would seem to be the most obvious way to get rid of the CI bottleneck
[12:13:57] DoubleMalt: has joined #RubyOnRails
[12:14:45] antgel: Well, yes. But tests need to be run with the developer's branch *against staging*, which is something that our CI is configured to do. There are other considerations
[12:15:18] sevenseacat: well I can only offer suggestions based on the limited knowledge you give :)
[12:15:33] tjvc: has joined #RubyOnRails
[12:15:34] antgel: I'm trying to get our CI guru to join the party here ;)
[12:15:50] tjvc: has joined #RubyOnRails
[12:17:05] aegis3121: has joined #RubyOnRails
[12:17:16] antgel: sevenseacat: I think reist is joining... :)
[12:17:50] sevenseacat: eep, hopefully someone who knows more about this stuff than me also comes along then
[12:18:10] bbrowning: has joined #RubyOnRails
[12:19:04] solars: I've got a model with attribute foreign_id that is updated daily. When updating, all the instances that are not in the current run but have a foreign_id get their id removed. How would you implement this? I could clear all ids before updating, but as the update takes a while I would risk wrong data in the frontend
[12:19:26] Denart_: has joined #RubyOnRails
[12:19:44] reist: has joined #RubyOnRails
[12:20:31] moep: has joined #RubyOnRails
[12:21:10] aegis3121: has joined #RubyOnRails
[12:22:14] voidDotClass: has joined #RubyOnRails
[12:22:25] context: solars: transactions. only remove the ids that are suppose to be removed...
[12:23:58] aegis3121: has joined #RubyOnRails
[12:25:55] brendan-: has joined #RubyOnRails
[12:29:02] Ergo: has joined #RubyOnRails
[12:30:54] solars: context, the problem is that the iterations for the updates take a while so I'm not sure if it's good to wrap that into a transaction
[12:41:12] sudoubuntu: has joined #RubyOnRails
[12:41:46] baweaver: has joined #RubyOnRails
[12:43:38] someish: has joined #RubyOnRails
[12:43:48] rake_db_migrate: has joined #RubyOnRails
[12:45:46] context: gotcha. vague problem with vague question
[12:46:18] sevenseacat: is why i ignored it
[12:49:02] halfamind: has joined #RubyOnRails
[12:51:35] rake_db_migrate: has joined #RubyOnRails
[12:51:35] flashpoint9: has joined #RubyOnRails
[12:53:54] nfk|laptop: has joined #RubyOnRails
[12:56:08] dionysus69: has joined #RubyOnRails
[12:58:27] drbayer: has joined #RubyOnRails
[12:58:39] weckl: has joined #RubyOnRails
[12:58:54] solars: I expected sevenseacat to ignore it :)
[12:59:08] solars: anyway, I found a solution - thanks context
[13:00:00] SeanLazer: has joined #RubyOnRails
[13:04:11] pawnbox: has joined #RubyOnRails
[13:04:39] jetpack_joe: has joined #RubyOnRails
[13:05:04] _Tariq: has joined #RubyOnRails
[13:07:10] gormandy: has joined #RubyOnRails
[13:09:37] sleungcy: has joined #RubyOnRails
[13:11:35] finnnnnnnnnnn: has joined #RubyOnRails
[13:12:43] twilling: has joined #RubyOnRails
[13:13:10] hxegon: has joined #RubyOnRails
[13:14:25] jmignault: has joined #RubyOnRails
[13:15:46] rake_db__: has joined #RubyOnRails
[13:16:26] ekinmur: has joined #RubyOnRails
[13:18:31] ZerGabriel: has joined #RubyOnRails
[13:18:48] arthurnn: has joined #RubyOnRails
[13:21:15] arup_r: has joined #RubyOnRails
[13:21:30] fmcgeough: has joined #RubyOnRails
[13:21:42] sudoubuntu: has joined #RubyOnRails
[13:22:45] halfamind: has joined #RubyOnRails
[13:23:53] diegoaguilar: has joined #RubyOnRails
[13:24:41] pawnbox: has joined #RubyOnRails
[13:26:31] sudoubuntu: has joined #RubyOnRails
[13:27:29] chagel: has joined #RubyOnRails
[13:28:23] leftpad: has joined #RubyOnRails
[13:30:05] halfamind: has joined #RubyOnRails
[13:30:09] pawnbox: has joined #RubyOnRails
[13:31:48] lord4163: has joined #RubyOnRails
[13:32:52] joshkovach: has joined #RubyOnRails
[13:34:08] finnnnnnnnnnn: has joined #RubyOnRails
[13:34:21] crystal77: has joined #RubyOnRails
[13:38:50] SPYGAME: has joined #RubyOnRails
[13:41:10] big|bad|wolf: has joined #RubyOnRails
[13:41:33] halfamind: has joined #RubyOnRails
[13:42:35] RegulationD: has joined #RubyOnRails
[13:42:46] halfamind: has joined #RubyOnRails
[13:43:32] halfamind1: has joined #RubyOnRails
[13:47:12] dstarh: has joined #RubyOnRails
[13:48:24] quazimodo: has joined #RubyOnRails
[13:49:06] dstarh: On occasion I'll create a few fixtures via copy/pasta and forget to change one of the names which of course just makes the first one essentially not exist which can be confusing to debug if you don't notice. Is there any way to give you a warning if a fixtire in a file overrides another fixture?
[13:50:04] rubyonrailed: has joined #RubyOnRails
[13:54:38] sp1rs: has joined #RubyOnRails
[13:54:44] voidDotClass: i'm sending an uploaded file to a controller for testing, but the file arrives as a closed stream, and i get an IO error. any ideas?
[13:55:23] voidDotClass: #<Rack::Test::UploadedFile:0x007fa0d88d9db8 @content_type="image/jpeg", @original_filename="demon.jpg", @tempfile=#<Tempfile:/tmp/demon.jpg20160404-1777-1bdd4m7 (closed)
[13:55:37] voidDotClass: IOError: closed stream
[13:56:21] n008f4g_: has joined #RubyOnRails
[13:56:47] sp1rs: has joined #RubyOnRails
[13:58:51] voidDotClass: oddly the file still gets uploaded
[13:58:56] voidDotClass: but i still see that error
[13:59:33] voidDotClass: https://gist.github.com/aliakhtar/e771fe335b4c2d4b87299339b0969bdc
[13:59:37] voidDotClass: that's the upload method
[13:59:57] voidDotClass: ahhhhhhhhh, got it
[14:00:02] voidDotClass: i was re-using the file, i think
[14:00:08] voidDotClass: using it multiple times
[14:01:05] stannard: has joined #RubyOnRails
[14:02:34] deur-_: has joined #RubyOnRails
[14:03:55] big|bad|wolf: has joined #RubyOnRails
[14:07:22] ruid: has joined #RubyOnRails
[14:07:35] Donkoko: has joined #RubyOnRails
[14:08:41] Lumia930: has joined #RubyOnRails
[14:08:48] sandelius: has joined #RubyOnRails
[14:09:14] Donkoko: Hey, everyone. I have an action with a xml response, however when I use the `_url` helper, it doesn't append the .xml extension so the link doesn't work. Anyone has a suggestion how to tackle this?
[14:10:20] sleungcy: has joined #RubyOnRails
[14:13:44] ddv: Donkoko: url helper? You should be using a path helper created from your routes.rb
[14:14:04] Tempesta: has joined #RubyOnRails
[14:17:08] Donkoko: ddv: url helper uses the _path helper and prepends to it current host, port and path prefix
[14:17:23] Donkoko: ddv: and in my case I need the full url, not just the path.
[14:17:51] StevenXL: has joined #RubyOnRails
[14:18:06] Donkoko: And anyways the _path helper doesn't add the file extension
[14:18:57] context: so, anyone here use active_model_serializers ? whats the proper way to serialize an array... the docs dont show shit
[14:19:17] maxx88: has joined #RubyOnRails
[14:19:58] artto: has joined #RubyOnRails
[14:20:07] Donkoko: ddv: I figured it out. You can pass a format as an argument and it will append it. In my case its sitemap_matches_url(:format => :xml)
[14:20:45] dstarh: context did you google? this is the second result for active_model_searializers array http://stackoverflow.com/questions/17542793/how-do-you-initialize-an-activemodelserializer-class-with-an-activerecordrel
[14:21:10] ddv: Donkoko: show some code
[14:21:28] context: yeah... i was kind of hoping there was a more 'integrated way'. serializing a single object is just automatic
[14:21:36] context: then a colelction its like .... no.. do all this bs
[14:22:15] context: "we're smart enough to relate App to AppSerializer but to stupid to relate [App] to [AppSerializer]"
[14:22:24] context: if you get what i mean
[14:22:30] context: thnx though
[14:25:27] hightower3: has joined #RubyOnRails
[14:26:22] context: oh awesome. according to docs its suppose to be doing that
[14:29:15] tvw: has joined #RubyOnRails
[14:32:42] moep: has joined #RubyOnRails
[14:33:34] pawnbox_: has joined #RubyOnRails
[14:34:34] _Sypheren_: has joined #RubyOnRails
[14:35:24] chouhoulis: has joined #RubyOnRails
[14:35:30] context: yeah each_serializer doesnt even work according to docs.
[14:36:22] StevenXL: has joined #RubyOnRails
[14:36:22] StevenXL: has joined #RubyOnRails
[14:37:35] mdel: has joined #RubyOnRails
[14:39:43] adavia: has joined #RubyOnRails
[14:40:05] context: nm, its cause im using Sequel not ActiveRecord
[14:40:21] context: cause Relation is so much different than Dataset
[14:41:08] griffindy: has joined #RubyOnRails
[14:44:01] RegulationD: has joined #RubyOnRails
[14:44:35] pawnbox: has joined #RubyOnRails
[14:44:54] pawnbox: has joined #RubyOnRails
[14:45:00] sp1rs: has joined #RubyOnRails
[14:46:03] moeabdol1: has joined #RubyOnRails
[14:50:51] krz: has joined #RubyOnRails
[14:53:13] dipnlik: has joined #RubyOnRails
[14:54:48] jgt: has joined #RubyOnRails
[14:58:37] jmignault: has joined #RubyOnRails
[14:58:53] pawnbox: has joined #RubyOnRails
[14:59:41] d0nn1e: has joined #RubyOnRails
[15:01:10] aegis3121: has joined #RubyOnRails
[15:01:11] SteenJobs: has joined #RubyOnRails
[15:01:59] pawnbox: has joined #RubyOnRails
[15:02:26] akshat: has joined #RubyOnRails
[15:03:21] Mia: has joined #RubyOnRails
[15:03:50] SteenJobs: has joined #RubyOnRails
[15:07:28] SteenJobs: has joined #RubyOnRails
[15:09:02] SteenJobs: has joined #RubyOnRails
[15:09:44] SteenJobs: has joined #RubyOnRails
[15:09:54] dionysus69: has joined #RubyOnRails
[15:11:06] sleungcy: has joined #RubyOnRails
[15:14:27] SteenJobs: has joined #RubyOnRails
[15:17:12] rake_db_migrate: has joined #RubyOnRails
[15:17:20] SteenJobs: has joined #RubyOnRails
[15:18:41] Donkoko: Anyone with experience with the xml builder or Rails? I need to do create <xhtml:link> however when I do `xml.xhtml :live` I get a syntax error and I can't seem to figure out how to make it work.
[15:21:53] SteenJobs: has joined #RubyOnRails
[15:23:18] n008f4g_: has joined #RubyOnRails
[15:24:56] SteenJobs: has joined #RubyOnRails
[15:25:22] jmignault: has joined #RubyOnRails
[15:25:35] simonista: has joined #RubyOnRails
[15:26:22] tjvc: has joined #RubyOnRails
[15:26:27] GnuYawk: has joined #RubyOnRails
[15:26:33] tjvc: has joined #RubyOnRails
[15:26:48] GnuYawk: has joined #RubyOnRails
[15:28:45] drbayer: has joined #RubyOnRails
[15:29:43] AzaToth: has joined #RubyOnRails
[15:29:48] simonista: Hey All, I have an issue applying the initializer in https://groups.google.com/forum/#!topic/rubyonrails-security/9oLY_FCzvoc. More details and a suggested fix here: https://gist.github.com/simonista/3b2e2686359e7e6d17b94914828faf1a. Does that seem reasonable?
[15:30:27] disgrntld: has joined #RubyOnRails
[15:30:27] SteenJobs: has joined #RubyOnRails
[15:32:34] GnuYawk: has joined #RubyOnRails
[15:33:16] SteenJobs: has joined #RubyOnRails
[15:34:05] mikecmpbll: has joined #RubyOnRails
[15:35:28] jmignault: has joined #RubyOnRails
[15:36:02] SteenJobs: has joined #RubyOnRails
[15:37:03] fedexo: has joined #RubyOnRails
[15:37:20] mikecmpbll: matthewd: can I pm you a quick question?
[15:37:36] rwsq1: has left #RubyOnRails: ("Ex-Chat")
[15:38:09] akshat_: has joined #RubyOnRails
[15:38:49] SteenJobs: has joined #RubyOnRails
[15:38:51] sleungcy: has joined #RubyOnRails
[15:41:31] chouhoulis: has joined #RubyOnRails
[15:42:49] djbkd: has joined #RubyOnRails
[15:44:00] qejk: has joined #RubyOnRails
[15:46:25] rwsq1: has joined #RubyOnRails
[15:46:33] SteenJobs: has joined #RubyOnRails
[15:48:12] B1n4r10: has joined #RubyOnRails
[15:49:03] diegoaguilar: has joined #RubyOnRails
[15:51:16] Trynemjoel: has joined #RubyOnRails
[15:54:05] mhoungbo: has joined #RubyOnRails
[15:54:27] [Butch]: has joined #RubyOnRails
[15:57:35] stevenxl_: has joined #RubyOnRails
[15:58:00] SteenJobs: has joined #RubyOnRails
[15:58:49] akshat: has joined #RubyOnRails
[15:59:06] ramfjord: has joined #RubyOnRails
[16:01:09] pawnbox_: has joined #RubyOnRails
[16:02:17] dipnlik: has joined #RubyOnRails
[16:02:31] StevenXL: has joined #RubyOnRails
[16:03:13] StevenXL: (And ladies).
[16:03:27] SteenJobs: has joined #RubyOnRails
[16:03:41] StevenXL: I have a quick question. I have a model called Organization. It has many individuals, and I've stubbed it out so that organization.individuals returns an array
[16:03:50] StevenXL: allow(organization).to receive(:individuals) do
[16:03:50] StevenXL: [business_owner1, business_owner2]
[16:06:26] SteenJobs: has joined #RubyOnRails
[16:06:45] StevenXL: unfortunately, what I am testing also makes a call to organization.individuals.business_owners. How can I stub out a chained call liek this?
[16:07:26] tjohnson: has joined #RubyOnRails
[16:07:52] Maletor: has joined #RubyOnRails
[16:09:59] drewdfw: has joined #RubyOnRails
[16:10:13] SteenJobs: has joined #RubyOnRails
[16:10:29] mhoungbo: has joined #RubyOnRails
[16:10:55] StevenXL: Ah - I see. There's a facility for this in RSpec: https://relishapp.com/rspec/rspec-mocks/docs/working-with-legacy-code/message-chains
[16:11:55] smathy: has joined #RubyOnRails
[16:13:54] chouhoulis: has joined #RubyOnRails
[16:16:13] yellow5: has joined #RubyOnRails
[16:17:54] baweaver: has joined #RubyOnRails
[16:21:16] SteenJobs: has joined #RubyOnRails
[16:25:08] SteenJobs: has joined #RubyOnRails
[16:27:48] SteenJobs: has joined #RubyOnRails
[16:29:58] simonista: has joined #RubyOnRails
[16:31:03] syndikate: has joined #RubyOnRails
[16:31:47] GnuYawk: has joined #RubyOnRails
[16:32:38] alex88: has joined #RubyOnRails
[16:33:18] maletor_: has joined #RubyOnRails
[16:35:07] rake_db_migrate: has joined #RubyOnRails
[16:35:34] SteenJobs: has joined #RubyOnRails
[16:37:16] hightower2: has joined #RubyOnRails
[16:37:33] PedramT: has joined #RubyOnRails
[16:37:48] flashpoint9: has joined #RubyOnRails
[16:38:22] SteenJobs: has joined #RubyOnRails
[16:39:01] htmldrum: has joined #RubyOnRails
[16:42:29] sandelius: has joined #RubyOnRails
[16:43:41] SteenJobs: has joined #RubyOnRails
[16:44:16] djbkd: has joined #RubyOnRails
[16:44:49] smathy: has joined #RubyOnRails
[16:45:52] phredus: has joined #RubyOnRails
[16:46:10] freddymungo: has joined #RubyOnRails
[16:46:33] benlieb: has joined #RubyOnRails
[16:47:14] Donkoko: Hey everyone, for some reason my xml builder(Rails 3.2) is not liking the .tag! method and is totally breaking the response formatting so its not xml anymore. Any ideas. I am getting desperate with this.... https://gist.github.com/DonKoko/6595d5491fc2d2688aa144c43785a25f
[16:51:23] sp1rs: has joined #RubyOnRails
[16:54:45] dipnlik: has joined #RubyOnRails
[16:54:51] SteenJobs: has joined #RubyOnRails
[16:55:19] mhoungbo: has joined #RubyOnRails
[16:55:40] a|i: has joined #RubyOnRails
[16:55:47] a|i: has left #RubyOnRails: ()
[16:56:17] B1n4r10: has joined #RubyOnRails
[16:56:22] Donkoko: has joined #RubyOnRails
[16:57:54] SteenJobs: has joined #RubyOnRails
[16:58:05] Donkoko: has joined #RubyOnRails
[16:59:31] rubyonrailed: has joined #RubyOnRails
[17:00:39] SteenJobs: has joined #RubyOnRails
[17:01:04] mikecmpbll: has joined #RubyOnRails
[17:01:45] ZerGabriel: has left #RubyOnRails: ()
[17:03:51] jinette: has joined #RubyOnRails
[17:04:27] snowy: has joined #RubyOnRails
[17:05:18] tubbo: Donkoko: define "is not liking"
[17:05:23] CodaBrink: has joined #RubyOnRails
[17:05:28] SteenJobs: has joined #RubyOnRails
[17:05:59] epochwolf: Donkoko: where did you copy sitemap_tournaments.xml from?
[17:06:10] smathy: tubbo, based on the gist, it's not producing XML at all, just a bare string of space separated values.
[17:06:20] Fubarius: has joined #RubyOnRails
[17:06:28] epochwolf: smathy: that's what xml looks like when chrome tries to render it.
[17:06:50] epochwolf: I'm guessing he opened the xml in a web browser with the wrong mime type.
[17:06:51] Donkoko: smathy: Exactly. And that only happens when i put the xml.tag!. If its not there the xml looks normal
[17:07:06] Donkoko: this is where i found the example http://www.leanpanda.com/blog/2015/09/12/alternate-sitemap/
[17:07:21] tubbo: `for tournament_season in @tournament_seasons do` also jumped out at me
[17:07:32] smathy: epochwolf, I can't help what the OP does.
[17:07:33] Donkoko: its also on here http://api.rubyonrails.org/classes/ActionView/Base.html
[17:07:40] epochwolf: tubbo: that's validate ruby.
[17:07:59] tubbo: hah yeah i figured otherwise a SyntaxError would be what we were dealing with :D
[17:08:13] smathy: epochwolf, but yeah, see, not just a browser issue, it's really not generating XML.
[17:08:19] SteenJobs: has joined #RubyOnRails
[17:09:47] epochwolf: smathy: until OP responds, I'm going to assume he's looking at it in a browser and chrome's autodection is failing.
[17:10:14] smathy: epochwolf, no, he said above "smathy: Exactly..."
[17:11:00] SteenJobs: has joined #RubyOnRails
[17:11:40] solars: has joined #RubyOnRails
[17:12:11] epochwolf: nevermind then
[17:12:12] Donkoko: something i found out is that, if i change the "xhtml:link" to just "link" it works, but then generates the wrong xml tag, that google wouldnt recognize.
[17:13:02] tubbo: you ever try xml.send('xhtml:link')?
[17:13:42] rogue_koder: has joined #RubyOnRails
[17:13:44] SteenJobs: has joined #RubyOnRails
[17:13:55] Donkoko: let me give it a shot
[17:14:36] Devalo: has joined #RubyOnRails
[17:14:45] smathy: Donkoko, ok, so sounds like maybe something to do with the content of the XML and how that's being parsed/seen by Builder.
[17:16:02] ZerGabriel: has joined #RubyOnRails
[17:16:25] Donkoko: tubbo: .send just generates a <send> tag
[17:16:44] DoctorMonocular: has joined #RubyOnRails
[17:16:47] epochwolf: I'm reading through the code at https://github.com/jimweirich/builder/
[17:16:57] epochwolf: tag! is defined here: https://github.com/jimweirich/builder/blob/master/lib/builder/xmlbase.rb#L41
[17:16:59] smathy: Donkoko, (and tubbo) method_missing just calls tag! - there's no "it's something to do with the tag! method" thing in play here.
[17:17:12] chouhoulis: has joined #RubyOnRails
[17:17:14] smathy: It's something to do with your XML.
[17:17:14] Donkoko: smathy: sounds plausible. Let me test with some different content
[17:17:25] fumduq: has joined #RubyOnRails
[17:17:42] syndikate: has joined #RubyOnRails
[17:17:59] smathy: ...like the namespace doesn't define any of the elements you're using or something, and that xhtml:link tag is triggering it all.
[17:18:03] Donkoko: smathy: when i call the tag! with a string different than "xhtml:link" it works
[17:18:19] smathy: Donkoko, right, as I said, it's to do with your XML, not the tag! method.
[17:18:22] Donkoko: so my assumption is that the xhtml part is causing the problem
[17:18:57] epochwolf: Donkoko: What happens if you do xhtml:span?
[17:19:19] SteenJobs: has joined #RubyOnRails
[17:19:44] Donkoko: epochwolf: same response as with the xhtml:link, the broken one...
[17:19:57] Devalo: dyld: Symbol not found: _rb_data_typed_object_alloc Any ideas? Just installed ruby 2.3.0 and new install of rails. 4.2.6. Tried gem pristine all without any luck.
[17:19:58] djbkd: has joined #RubyOnRails
[17:20:43] Donkoko: epochwolf: just 'xhtml' also works. Seems like the semicolumn is what breaks it
[17:21:43] wldcordeiro: has joined #RubyOnRails
[17:21:58] epochwolf: Donkoko: that's invoking namespaces.
[17:21:58] cnk: has joined #RubyOnRails
[17:22:00] SteenJobs: has joined #RubyOnRails
[17:22:23] Pisoglenteez: has joined #RubyOnRails
[17:22:25] epochwolf: It shouldn't break anything... :/
[17:22:27] Pisoglenteez: Errno::EACCES: Permission denied @ rb_sysopen - /var/deploy/***_production/web_head/releases/20160404153032/tmp/cache/spree%2Fapp_configuration%2Fdefault_country_id20160404-17072-1qpjeu5
[17:22:37] Pisoglenteez: hello I am getting this on cloud66 at db:seed
[17:23:16] Devalo: My rails install on ruby 2.2.2 is running perfectally
[17:23:25] rakm: has joined #RubyOnRails
[17:23:28] Devalo: perfectly
[17:23:30] smathy: Donkoko, where did you get this goal XML from? Why are you trying to namespace the link element, etc.?
[17:23:33] cnk: Pisoglenteez: Seems pretty clear - permission error. Check the file / directories quoted
[17:24:47] SteenJobs: has joined #RubyOnRails
[17:25:06] Donkoko: smathy: Thats the tag that google requres for internationalization. The answer is here https://support.google.com/webmasters/answer/2620865?hl=en
[17:25:36] smathy: Devalo, how do you have both ruby versions installed at the same time?
[17:25:45] Devalo: smathy: rvm
[17:26:45] scope: has joined #RubyOnRails
[17:27:34] SteenJobs: has joined #RubyOnRails
[17:27:35] roelof: has joined #RubyOnRails
[17:29:10] smathy: Donkoko, ok, so yeah, your code seems to match that. Maybe a Builder bug, I'd try using some other way to generate this XML. Nokogiri::XML::Builder maybe.
[17:29:27] Pisoglenteez: cnk changing permissions doesnt help much
[17:29:57] smathy: Devalo, ok, sorry, I have no clue about rvm. The error suggests that your 2.3 ruby is using your 2.2 gems.
[17:29:58] cnk: Then you are doing it wrong.
[17:29:59] roelof: Helllo, I have this code: http://lpaste.net/158438 . How can I send the "article" with the render function so it displays the article ?
[17:30:18] Donkoko: smathy: Ok, thanks Smathy. I was already starting to think its a Builder bug.
[17:30:26] tubbo: Pisoglenteez: "permission denied" can also be thrown when you're not the user who owns that file and are attempting to read it
[17:30:27] cnk: You need to show ls -l for the directory in question and what user you are running db:seed as
[17:30:50] DoctorMonocular: has joined #RubyOnRails
[17:31:02] cnk: from the /tmp/cache part I am guessing this is actually writing - but too little info to tell
[17:31:15] mikecmpbll: has joined #RubyOnRails
[17:31:27] Donkoko: roelof: we need some more context. From what I see you will for sure need to pass your object to the partial. It wont render if there is no object
[17:31:31] smathy: Donkoko, epochwolf makes a good point actually, how are you viewing the XML here? Are you using curl or something on the command line?
[17:31:48] flashpoint9: has joined #RubyOnRails
[17:32:00] smathy: roelof, you've been here long enough to know which paste service to use too.
[17:32:00] tubbo: roelof: you can pass locals into the 2nd argument of `render`, so `render partial: 'foo', local_1: 'value'`
[17:32:16] adavia: can i do this a bit simpler? self.likes.find_by_likable_id_and_likable_type(model, model.class.name)
[17:32:29] tubbo: in this case it could be `render partial: 'article', article: article`, then you'd have the `article` local variable available in the _article.html partial.
[17:32:34] SteenJobs: has joined #RubyOnRails
[17:32:35] chouhoulis: has joined #RubyOnRails
[17:32:51] Donkoko: smathy: Just loading the page in my browser.
[17:32:54] tubbo: adavia: sure, pass in the whole model and break it apart in the method itself
[17:32:58] sleungcy: has joined #RubyOnRails
[17:33:03] smathy: Donkoko, right, don't do that. The browser understands XHTML.
[17:33:30] smathy: Donkoko, ...so as soon as the XML is valid XHTML then the browser will parse it and render it differently.
[17:33:55] tubbo: adavia: actually wait did you try `self.likes.where(likable: model)`?
[17:34:02] n008f4g_: has joined #RubyOnRails
[17:34:02] smathy: ^^^ what epochwolf has been saying all along ;)
[17:34:29] Donkoko: smathy: and he was right. I just ran a curl and it renders it properly in my terminal
[17:34:34] rake_db_migrate: has joined #RubyOnRails
[17:34:53] Donkoko: so apparently browsers can only read xml, not xhtml
[17:34:59] smathy: Donkoko, you had one job! ;)
[17:35:16] tubbo: Donkoko: other way around, sort-of.
[17:35:19] adavia: tubbo: yes but that does not work as expected
[17:35:21] smathy: Donkoko, no, they just understand XHTML and will parse and render the tags like they do with HTML.
[17:35:23] Donkoko: smathy: hahah, tell me about it. I spend the last 3 hours fighting with this
[17:35:25] tubbo: actually no you are wrong :D
[17:35:29] Dimik: has joined #RubyOnRails
[17:35:32] tubbo: adavia: ah ok
[17:35:54] smathy: ACTION bows down and worships at the demigod that is epochwolf 
[17:36:08] epochwolf: Donkoko: never use a browser when working with xml, they try to render things.
[17:36:10] Donkoko: smathy: oooh now I get it. Noob me.... Well at least I learned something new. Thanks a bunch guys
[17:36:19] epochwolf: curl is your friend.
[17:36:32] Donkoko: now I even consider it my best friend :)
[17:36:35] tubbo: hmm, there's chrome "XMLView" plugin like there is with JSONView?
[17:36:39] tubbo: that would be useful
[17:36:45] epochwolf: tubbo: ... there's a view source button.
[17:37:03] arup_r: has joined #RubyOnRails
[17:37:07] tubbo: you can't fold stuff though :(
[17:37:31] smathy: dev tools viewer
[17:37:44] tubbo: ahh yeah ok
[17:37:52] tubbo: this is how long it's been since i've had to work with XML haha
[17:38:13] smathy: ^ that's my excuse too.
[17:38:45] smathy: Knowing epochwolf's work life he probably needs no excuse, because he's working with XML today.
[17:38:45] Donkoko: true, in the inspect it already shows it properly
[17:38:48] smathy: SOAP probably.
[17:38:56] roelof: stilll problems . See https://gist.github.com/rwobben/a40766edad349b18878e6c96396a3ffb
[17:38:57] Pisoglenteez: drwxrwxrwt 4 nginx nginx 4096 Apr 4 17:32 tmp this is my tmp
[17:39:21] Snowy_: has joined #RubyOnRails
[17:39:51] epochwolf: smathy: fortunately, next API I'm working on is JSON. Today is making PCI auditors happy.
[17:40:09] epochwolf: I did XML daily 2 jobs ago.
[17:40:28] smathy: Close enough :)
[17:40:35] epochwolf: ACTION still occasionally has dreams in xml.
[17:40:37] Donkoko: Well, we are lucky we have people like you in this channel
[17:40:46] cnk: Pisoglenteez: your tmp within the releases dir specified
[17:41:19] epochwolf: Donkoko: this channel isn't good for my blood pressure... XD I've been yelling at smathy for almost half an hour.
[17:41:52] dipnlik: has joined #RubyOnRails
[17:41:55] Donkoko: roelof: are you sure you are rendering the correct partial. Specify the folder and put a proper trace
[17:41:58] meoblast001: has joined #RubyOnRails
[17:43:14] roelof: Donkoko: yes, the partial is named _article.html.erb and is in the same directory as index.html.erb
[17:44:14] Donkoko: roelof: please make a proper gist with the separate files and a full error trace. I cant help you like this.
[17:44:33] baweaver: has joined #RubyOnRails
[17:44:45] roelof: Donkoko: which trace do you need application/framework trace or a full trace ?
[17:45:20] Donkoko: roelof: just paste the full trace that the error page renders.
[17:46:53] roelof: oke, and a gist for every file or one gist where I put all the files with the name ?
[17:48:07] griffindy: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[17:48:16] Donkoko: roelof: you can add multiple files to a gist. So you should have one file for your index, one for the partial, one for the error
[17:48:24] Donkoko: roelof: show us the controller as well
[17:51:12] roelof: Donkoko: here you have : https://gist.github.com/rwobben/e355a0baeef45b5b71be4d5b4e15844b
[17:52:41] smathy: OMG the trace doesn't actually show the error.
[17:52:59] FCser: has joined #RubyOnRails
[17:53:41] smathy: Seriously roelof, do you not think to yourself what information someone will need to actually understand your problem?
[17:53:53] ramfjord: has joined #RubyOnRails
[17:53:53] roelof: smathy: can you see the error message here : https://learning-rails-wissel-1.c9users.io/
[17:53:55] Donkoko: yep it doesnt
[17:54:12] Donkoko: roelof: i need to see the error message as well
[17:54:20] Cohedrin: has joined #RubyOnRails
[17:54:56] mikecmpbll: has joined #RubyOnRails
[17:55:06] roelof: Donkoko: can you find the culprit here : https://learning-rails-wissel-1.c9users.io/
[17:55:13] Donkoko: yeah, i saw it
[17:55:14] smathy: roelof, put it in your gist.
[17:58:28] baweaver: has joined #RubyOnRails
[18:00:05] roelof: I see what happens. I do a each for every article and name it article . then I say to run a partial and send the article with it. In the form I want to see the title and article do not exist anymore
[18:00:27] roelof: but no clue why
[18:01:08] smathy: roelof, if you use the :partial option like you are then you need to put your local vars in a locals option like: locals: { article: article }
[18:01:47] smathy: roelof, but the shorthand of all this is to just do: `render @articles` instead of that whole @articles.each block/loop.
[18:02:07] joshkovach: has joined #RubyOnRails
[18:03:05] smathy: roelof, assuming @articles is full of Article instances, then Rails will know to iterate over that collection and to lookup the articles/_article partial, and it will also populate the local `article` variable within that partial for you. More here: http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials
[18:03:35] Balzrael: has joined #RubyOnRails
[18:03:40] roelof: smathy: thanks, now I see a lot of articles
[18:04:52] djbkd: has joined #RubyOnRails
[18:06:20] ZerGabriel: has joined #RubyOnRails
[18:07:26] mikecmpbll: has joined #RubyOnRails
[18:08:37] FLeiXiuS: has joined #RubyOnRails
[18:09:45] Cohedrin_: has joined #RubyOnRails
[18:11:09] blackmes1: has joined #RubyOnRails
[18:11:41] FLeiXiuS: has joined #RubyOnRails
[18:12:06] FLeiXiuS: Is it possible to throw exceptions in before_save callbacks?
[18:12:38] smathy: FLeiXiuS, !try
[18:12:38] helpa: FLeiXiuS: Why don't you try it and find out for yourself?
[18:13:44] FLeiXiuS: Let me rephrase, is it normal for that to happen there?
[18:13:49] baweaver: has joined #RubyOnRails
[18:15:06] tubbo: FLeiXiuS: you shouldn't use exceptions for control flow.
[18:15:09] cnk: Perhaps throwing validation errors, yes. But is there another way to do what you want? this might get messy to test and debug
[18:15:14] arup_r: FLeiXiuS: generally returning false is enough to stop the callback chain.
[18:17:21] smathy: arup_r, not generally, specifically it is precisely enough in any before_ callback. Any after_ callback requires an exception to be raised to cancel the save.
[18:17:28] smathy: FLeiXiuS, ^
[18:17:57] manfrin: has joined #RubyOnRails
[18:18:03] arup_r: hhmm true.
[18:18:54] smathy: FLeiXiuS, "normal" is subjective, some people think it's normal to use exceptions in many places. Was that really what you were asking?
[18:19:15] FLeiXiuS: I have before_safe to update hm through relationships, if those fail I wanted to throw an exception that can be seen from the view.
[18:19:28] DoubleMalt: has joined #RubyOnRails
[18:19:30] sonofdirt: has joined #RubyOnRails
[18:20:01] smathy: FLeiXiuS, why is the exception part of that scenario important to you?
[18:20:06] smathy: FWIW - I agree with tubbo that exceptions should not be used for control flow, only for exceptional situations - which, by definition, are not normal situations.
[18:20:23] tubbo: FLeiXiuS: why not add an error to the validations? that can be seen from the view, and won't pollute your exception monitoring service when you deploy to production.
[18:20:38] tubbo: errors.add :base, 'now you fucked up' will turn a model from valid to not valid.
[18:21:26] dnewkerk: has joined #RubyOnRails
[18:21:27] baweaver: has joined #RubyOnRails
[18:21:35] smathy: FLeiXiuS, also, just a nomenclature point, in ruby you should not use "throw" when talking about exceptions, use "raise" because ruby also has the `throw` keyword for doing long jumps.
[18:21:40] yellow5: has joined #RubyOnRails
[18:22:46] njero: has joined #RubyOnRails
[18:22:59] FLeiXiuS: smathy, adding to validations may be the way to go and I agree about throw vs raise.
[18:24:00] FLeiXiuS: tubbo, Thanks for that tid-bit.
[18:24:28] stannard: has joined #RubyOnRails
[18:26:04] _Sypheren_: has joined #RubyOnRails
[18:27:31] SteenJobs: has joined #RubyOnRails
[18:28:28] SteenJobs: can you chain .include(:symbol) for n+2 queries? like @brand.projects.include(:bids).include(:bidder)
[18:28:54] SteenJobs: oh i guess i can just parse it out into two separate vars
[18:28:54] netzfisch: has joined #RubyOnRails
[18:29:40] SteenJobs: actually that wouldn’t work, because then in my view i won’t know which bidders correspond to which projects
[18:30:06] Cohedrin: has joined #RubyOnRails
[18:33:03] mdw: has joined #RubyOnRails
[18:33:32] eyeamaye: has joined #RubyOnRails
[18:34:07] chouhoul_: has joined #RubyOnRails
[18:35:00] SteenJobs: has joined #RubyOnRails
[18:35:23] blackmes1: has joined #RubyOnRails
[18:35:30] polyidus: has joined #RubyOnRails
[18:36:28] blackmesa: has joined #RubyOnRails
[18:37:43] SteenJobs: has joined #RubyOnRails
[18:39:24] djbkd: has joined #RubyOnRails
[18:39:47] Synthead: has joined #RubyOnRails
[18:41:18] PedramT: has joined #RubyOnRails
[18:41:32] eljimmy: has joined #RubyOnRails
[18:41:36] universa1: SteenJobs: .include(bids: :bidder) iirc
[18:42:08] GG: has left #RubyOnRails: ("It's not such a bad thing <3")
[18:42:16] SteenJobs: universa1: yea you got it - found it in the docs
[18:42:18] SteenJobs: universa1: thanks man
[18:42:46] sonofdirt: has joined #RubyOnRails
[18:43:51] sandstrom: has joined #RubyOnRails
[18:44:09] djbkd: has joined #RubyOnRails
[18:44:57] Darmani: has joined #RubyOnRails
[18:45:17] duderonomy: has joined #RubyOnRails
[18:45:36] scepticulous: has joined #RubyOnRails
[18:46:02] Darmani: Is there anyone here who is learning Ruby on Rails? I was looking for someone to perhaps study with.
[18:46:36] darkxploit: has joined #RubyOnRails
[18:47:09] DoctorMonocular: has joined #RubyOnRails
[18:47:59] chouhoulis: has joined #RubyOnRails
[18:48:21] Guest31: has joined #RubyOnRails
[18:48:50] agent_white: has joined #RubyOnRails
[18:49:15] balexander: has joined #RubyOnRails
[18:49:37] MuffinPimp: has joined #RubyOnRails
[18:51:23] SteenJobs: how do you deal with loops in an erb file when you need the value of the current iteration, but you don’t want to repeat given lines of html, like so: https://gist.github.com/jesiegel1/223388267ebf5ffe6482f086b07d8a07#file-show-html-erb-L26 ?
[18:52:01] srinidhi: has joined #RubyOnRails
[18:52:26] epochwolf: Darmani: Your best study partners are going to be 1) A book and 2) A text editor. Pick up a tutorial, start coding, and get yourself learning.
[18:52:54] smathy: Books are your friends.
[18:53:09] epochwolf: Books are friends, not food.
[18:53:24] arup_r: yes.. Books are always best guide.
[18:53:32] smathy: "Hello Mr Booky, how are you today? Oh, feeling a bit flat? Poor thing."
[18:54:07] polyidus: has joined #RubyOnRails
[18:54:08] epochwolf: smathy: hey now. No need to get conscending. Wait until Darmani asks if there's another way. Then you can do that.
[18:54:16] MuffinPimp: has joined #RubyOnRails
[18:54:23] arup_r: I have 1 <div> it is just not moving any where. I have applied many things on it.. :p
[18:54:33] Tref: has joined #RubyOnRails
[18:54:37] epochwolf: arup_r: Might I recommend a book?
[18:55:08] arup_r: I have 1 book, I am reading currently..
[18:55:28] arup_r: I am not asking CSS help here.. just sating my current state.. :D
[18:55:53] epochwolf: arup_r: you're in a help channel. If you state you're having a problem, you are implicitly asking for a solution.
[18:56:07] Frem: has joined #RubyOnRails
[18:56:08] smathy: ...not so implicitly really.
[18:56:16] arup_r: ah.. sorry.. please ignore me.. I already asked it #css
[18:56:44] arup_r: They are trying, but it is so deep.. it is taking time..
[18:56:53] jenrzzz: has joined #RubyOnRails
[18:56:53] jenrzzz: has joined #RubyOnRails
[18:56:55] smathy: When I have a <div> that's just not moving anywhere I use dd and then I move to where it should be and then p
[18:57:01] epochwolf: arup_r: and since you're not asking here, we don't care.
[18:57:07] arup_r: I just came here to support smathy's idea of book..
[18:57:37] arup_r: epochwolf: thank you!
[18:58:02] SteenJobs: arup_r: position: relative; top/bottom/left/right: 20px;
[18:58:23] SteenJobs: i’m gonna go with the implicitly asking for help one
[18:59:21] SteenJobs: has joined #RubyOnRails
[18:59:25] SteenJobs: damn internet in this starbucks is so shitty
[18:59:30] arup_r: sorry it is UL/LI not div. If I replace UL/LI with DIV it solved. But wondering why not list element. SteenJobs I didn't use that.. I used a nice property `direction: rtl` ..
[18:59:35] SteenJobs: did i miss anything exciting?!?!
[18:59:45] arup_r: SteenJobs: No, I was waiting for you
[18:59:51] theblang: has joined #RubyOnRails
[18:59:52] ur5us: has joined #RubyOnRails
[19:00:03] yellow5: has joined #RubyOnRails
[19:00:26] SteenJobs: direction: rtl is for text…you hadn’t mentioned anything about the text being a problem
[19:00:31] SteenJobs: cool though, glad you got it working
[19:01:07] Darmani: epochwolf: Oh hey, I didn't even get a notification you pm'ed me
[19:01:30] Darmani: I am learning. It was just a question if anyone was interested.
[19:02:16] arup_r: Ok,.. wait then.. see the issue.. link: http://codepen.io/anon/pen/zqPvQB?editors=1100 .. In the feed link, button are laid out from right to left, the same technique didn't work out for comments buttons.. I gave the link to show, how interesting the problem is.
[19:02:30] ur5us: has joined #RubyOnRails
[19:03:54] smathy: Darmani, you might find the -talk mailing list a better place to connect, or your local Ruby or Rails meetup group.
[19:04:50] SteenJobs: has joined #RubyOnRails
[19:05:58] pawnbox: has joined #RubyOnRails
[19:07:03] beauby: has joined #RubyOnRails
[19:07:25] epochwolf: arup_r: I have no idea what I'm looking at.
[19:07:46] smathy: arup_r, you think it _might_ have something to do with `direction: rtl;` ?
[19:07:47] arup_r: ok, no issues.. epochwolf, ignore it. Just wanted to show you..
[19:07:53] arup_r: smathy: yes
[19:08:03] arup_r: if I change those to <div> it is fixed
[19:08:12] arup_r: only not working, <ul>, <li>
[19:08:58] smathy: arup_r, ...you want comment on the left, then pencil, star and trash right?
[19:09:21] arup_r: No.. Buttons should start laying out from right of the box
[19:09:30] arup_r: normal flow is left to right
[19:10:00] smathy: arup_r, right, so you're not explaining what's NOT working the way you want. Is it the trash/pencil of the rows?
[19:10:09] arup_r: If you inspect, you will see the feed that has 4 buttons, started laying from right .. and it has space left to the left
[19:10:13] smathy: You want that as pencil then trash?
[19:10:41] tubbo: man i'm really getting sick of the whole "hang forever" thing that spring does when you Ctrl+C
[19:10:44] arup_r: Yes.. those 2 buttons in the comment should layout from the right to left of the <div>
[19:11:46] smathy: arup_r, ok, just that you said that in the feed link the buttons are laid out from right to left, but in the feed section, "Top 3 voted feeds" they're left to right. So confusing, as always.
[19:11:59] yfeldblum: has joined #RubyOnRails
[19:12:31] SteenJobs: has joined #RubyOnRails
[19:12:34] mhoungbo: has joined #RubyOnRails
[19:14:22] aegis3121: has joined #RubyOnRails
[19:14:36] netzfisch: has joined #RubyOnRails
[19:14:42] smathy: arup_r, how are they not? You have the trash first and the pencil second, and the trash is on the right and pencil on the left.
[19:14:46] smathy: arup_r, rtl
[19:15:30] tvw: has joined #RubyOnRails
[19:15:52] smathy: I am, as usual, so confused by you arup_r.
[19:16:12] arup_r: yes, it just flipped there, but not laid out from right inside the div.. because right side is enpty, it consumed the space from left..
[19:16:30] SteenJobs: has joined #RubyOnRails
[19:16:45] Palsson: has joined #RubyOnRails
[19:16:57] arup_r: if you inspect, you will see the content area .. in chrome.. Sorry to confuse you smathy :(
[19:17:59] diegoaguilar: has joined #RubyOnRails
[19:18:11] SteenJobs: has joined #RubyOnRails
[19:18:22] baweaver: has joined #RubyOnRails
[19:18:37] smathy: arup_r, sorry, I can't continue, your explanation is indecipherable.
[19:19:14] arup_r: ok.. no worries... thanks for your help though till now.
[19:20:10] smathy: tubbo, doesn't do that for me, ^C what? `rails c` ?
[19:20:23] arBmind: has joined #RubyOnRails
[19:20:32] lwu_: has joined #RubyOnRails
[19:21:00] SteenJobs: has joined #RubyOnRails
[19:21:03] tubbo: smathy: you don't use spring either
[19:21:33] tubbo: smathy: try running rspec spec and then ^C in the middle of it
[19:21:54] smathy: Oh, I don't rspec.
[19:22:00] smathy: The only hang issue I've had is when I have a spring process running for a dir that I've deleted and re-created with the same name.
[19:22:35] smathy: tubbo, so if you `pkill -f spring` from some other terminal your hung ^C from rspec returns?
[19:24:12] benlieb: has joined #RubyOnRails
[19:27:20] tubbo: smathy: don't think rspec is the issue here
[19:27:46] tubbo: has more to do with how spring loads and re-loads content, i think
[19:27:54] arup_r: Ok, I fixed it http://codepen.io/anon/pen/RajRML ( look the comments list 2 buttons(edit/trash) correctly laid out from right), and not here http://codepen.io/anon/pen/zqPvQB?editors=1100 .. No need any reply. Just wanted to clear myself.. :) thanks
[19:28:00] tubbo: rake test should do the same thing
[19:28:19] smathy: tubbo, well no, running my minitest suite and ^Cing in the middle of it doesn't cause spring to hang.
[19:28:31] smathy: tubbo, did you see my other question?
[19:28:33] tubbo: smathy: are you using spring-watcher-listen
[19:28:46] smathy: Not intentionally.
[19:28:48] tubbo: yeah basically, i can pkill spring or ruby and the hung ^C returns back to a shell prompt.
[19:28:52] tubbo: smathy: then you're not
[19:28:56] tubbo: it's a gem you have to add
[19:29:05] tubbo: that could be it i suppose
[19:31:48] polyidus: has joined #RubyOnRails
[19:32:54] SPYGAME: has joined #RubyOnRails
[19:33:07] B1n4r10: has joined #RubyOnRails
[19:33:27] someish: has joined #RubyOnRails
[19:33:35] Malgorath: has joined #RubyOnRails
[19:34:49] Malgorath: Are there any books that really break down and teach how to do Engine and Gem custom 'plugins'?
[19:35:18] stevednd: has joined #RubyOnRails
[19:36:44] Malgorath: Just curious as I would like to get one just not sure what to get.
[19:38:50] DoctorMonocular: has joined #RubyOnRails
[19:39:14] baweaver: Check through LeanPub
[19:39:21] baweaver: I think i saw a few, but can't remember them.
[19:40:11] SteenJobs: has joined #RubyOnRails
[19:42:05] Malgorath: I have R4ia and just found one of the last chapters has a lot on it so gonna pour through that
[19:42:51] dvinciguerra_: has joined #RubyOnRails
[19:43:05] SteenJobs: has joined #RubyOnRails
[19:43:40] baweaver: a few of the authors are actually in this channel too
[19:43:48] rakm: has joined #RubyOnRails
[19:45:59] SteenJobs: has joined #RubyOnRails
[19:47:21] seamon: has joined #RubyOnRails
[19:47:22] Malgorath: baweaver: yeah, I've talked to them off and on over the last few years since I bought a few of the books. I just never noticed a need for Engines until I got a request for a 'plugin' for Openproject from someone and never even used OP before and the idea of that was quiet overwhelming when I tried to google OP plugins as there is basically nothing to go on .
[19:48:05] _Sypheren_: has joined #RubyOnRails
[19:48:50] SteenJobs: has joined #RubyOnRails
[19:51:45] jinette: has joined #RubyOnRails
[19:52:43] DragonPunch: has joined #RubyOnRails
[19:53:26] yellow5: has joined #RubyOnRails
[19:55:30] pawnbox: has joined #RubyOnRails
[19:55:55] stannard: has joined #RubyOnRails
[19:56:01] dvinciguerra_: has joined #RubyOnRails
[19:57:45] tubbo: Malgorath: an openproject "plugin" might have different characteristics than a rails "plugin" (Engine), fwiw
[19:58:08] tubbo: and since i've never heard of openproject until you came in here asking about plugins for it, i would assume that it's probably not well-documented.
[19:58:27] tubbo: i know that our plugins here at work are built on top of engines, but aren't quite the same thing.
[20:00:36] codezomb: has joined #RubyOnRails
[20:00:42] n008f4g_: has joined #RubyOnRails
[20:01:10] codezomb: anyone aware of a way to filter url segments from the rails log? filter_parameters just handles parameters, but i need to filter a url segment as well.
[20:02:55] smathy: codezomb, because there's sensitive info in the URL?
[20:03:48] codezomb: smathy: yes, unfortunately we needed to create a URL that incorporates a short lived access token.
[20:03:51] CanTonic: has joined #RubyOnRails
[20:04:44] tubbo: that's a hard one...can't think of how you would do that
[20:05:15] tubbo: only drawback with that approach (besides filtering the field out of logs) is that you really have to make sure the app is using SSL all the time..
[20:06:09] codezomb: definitely is, and hopefully we'll resolve this issue soon so it's not a concern. however, I'm faced w/ a pending deployment that needs it :/
[20:06:43] tubbo: codezomb: i wonder if you could sidestep the issue by forwarding logs to logstash/kibana and then filtering them on that side
[20:06:56] codezomb: getting ready to start stashing our logs in elasticsearch as well, and I definitely don't want them in there.
[20:07:21] codezomb: hadn't thought about that.
[20:07:34] tubbo: i have NO idea whether that's even possible :P
[20:08:26] codezomb: I found this, but I couldn't find any usage examples: https://github.com/rails/rails/blob/fe8a6ba3a12452c9ba9cd4da554e65b08df2155c/actionpack/lib/action_dispatch/http/filter_parameters.rb#L46
[20:08:26] chipotle: has joined #RubyOnRails
[20:08:43] codezomb: won't work either.
[20:09:05] codezomb: just a method for filter_parameters haha
[20:10:00] flappynerd: has joined #RubyOnRails
[20:10:33] flappynerd: ok, I have a bit of an oddity... foo.some_association is populated with information, but if I run a method foo.bar and bar attempts to access some_association, the length is zero
[20:10:36] CodaBrink: has joined #RubyOnRails
[20:10:50] flappynerd: any ideas what might cause that? I've been debugging a while now and I don't see anything obvious at the moment
[20:10:52] rubyonrailed: has joined #RubyOnRails
[20:11:16] flappynerd: also odd: foo.bar appears to be working as desired when I use it inside a view
[20:11:33] Aherin: has joined #RubyOnRails
[20:11:38] flappynerd: but inside spec, the association is zero length when inside of bar
[20:13:01] polyidus: has joined #RubyOnRails
[20:14:01] FCser: has joined #RubyOnRails
[20:15:47] smathy: codezomb, if you can't trust storing that in your own logs then you're in trouble. That URL is in the browser history, browser cache, any proxy, firewall between the user and you, the user's ISP logs, etc..
[20:15:50] blackmesa: has joined #RubyOnRails
[20:17:09] codezomb: smathy, that's a valid point. I'm just not a fan of that kind of data laying around. My ideal situation would be for it to be hidden, however at the same time if someone had enough access to obtain this data we really would have bigger problems to be concerned with.
[20:17:40] jinette: has joined #RubyOnRails
[20:17:43] codezomb: normally this information exists in headers only.
[20:17:46] smathy: codezomb, yep, and "laying around" should be irrelevant if "short lived" is short enough.
[20:19:38] flashpoint9: has joined #RubyOnRails
[20:20:00] DoubleMalt: has joined #RubyOnRails
[20:20:07] tubbo: codezomb: yeah the only reason you have to be concerned is when the log files include credit card information, or other intimate financial details, because now you're treading on the app not being PCI-compliant
[20:20:18] smathy: codezomb, my point was just that your logs are the LEAST scary place that the URL will be stored, even SSL will still mean it's stored basically in clear text on your users' machines. If it's really a concern then maybe you want to encrypt it with ActiveSupport::MessageEncryptor or something.
[20:20:22] tubbo: but you obviously wouldn't put a CC number as URL parameters haha
[20:20:55] smathy: codezomb, these concerns are also why those tokens are often single-use.
[20:21:22] DoubleMalt: has joined #RubyOnRails
[20:22:17] PedramT: has joined #RubyOnRails
[20:25:24] pawnbox: has joined #RubyOnRails
[20:26:19] codezomb: yeah, I'll probably just archive the logs for good measure once the url issue is no longer valid.
[20:26:27] codezomb: thanks for the feedback
[20:29:46] Radar: Malgorath: !engines
[20:29:46] helpa: Malgorath: http://guides.rubyonrails.org/engines.html - Engines Guide - Written by Ryan Bigg
[20:30:03] Radar: Malgorath: https://github.com/radar/guides/blob/master/gem-development.md
[20:30:05] Radar: p.s. good morning
[20:32:32] rake_db_migrate: has joined #RubyOnRails
[20:32:48] yellow5: has joined #RubyOnRails
[20:33:07] eyeamaye: If I've got a polymorphic relationship representing 3 distinct models, would it be advisable to have separate controllers for each distinct model for their own unique fields and validation requirements, or is it possible for them to cleanly share the same controller?
[20:33:30] Malgorath: Radar: thanks
[20:34:30] adaedra: Radar: no good morning in caps? 2/10.
[20:35:36] tubbo: 1/10 fwiw
[20:36:33] DoctorMonocular: has joined #RubyOnRails
[20:37:09] blackmesa: has joined #RubyOnRails
[20:37:56] sypheren: has joined #RubyOnRails
[20:40:43] djbkd: has joined #RubyOnRails
[20:40:59] Darmani: Hey Radar ^.^
[20:42:43] flappynerd: has left #RubyOnRails: ("Leaving")
[20:46:02] Radar: hey Darmani
[20:47:37] hahuang65: has joined #RubyOnRails
[20:48:55] delgiudices: has joined #RubyOnRails
[20:49:06] GodFather: has joined #RubyOnRails
[20:51:27] Malgorath: Radar, do you think that engines is the best way to create plugins for Openproject?
[20:51:36] Radar: Malgorath: I have never heard of OpenProject before.
[20:51:46] Radar: I would direct that kind of question to the maintainers.
[20:51:52] Malgorath: its a child of Chili Project
[20:52:36] n008f4g_: has joined #RubyOnRails
[20:53:02] htmldrum: has joined #RubyOnRails
[20:55:25] pawnbox: has joined #RubyOnRails
[20:56:02] dopie: has joined #RubyOnRails
[20:59:37] sudoubuntu: has joined #RubyOnRails
[21:00:30] chipotle: has joined #RubyOnRails
[21:00:41] aegis3121: has joined #RubyOnRails
[21:00:51] stevenxl_: has joined #RubyOnRails
[21:02:30] joshkovach: has joined #RubyOnRails
[21:02:47] benlieb: has joined #RubyOnRails
[21:05:03] tubbo: y'all ever want to just be able to pull data from github/gitignore when you're making new projects?
[21:05:05] tubbo: https://github.com/tubbo/home/blob/master/bin/git-init-ignore
[21:05:56] tubbo: put that in a bin/ dir that is in $PATH, then `git init-ignore Ruby Rails Global/Vim Global/OSX ...` with as many ignores as you want
[21:06:31] yellow5: has joined #RubyOnRails
[21:07:34] jgt1: has joined #RubyOnRails
[21:07:57] workmad3: tubbo: it would be more funky if you didn't add repeated entries :)
[21:09:37] Malgorath: has joined #RubyOnRails
[21:09:40] bob434: has joined #RubyOnRails
[21:10:39] CanTonic: has joined #RubyOnRails
[21:11:05] jinette: has joined #RubyOnRails
[21:11:57] jinette: hello everyone, I get the error 'Your Ruby version is 2.1.5, but your Gemfile specified 1.9.3' even though it is confirmed that I removed 2.1.5 via 'rvm remove 2.1.5'
[21:12:18] jinette: can you help me please?
[21:13:20] tubbo: jinette: you should change `ruby '2.1.5'` in your Gemfile to `ruby '1.9.3'` to specify Gemfile's required ruby version.
[21:13:34] tubbo: frankly i haven't found much use for Gemfile's `ruby`, i just use .ruby-version.
[21:13:42] eyeamaye: If I've got a polymorphic relationship representing 3 distinct models, would it be advisable to have separate controllers for each distinct model for their own unique fields and validation requirements, or is it possible for them to cleanly share the same controller?
[21:14:28] WhatTheRails: has joined #RubyOnRails
[21:14:30] WhatTheRails: For those using React, components rendered through the react-rails gem helper "react_component" are able to share state ? I mean, if one component change, will the other re-render ?
[21:14:54] eyeamaye: WhatTheRails, it depends, are you using a dispatcher?
[21:15:23] WhatTheRails: a dispatcher? I don't even know what's that
[21:15:35] eyeamaye: How are you managing state within your react components?
[21:16:01] WhatTheRails: via setState ?
[21:16:25] pawnbox: has joined #RubyOnRails
[21:16:53] WhatTheRails: getInitialState, setState, etc
[21:17:37] beast: has joined #RubyOnRails
[21:17:42] benlieb: My server is getting a lot of requests for things like /apple-touch-icon.png and /apple-touch-icon-precomposed.png which don't exists. How can I do a substring match on "/apple" in my routes?
[21:17:45] sandstrom: has joined #RubyOnRails
[21:17:54] eyeamaye: So when rails is rendering your template and you pass a prop to it, it's done interacting with your models.
[21:18:01] benlieb: get '/*apple' doesn't seem to work
[21:18:16] adaedra: maybe it's '/apple*' you want?
[21:18:23] jinette: tubbo, ah..I'd already changed the gemfile, but your answer made me realize that I overlooked a whole other thing in deployment..thank you :=
[21:18:48] cnk: benlieb: But I would probably handle those urls on the web server (apache or nginx layer)
[21:18:54] eyeamaye: If you design your components properly react should trigger the rerender for you. But react-rails doesn't provide any communication between rails and react beyond passing the props initially when the template is rendered
[21:19:08] tubbo: benlieb: you can `touch` those files
[21:19:09] tubbo: if you want
[21:19:21] eyeamaye: WhatTheRails: I'd suggest looking into using redux though. https://github.com/suzan2go/react-rails-redux-sample/
[21:19:25] benlieb: cnk: agreed, that's better, but let's say for the sake of argument i wanted the app to do something
[21:19:39] WhatTheRails: the thing is I want to display different components in different parts of the same page, but I want them to talk each other
[21:19:49] cnk: I think adeara's answer
[21:19:59] eyeamaye: WhatTheRails: Redux allows you to do that
[21:20:04] WhatTheRails: I think this is easy if all of them would be contained in the same container.. because I would create a parent component and children
[21:20:24] cnk: WhatTheRails: you need some sort of dispatcher - and React lifecycle methods to coorodinate
[21:20:34] WhatTheRails: but in my case, as I still rendering most of the site with Rails.. I just want to render small React components in specific parts of the site
[21:20:44] eyeamaye: WhatTheRails: redux will not interfere
[21:20:47] eyeamaye: or any dispatcher
[21:21:14] WhatTheRails: so redux is the dispatcher _
[21:21:23] eyeamaye: It's a dispatcher
[21:21:57] WhatTheRails: so redux is the answer
[21:21:59] eyeamaye: There are a bunch of different implementations. Redux seems to be the most popular. Some people prefer other implementations though.
[21:22:10] eyeamaye: I know for a fact redux will work for you though.
[21:22:11] edwinvdgraaf: has joined #RubyOnRails
[21:22:42] magikid: has joined #RubyOnRails
[21:23:41] eyeamaye: I'm trying to find a link that I ran into once that explained how to do exactly what you're trying to do with redux. let me try and find it.
[21:24:22] WhatTheRails: this is quite easy... a site rendered with Rails, that renders a React component that includes a list of guests
[21:24:34] WhatTheRails: whenever a new guest is added, i want the "counter" component to be updated
[21:25:21] WhatTheRails: I guess I could avoid Redux by rendering the whole guests page within a Parent react compnent right ?
[21:25:57] eyeamaye: WhatTheRails: Yeah you probably could but I'd suggest learning how to use dispatchers, they're much nicer than setState
[21:26:30] seaworthy: has joined #RubyOnRails
[21:26:30] seaworthy: has joined #RubyOnRails
[21:26:48] eyeamaye: WhatTheRails: https://egghead.io/series/getting-started-with-redux video tutorial from the creator of redux
[21:27:35] WhatTheRails: thank you eyeamaye
[21:28:10] WhatTheRails: I'll check it out once I get home
[21:28:28] eyeamaye: That's just how to use redux in general. Not your specific problem, still trying to find that link…
[21:29:56] smathy_: has joined #RubyOnRails
[21:30:06] jinette: the problem is not solved. the installed ruby version is the same as the one in the gemfile. but above error still comes. I'd removed 2.1.5 ages ago
[21:32:06] eyeamaye: WhatTheRails: I think you're going to end up putting everything under a single component anyways, but redux will make the communication between those components trivial.
[21:32:16] arBmind1: has joined #RubyOnRails
[21:32:46] seaworthy: has left #RubyOnRails: ()
[21:32:50] timdotrb: has joined #RubyOnRails
[21:36:07] yohle: has joined #RubyOnRails
[21:36:51] eyeamaye: If I've got a polymorphic relationship representing 3 distinct models, would it be advisable to have separate controllers for each distinct model for their own unique field and validation requirements, or are there any conventions that make it easy to have a clean unified controller?
[21:37:00] mostlybadfly: has joined #RubyOnRails
[21:37:08] PlasmaStar: has joined #RubyOnRails
[21:37:28] cnk: eyeamaye: you have asked that 3 times. Clearly no one has experience / opinion / answer
[21:37:58] cnk: Personally if you just need crud, I would try a single controller and see what issues you have
[21:38:07] Trynemjoel: has joined #RubyOnRails
[21:38:18] Didac: has joined #RubyOnRails
[21:38:22] cnk: validation difference should mostly be in the 3 models, so that isn't a differentiator
[21:38:35] smathy: ...or there's just no right/wrong answer inferable from the provided information.
[21:39:12] cnk: but you will need to somehow differentiate ModelA # 1 from ModelB #1
[21:39:15] eyeamaye: cnk: Okay, thanks. I'll try that, and you just answered my second question of whether it's safe to rely on model validation
[21:39:22] cschneid: has joined #RubyOnRails
[21:39:30] cnk: One crazy idea, 3 routes going to one controller
[21:39:52] cnk: and then somehow pick off the model from the route pieces
[21:40:11] cnk: or 3 sets of routes that is
[21:40:43] yfeldblum: has joined #RubyOnRails
[21:41:26] cschneid: Is there a way to set the Rails.cache provider later than application.rb? I'd like to load up a config in an initializer, and set it there
[21:42:08] cnk: I think your initializer should run before application.rb
[21:42:23] cnk: why do you want it later?
[21:42:24] timdotrb: afternoon, all
[21:42:34] cnk: so application.rb has a default thta you then override?
[21:43:45] cschneid: cnk: because I need to load up a config, with some work to be done, and application.rb is a weird place to put code.
[21:43:48] diegoaguilar: has joined #RubyOnRails
[21:43:57] cschneid: from what I remember, it's application.rb -> initializers -> after_initializer hooks
[21:44:02] cschneid: but I may be remembering wrong?
[21:44:08] Coldblackice: has joined #RubyOnRails
[21:44:38] cnk: Not sure. I rarely need to mess around at that level
[21:44:41] eyeamaye: cnk: what do you think about doing something like this to differentiate which type it is? http://pastie.org/10785631
[21:45:06] cschneid: http://guides.rubyonrails.org/initialization.html -- 1.10 is application.rb, 2.3 is initializers
[21:45:14] SteenJobs: has joined #RubyOnRails
[21:46:00] sleungcy: has joined #RubyOnRails
[21:46:13] cnk: In what context? that seems to me you already know the type - eve nif you don't know its class name
[21:46:37] pawnbox: has joined #RubyOnRails
[21:46:56] cnk: What I was concerned about is that the url /somename/1 doesn't tell you which of the types of somename you have
[21:47:42] eyeamaye: Oh okay, I see what you mean. I think I understand what to do now. Thanks!
[21:48:07] eyeamaye: Apologies for my apparently annoying questions :3
[21:49:11] smathy: eyeamaye, actually, repeating every hour or so is fine.
[21:49:53] eyeamaye: smathy: noted
[21:50:08] Trynemjoel: has joined #RubyOnRails
[21:51:53] sudoubuntu: has joined #RubyOnRails
[21:52:51] sonofdirt: has joined #RubyOnRails
[21:58:58] stannard: has joined #RubyOnRails
[22:02:40] htmldrum: has joined #RubyOnRails
[22:04:07] lalalaaa: has joined #RubyOnRails
[22:04:51] neanderslob___: has joined #RubyOnRails
[22:04:59] Darmani: has joined #RubyOnRails
[22:05:20] graft: has joined #RubyOnRails
[22:05:42] graft: hey all, do you know how to report full stack traces in my rails log when i get exceptions?
[22:06:06] georgedrummond: has joined #RubyOnRails
[22:06:06] graft: the only thing i get is an anemic shortened version, even with log_level :debug
[22:06:25] baweaver: has joined #RubyOnRails
[22:06:33] cnk: There is a middleware that trims off the rails parts
[22:07:54] ramfjord: has joined #RubyOnRails
[22:08:16] cnk: graft: http://stackoverflow.com/questions/6908708/how-to-show-longer-traces-in-rails-testcases
[22:08:25] StevenXL: has joined #RubyOnRails
[22:09:47] joshkovach: has joined #RubyOnRails
[22:10:37] blackmesa: has joined #RubyOnRails
[22:12:20] PlasmaStar: has joined #RubyOnRails
[22:14:37] stannard: has joined #RubyOnRails
[22:16:46] CanTonic: has joined #RubyOnRails
[22:17:41] Radar: graft: I would use an exception logging service for that, like Rollbar
[22:18:07] graft: cnk: perfect, thanks
[22:21:32] lalalaaa: Radar: Are you and the rest of your former colleagues comfortable being on the current Spree core team list? It seems it's been taken over by this one guy that's using it, including all of your names, for his own economic benefits. He's also talking sh** about Solidus.
[22:22:10] SteenJobs: has joined #RubyOnRails
[22:24:04] georgedrummond: has joined #RubyOnRails
[22:24:45] flashpoint9: has joined #RubyOnRails
[22:25:31] Doddlin: has joined #RubyOnRails
[22:27:43] lalalaaa: Radar: See the Slack for more. I gots to go -- have a good one!
[22:29:35] jenrzzz: has joined #RubyOnRails
[22:30:38] sadaf2606: has joined #RubyOnRails
[22:30:57] agit0: has joined #RubyOnRails
[22:32:56] greg: has joined #RubyOnRails
[22:33:12] Darmani: Could anyone possibly look at my project and tell me what's wrong with it? I keep getting an error and I'm not sure why. https://github.com/mfifth/ticketee
[22:34:21] moeabdol1: has joined #RubyOnRails
[22:34:36] owenjones: has joined #RubyOnRails
[22:36:26] pawnbox: has joined #RubyOnRails
[22:38:55] aloneintheworld: has joined #RubyOnRails
[22:42:11] stardiviner: has joined #RubyOnRails
[22:42:49] PedramT: has joined #RubyOnRails
[22:43:33] DragonPunch: has joined #RubyOnRails
[22:44:23] tlaxkit: has joined #RubyOnRails
[22:45:15] fmcgeough: has joined #RubyOnRails
[22:46:51] hahuang65: If I wrote my own `destroy` method on an AR class, it doesn't call `after_commit` callbacks. Is there something I need to do besides call `run_callbacks(:destroy)` in my method?
[22:48:07] Radar: Darmani: You fixed all the conflicts then?
[22:48:10] Ropeney: has joined #RubyOnRails
[22:48:20] Darmani: I just made a new repo remember?
[22:48:26] Radar: I have a shocking memorry
[22:48:41] Darmani: haha no worries, but yeah it should be fixed.
[22:48:53] Radar: Which test is failing?
[22:49:12] Darmani: Radar: All of them... =/
[22:49:16] Darmani: Not all of them.
[22:49:17] Inside: has joined #RubyOnRails
[22:49:17] Inside: has joined #RubyOnRails
[22:49:46] baweaver: has joined #RubyOnRails
[22:50:17] Darmani: Radar: All the errors are similar though. They can't use the variables I provided.
[22:50:19] moep: has joined #RubyOnRails
[22:50:49] Darmani: I'm on chapter 6 going over validations, and the "email" variable that Devise gives you doesn't seem to agree with the RSpec tests.
[22:51:00] Darmani: It complains about the "created_at" method too o.o
[22:52:17] Radar: Darmani: Which section of the book are you at?
[22:52:20] Radar: 6.4.1 or something like that?
[22:52:51] Darmani: Radar: I finished chapter six earlier today.
[22:52:51] twilling: has joined #RubyOnRails
[22:53:02] Radar: Darmani: But at the end of ch6 we have all the tests passing
[22:53:24] Darmani: Radar: Yes I know, I don't know where I went wrong though.
[22:53:26] Darmani: That's the problem.
[22:53:40] Radar: Darmani: Looks like you're missing this line from your test: https://github.com/rubysherpas/r4ia_examples/blob/37579572fed5c3c216420441bf4cd1171c586fcc/ticketee/spec/features/creating_tickets_spec.rb#L7
[22:53:59] Radar: In the creating_tickets_spec at least.
[22:54:15] Radar: And then line 25 of your show.html.erb is using the wrong variable
[22:54:15] Darmani: Radar: :O didn't see that one.
[22:54:43] Radar: Darmani: It's a good idea to go through the example app and go back through the commits to the latest section and then compare your code.
[22:55:06] Darmani: Well since I deleted my repo and created a new one I can't really do that :[
[22:55:16] njero: has joined #RubyOnRails
[22:56:59] Darmani: Radar: I didn't know the correct code was on Github though, I'll just compare it and correct any mistakes I see.
[22:57:15] Radar: Darmani: Ah :) Sorry I thought you knew
[22:57:47] Darmani: Radar: No worries, better late than never haha
[23:00:36] mrbubbles: has joined #RubyOnRails
[23:00:45] snowy: has joined #RubyOnRails
[23:01:03] audy: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[23:01:18] Inside_: has joined #RubyOnRails
[23:01:19] mrbubbles: Does anyone use docker for their rails apps? I'm following the thoughtbot tutorial but I can't seem to get javascripts to work properly with the asset pipeline. Of course it might be nothing to do wtih docker and just that I have something setup wrong...
[23:01:19] Bruce_: has joined #RubyOnRails
[23:02:41] manfrin_: has joined #RubyOnRails
[23:03:22] DoctorMonocular: has joined #RubyOnRails
[23:04:46] Bruce_: Hi there, I know this is not a good design but as a workaround for something I has hoping to delegate some attributes of an Activerecord model to another object, but have the delegation still be applied with mass assignment. Any ideas for this? Normal method delegation works well when you call the method for that attribute individually but isn’t applied if a mass assignment alters that attribuet. Thanks!
[23:06:17] flashpoint9: has joined #RubyOnRails
[23:07:08] rubyonrailed: has joined #RubyOnRails
[23:09:24] Bruce_: Please ignore my previous question, I’d just neglected to delegate the setter, all working well now. Thanks!
[23:10:18] stannard: has joined #RubyOnRails
[23:10:59] DragonPunch: has joined #RubyOnRails
[23:11:55] agent_white: has joined #RubyOnRails
[23:13:05] superlou: has joined #RubyOnRails
[23:13:14] Trynemjoel: has joined #RubyOnRails
[23:13:32] dopie2: has joined #RubyOnRails
[23:14:35] Darmani: Radar: The code is almost the same now but I still get the same error of "undefined email method" within the ticket view.
[23:15:54] nickjj: mrbubbles, yes
[23:16:25] flashpoint9: has joined #RubyOnRails
[23:16:27] mrbubbles: nickjj no problems with the rails asset pipeline?
[23:17:08] dstarh: has joined #RubyOnRails
[23:18:32] GodFather: has joined #RubyOnRails
[23:19:36] Darmani: Radar: I was missing one fucking line of code -__- never mind. Thanks man ^.^
[23:20:12] DLSteve: has joined #RubyOnRails
[23:21:18] _Tariq: has joined #RubyOnRails
[23:24:17] dgncn: has joined #RubyOnRails
[23:24:37] GodFather: has joined #RubyOnRails
[23:25:14] nickjj: mrbubbles, none. i build it in the dockerfile
[23:25:50] mrbubbles: nickjj Okay, I wouldn't need to rebuild when adding JS files though would I?
[23:26:07] nickjj: mrbubbles, it depends on how you have things set up
[23:26:23] barajasfab: has joined #RubyOnRails
[23:26:23] nickjj: if you build your assets in the dockerfile, yes you would need to deploy a new docker image for the new assets to take effect
[23:26:56] mrbubbles: Ah right, no i was trying to use Rails assets pipeline
[23:26:56] nickjj: if you build your assets separately and put them on a CDN, then you wouldn't need to update your docker image
[23:27:13] nickjj: that's what i mean by building your assets (with the pipeline)
[23:27:19] mrbubbles: I assumed that if I had the server running then it would just pick them up
[23:27:41] mrbubbles: I've added config.assets.paths << Rails.root.join('vendor', 'assets', 'bower_components') to my application.rb
[23:28:05] mrbubbles: and run bower install, added (eg) //= require jquery/dist/jquery to my application.js
[23:28:22] johnflux: has joined #RubyOnRails
[23:28:25] mrbubbles: But the compiled application only shows my coffee file and none of the plugins
[23:28:34] Radar: Darmani: Great :)
[23:28:39] nickjj: sounds like something separate from docker
[23:31:25] DragonPunch: has joined #RubyOnRails
[23:32:35] mrbubbles: Okay thanks I'll try setting up a project outside of Docker and see if the same thing occurs
[23:34:20] fmcgeough: has joined #RubyOnRails
[23:38:38] moei: has joined #RubyOnRails
[23:39:34] Arcaire: I really need to write a long ranty post on why Docker is mediocre for first-timers.
[23:39:58] Arcaire: "Think of them like Rails scaffolds."
[23:40:16] Arcaire: [[ groaning by the technically-apt half of the #ror channel intensifies ]]
[23:40:33] Ropeney: Right it, I'll read it :)
[23:40:37] Ropeney: write rather
[23:41:06] sypheren: has joined #RubyOnRails
[23:41:12] Arcaire: I'll write it right.
[23:41:21] Ropeney: sounds like an ideal plan
[23:41:27] mrbubbles: Yeh I'm definitely going off it
[23:44:31] Arcaire: On the topic of
[23:44:33] mrbubbles: Hmmm so my non-dockerized app seems to work. The various other javascript files are included (jquery, jquery_ui etc) whereas in the dockered version they're not
[23:44:36] Arcaire: I know I don't like it, but
[23:44:41] Arcaire: someone is releasing full-disclosure reports
[23:44:46] Arcaire: for a controller UI for docker
[23:44:49] Arcaire: that isn't even officially v1.0 yet
[23:44:52] Arcaire: it's completely OS too
[23:45:24] Arcaire: instead of contributing fixes i'm getting emails about how there's MULTIPLE PERSISTENT VULNERABILITIES
[23:47:56] sleungcy: has joined #RubyOnRails
[23:49:27] PedramT: has joined #RubyOnRails
[23:50:05] dvinciguerra_: has joined #RubyOnRails
[23:50:53] Radar: Arcaire: hi do you have any opinions today
[23:51:11] Arcaire: No actually this is just F A C T S right now.
[23:51:19] Arcaire: It's a mailing list for security folk and this guy is going to down
[23:51:22] Arcaire: Er, town. *
[23:55:05] hahuang65: has joined #RubyOnRails
[23:56:05] dalbuschat: has joined #RubyOnRails
[23:56:19] owenjones: has joined #RubyOnRails
[23:57:45] voidDotClass: has joined #RubyOnRails
[23:58:36] DoctorMonocular: has joined #RubyOnRails
[23:58:53] voidDotClass: I have a class School, and school has_and_belongs_to_many students. How can I write a scope which takes a student id and returns those schools where school.students.include? student
[23:59:20] Radar: voidDotClass: I bet you have a modeless join table between them, don't you?
[23:59:35] Radar: helpa: I am disappointed.
[23:59:51] n1lo: has joined #RubyOnRails
[23:59:55] voidDotClass: Radar, I do have a modeless join table. Why?