« Back to channel list

#RubyOnRails - 12 December 2015

« Back 1 day Forward 1 day »
[00:00:16] jbrhbr1: has joined #RubyOnRails
[00:00:24] _Tariq: has joined #RubyOnRails
[00:00:30] kmckelvi1: has joined #RubyOnRails
[00:02:12] kitsuneyo: nah wait, assert @record.name_changed? fails
[00:02:19] Palsson: has joined #RubyOnRails
[00:03:14] maesitos: has joined #RubyOnRails
[00:05:28] _Tariq: has joined #RubyOnRails
[00:05:49] Tempesta: has joined #RubyOnRails
[00:07:09] _Tariq: has joined #RubyOnRails
[00:07:19] nya: has joined #RubyOnRails
[00:10:03] _Tariq: has joined #RubyOnRails
[00:10:07] hardtail: has joined #RubyOnRails
[00:10:11] pyemkey: has joined #RubyOnRails
[00:10:17] snophey: has left #RubyOnRails: ()
[00:10:46] creature: has joined #RubyOnRails
[00:10:46] creature: has joined #RubyOnRails
[00:12:52] jmrepetti: has joined #RubyOnRails
[00:13:24] mercwithamouth: help...can't figure out this undefined to_model error http://pastie.org/10626437
[00:14:05] ornerymoose: has joined #RubyOnRails
[00:14:08] mercwithamouth: i'm using the repl better_errors provides and my variables seem to be exactly what i want o_O;
[00:14:37] shock_one: has joined #RubyOnRails
[00:15:03] rhizome: does rubymine come with a pastie plugin or something
[00:15:29] rhizome: i'm almost certain you don't have a singular 'event' association on Family
[00:16:24] rhizome: also what if there's no family_id
[00:16:58] mercwithamouth: ehh i'll fix that part next
[00:17:11] mercwithamouth: but for creating an event...that part..i would think would work as is
[00:18:00] mercwithamouth: corrected the mistake in my index method....but new/create... or my form. i cant figure out what i'm missing
[00:19:11] ss_much: has joined #RubyOnRails
[00:21:53] rhizome: how come you aren't using @family?
[00:22:32] mercwithamouth: that's actually a good damn question -_-
[00:24:02] SanguineAnomaly: has joined #RubyOnRails
[00:25:34] mercwithamouth: hmm then it complains about 'events' being undefined
[00:27:06] rhizome: .includes(:events) would be a good addition
[00:27:15] jstransky: has joined #RubyOnRails
[00:27:27] mercwithamouth: hmm never saw 'includes' used before
[00:27:42] norc: mercwithamouth: Also, please gist your related model as well.
[00:27:55] mercwithamouth: so @family.includes(:events).build? <-- prob not
[00:28:04] norc: You left out the one model that everything is using, that is throwing the error...
[00:29:09] mercwithamouth: ok model included. pretty bare. http://pastie.org/10626452
[00:30:39] rhizome: @family.events.new
[00:30:47] rhizome: and use the route helper
[00:30:52] rhizome: in your form
[00:31:24] rhizome: new_family_event_path probably
[00:31:45] norc: mercwithamouth: the family model would have been the one....
[00:32:41] mary5030: has joined #RubyOnRails
[00:32:47] mercwithamouth: oh ok so form_for url_for?
[00:33:13] mercwithamouth: url => (path) gotcha..
[00:34:43] akshat: has joined #RubyOnRails
[00:35:23] one_zero: has joined #RubyOnRails
[00:36:13] DLSteve: has joined #RubyOnRails
[00:38:52] mercwithamouth: @project.events.new makes it complain about 'events' being undefined again
[00:40:35] Spami: has joined #RubyOnRails
[00:41:31] rhizome: project? family?
[00:41:49] mercwithamouth: my god -_- i should step away from the computer for a while
[00:42:16] mercwithamouth: @family i meant
[00:42:55] superlou: has joined #RubyOnRails
[00:44:07] rhizome: gist your family model
[00:44:25] hardtail: has joined #RubyOnRails
[00:45:05] shibabu: has joined #RubyOnRails
[00:45:55] mercwithamouth: http://pastie.org/10626463
[00:45:59] jbrhbr: has joined #RubyOnRails
[00:49:37] _Tariq: has joined #RubyOnRails
[00:50:23] reaVer: has joined #RubyOnRails
[00:52:15] annlewis: has joined #RubyOnRails
[00:53:05] mercwithamouth: http://pastie.org/10626469
[00:53:22] jmrepetti: has joined #RubyOnRails
[00:54:31] rdavila: has joined #RubyOnRails
[00:55:29] The_Phoenix: has joined #RubyOnRails
[00:56:01] sarink: has joined #RubyOnRails
[00:57:21] jmrepetti: has joined #RubyOnRails
[00:57:35] yfeldblum: has joined #RubyOnRails
[00:57:43] rhizome: if there are no events...
[00:58:16] sucks: has joined #RubyOnRails
[00:59:57] mercwithamouth: ? family has_many events
[01:00:06] rhizome: actual events in the database
[01:00:11] kies: has joined #RubyOnRails
[01:00:21] mercwithamouth: yeah i'm on making the form to create events
[01:00:33] mercwithamouth: that's my problem...what am i missing?
[01:00:41] nya: has joined #RubyOnRails
[01:00:51] kitsuneyo: has joined #RubyOnRails
[01:01:42] _Tariq: has joined #RubyOnRails
[01:01:59] ElFerna: has joined #RubyOnRails
[01:02:23] kmckelvi1: has joined #RubyOnRails
[01:02:30] versatiletech: has joined #RubyOnRails
[01:04:17] nickenchuggets: has joined #RubyOnRails
[01:04:17] nickenchuggets: has joined #RubyOnRails
[01:04:24] rhizome: the restful helper?
[01:05:21] shanemcd: has joined #RubyOnRails
[01:05:37] sonofdirt: has joined #RubyOnRails
[01:07:07] Quintasan: has joined #RubyOnRails
[01:07:07] Quintasan: has joined #RubyOnRails
[01:07:31] mercwithamouth: rails newb... i think i'm going to take a break and i'll come back later
[01:11:53] yashinbasement: has joined #RubyOnRails
[01:13:18] yashinbasement: Hi I have installed a gem called rb-grib http://www.rubydoc.info/gems/rb-grib/0.2.2 , but when I try to use this gem in a ruby script, It gives me error for the first and second line
[01:13:30] yashinbasement: first line require 'numru/grib'
[01:13:53] yashinbasement: second line include NumRu
[01:14:12] Quintasan: has joined #RubyOnRails
[01:14:13] Quintasan: has joined #RubyOnRails
[01:14:13] axl_: has joined #RubyOnRails
[01:14:21] yashinbasement: can any one guide me what I need to load to use that gem
[01:14:39] RegulationD: has joined #RubyOnRails
[01:14:45] yashinbasement: you can also see the example code on the mentioned link
[01:14:52] yashinbasement: http://www.rubydoc.info/gems/rb-grib/0.2.2
[01:14:55] creature: yashinbasement: Can you post your code & error message on http://gist.github.com?
[01:15:37] Quintasan: has joined #RubyOnRails
[01:15:38] Quintasan: has joined #RubyOnRails
[01:15:53] shock_one: has joined #RubyOnRails
[01:16:02] rdavila: has joined #RubyOnRails
[01:16:12] rubyonrailed: has joined #RubyOnRails
[01:17:25] yashinbasement: https://gist.github.com/ynarwal/7ee43ddba79dff184943
[01:17:42] shanemcd: has joined #RubyOnRails
[01:18:11] yashinbasement: :creature please have a look
[01:19:35] axl_: has joined #RubyOnRails
[01:19:57] stannard: has joined #RubyOnRails
[01:20:37] creature: yashinbasement: Ah, you see that bit that says "libgrip.so.1: no such file or directory"?
[01:21:01] atomical: has joined #RubyOnRails
[01:21:22] creature: That ".so.1" is a tip-off that this isn't a Ruby issue, this is to do with a system library. Almost certainly, you haven't got the grib API installed properly.
[01:21:27] owenjones: has joined #RubyOnRails
[01:21:48] creature: (ie. You're missing one or more of the listed dependencies.)
[01:23:38] codelahoma: has joined #RubyOnRails
[01:25:42] yashinbasement: hey i useed sudo and it's running like a charm :)
[01:25:46] troys: has joined #RubyOnRails
[01:26:04] yashinbasement: but wondering what should I use in rails app
[01:26:22] yashinbasement: because I want to use to use this gem in rails
[01:27:31] atomical_: has joined #RubyOnRails
[01:29:53] baweaver: has joined #RubyOnRails
[01:33:14] atomical: has joined #RubyOnRails
[01:39:49] chipotle: has joined #RubyOnRails
[01:39:53] noodman: has joined #RubyOnRails
[01:40:34] gooberfoo: has joined #RubyOnRails
[01:41:22] gooberfoo: Would anyone look at an error I get when I try and run rails server ?
[01:42:32] gooberfoo: I get this error https://paste.ee/p/Pu42b and I have no idea how I should resolve it
[01:42:59] hnanon: has joined #RubyOnRails
[01:43:14] jhass: gooberfoo: try gem install bundler
[01:43:14] kuroro: has joined #RubyOnRails
[01:43:17] _Tariq: has joined #RubyOnRails
[01:45:02] gooberfoo: thank you for taking the time to answer such a simple question.
[01:45:18] gooberfoo: I am obviously new to it, and well.. ya know how it goes.
[01:45:58] alex88: has joined #RubyOnRails
[01:46:47] _Tariq: has joined #RubyOnRails
[01:47:13] shibabu: has joined #RubyOnRails
[01:49:20] sucks: has joined #RubyOnRails
[01:50:03] gooberfoo: i got another error because sqllite was not installed and I tried to install it, but again I am lost here is the error https://paste.ee/p/GxMZa
[01:50:06] codelahoma: has joined #RubyOnRails
[01:51:12] shanemcd: has joined #RubyOnRails
[01:51:14] gooberfoo: actually I just checked and it seems I do have it installed
[01:51:17] kmckelvi1: has joined #RubyOnRails
[01:51:28] jhass: gooberfoo: try running bundle install --path vendor/bundle now
[01:53:00] annlewis: has joined #RubyOnRails
[01:53:58] nettoweb: has joined #RubyOnRails
[01:54:49] gooberfoo: so it seems I am getting error after error
[01:55:00] gooberfoo: I got this error then https://paste.ee/p/8m0eQ
[01:55:05] yashinbasement: can any one tell me how to use sudo command in rails, as I installed a rb-grib gem and outside of rails app I ran a script to use that gem, but it need sudo access : sudo ruby parser.rb, but what about rails , what should I use for same script
[01:55:36] jhass: gooberfoo: what's your OS? Ubuntu?
[01:55:55] jhass: gooberfoo: and how did you install Ruby?
[01:56:12] jhass: yashinbasement: may I question that you indeed do need to run it as root?
[01:56:58] gooberfoo: well, I am not a fan of ubuntu, but it seems to be supported more.
[01:57:11] jhass: gooberfoo: a yes would be enough
[01:57:35] jhass: gooberfoo: a "no I use ..." would be fine too
[01:57:41] gooberfoo: and this is what i used to install https://gorails.com/setup/ubuntu/15.10
[01:58:12] yashinbasement: yes I need yeah root access
[01:58:44] jhass: yashinbasement: can you explain why?
[01:59:07] jhass: gooberfoo: I don't follow, it doesn't look you used rbenv, RVM or installed from source
[01:59:23] jhass: *look like
[01:59:58] creature: yashinbasement: I think you'd be better off trying to figure out why that system library is available to the root user, but not your Rails user.
[01:59:58] jstransky: has joined #RubyOnRails
[02:00:11] jhass: gooberfoo: it rather looks like you're using the ubuntu ruby package, try sudo apt-get install ruby-dev
[02:00:48] DLSteve: has joined #RubyOnRails
[02:01:41] superlou: has joined #RubyOnRails
[02:02:03] bronson: has joined #RubyOnRails
[02:03:07] bronson: has joined #RubyOnRails
[02:03:45] gooberfoo: still the same issue..
[02:04:32] gooberfoo: i had an issue install this repository repository ppa:chris-lea/node.js
[02:05:48] gooberfoo: nvm on that
[02:06:02] jhass: gooberfoo: are you sure it's still the exact same output?
[02:07:02] sonofdirt: has joined #RubyOnRails
[02:08:09] jbrhbr: has joined #RubyOnRails
[02:08:24] gooberfoo: well, this is turning into a headache
[02:10:26] mercwithamouth: has joined #RubyOnRails
[02:11:58] kuroro: has joined #RubyOnRails
[02:12:31] pyemkey: has joined #RubyOnRails
[02:13:44] mercwithamouth: has joined #RubyOnRails
[02:16:37] shock_one: has joined #RubyOnRails
[02:17:38] annlewis: has joined #RubyOnRails
[02:18:02] blackhuey: has joined #RubyOnRails
[02:20:56] rdavila: has joined #RubyOnRails
[02:22:26] bigbob: has joined #RubyOnRails
[02:25:28] ascarter: has joined #RubyOnRails
[02:25:28] jJacob: has joined #RubyOnRails
[02:26:03] jJacob: has left #RubyOnRails: ()
[02:26:44] the7ak3: has joined #RubyOnRails
[02:28:40] Jasaka: has joined #RubyOnRails
[02:30:35] the7ak3: Hi there. Can anyone help a rails noob out with a before_action question please? :D
[02:31:01] owenjones: has joined #RubyOnRails
[02:31:13] sucks: has joined #RubyOnRails
[02:31:19] helpa: Nope. No one. Ever. In the history of the world.
[02:31:40] the7ak3: I guess no one has ever had a problem with it then haha.
[02:32:10] jhass: just ask your question already ;)
[02:32:47] baweaver: has joined #RubyOnRails
[02:33:42] the7ak3: Well ok. I generated some scaffolding and i'm trying to add a new method to the controller. It has a before_action method set with only: [:show, :edit, :update, :destroy] but when i use <%= form_tag({:controller=>"stock_data", :action=>"multiCreate"}, method: :get) do %> it still hits the before_action function :/
[02:34:07] the7ak3: i tried except::multiCreate and that didnt work either
[02:34:31] the7ak3: i assume i dont understand the :action
[02:35:11] helpa: 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:35:34] jhass: also you should read a style guide, we use snake_case here
[02:35:52] the7ak3: oh lord, i'm a microsoft dev and im way out of my element
[02:35:58] the7ak3: thanks for the help tho, hang on
[02:36:05] NBarnes: has joined #RubyOnRails
[02:36:54] Scripore: has joined #RubyOnRails
[02:37:15] the7ak3: controller: https://gist.github.com/Zetsuboushita/d6b85ef8e7a095c65110
[02:37:25] the7ak3: index: https://gist.github.com/Zetsuboushita/41ebce8a3e610d3ac432
[02:38:59] jhass: !using-gist
[02:38:59] helpa: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.md
[02:39:21] jhass: Radar: ^ URL's broken
[02:40:23] hardtail: has joined #RubyOnRails
[02:41:10] jhass: anyway, syntax highlighting and a single gist with multiple files ("Add another file" button) would be awesome in the future
[02:41:29] the7ak3: ok, thank you
[02:42:13] jhass: the7ak3: how do you assert your claim?
[02:42:51] the7ak3: jhass: im not sure what that means. maybe I need to go back to my Rails book before asking dumb questions.
[02:44:00] jhass: the7ak3: your claim: "calling the multiCreate action still calls set_stock_datum via the before_action", since it only sets an instance variable and the action doesn't even use it, how do you assert that your claim is true? how do you verify or even notice it?
[02:44:47] the7ak3: ah, I get an error in def set_stock_datum. (Couldn't find StockDatum with 'id'=multiCreate)
[02:45:48] jhass: the7ak3: that sounds like your show action is called with multiCreate as id
[02:46:03] jhass: the7ak3: gist your rake routes and your config/routes.rb output please
[02:46:18] the7ak3: kk, one sec
[02:46:21] dstarh: has joined #RubyOnRails
[02:46:42] jhass: meanwhile I try to remember how to update helpa's tips, mmh
[02:48:36] the7ak3: jhass: rake routes?
[02:49:04] jhass: yes, command you run
[02:49:10] jhass: like rake db:migrate
[02:51:21] shanemcd: has joined #RubyOnRails
[02:52:23] jhass: oh and found the guide btw https://github.com/radar/guides/blob/master/using-gist.markdown
[02:53:41] the7ak3: language selection for syntax highlighting appears to not exist anymore. weird.
[02:54:03] jhass: it does, picks the right thing if you choose a good name for your file anyhow
[02:54:10] nettoweb: has joined #RubyOnRails
[02:54:16] jhass: the screenshots are rather outdated though, yeah
[02:54:50] the7ak3: jhass: https://gist.github.com/Zetsuboushita/6a971da60165448989c7
[02:55:00] wethu: has joined #RubyOnRails
[02:55:31] jhass: the7ak3: so, route matching is top down, first matching wins
[02:56:02] jhass: as you can see resources :stock_data generates stock_datum GET /stock_data/:id(.:format) stock_data#show
[02:56:18] jhass: and that matches /stock_data/multiCreate just fine
[02:56:42] jhass: so you could move line 6 over line 3
[02:57:02] jhass: or better, do resources :stock_data do; collection do; get :multi_create; end; end;
[02:57:13] SanguineAnomaly: has joined #RubyOnRails
[02:57:19] jhass: ; being newlines of course
[02:57:33] the7ak3: Ok! Would that be best practice, or would there be a better way to handle the situation in general?
[02:57:48] rgrmatt: has joined #RubyOnRails
[02:58:25] jhass: regarding making sure URLs stay conflict free(er), the latter is preferred, yes
[02:58:30] jhass: I'd also argue more DRY
[02:58:49] jhass: since the prefix and controller are implicitly there already and you don't need to repeat it and keep it in sync
[02:58:51] kmckelvi1: has joined #RubyOnRails
[02:59:13] jhass: regarding doing another action to create multiple instances of the resource at the same time, I'm not so sure
[02:59:35] the7ak3: ok, well thanks so much for taking time to help me jhass!
[02:59:43] jhass: I'd probably consider looking into having create inspect the params and decide whether to create a single item or multiple based on them
[02:59:59] jhass: and only separate into two actions if that gets too hairy
[03:00:03] the7ak3: I like that --^
[03:00:36] the7ak3: I will quickfix it now and work towards that. Thanks so much.
[03:00:37] juddey: has joined #RubyOnRails
[03:01:23] tildes: has joined #RubyOnRails
[03:03:27] the7ak3: i will also have to refactor everything to snake_case haha
[03:05:05] jhass: https://github.com/bbatsov/ruby-style-guide for the big one, https://github.com/styleguide/ruby for a smaller one
[03:05:21] jhass: it'll grow on you, promised :P
[03:07:21] the7ak3: Thanks, will read. Most of my exp is in .net, i'd like that to not be obvious in my rails project.
[03:07:50] owenjones: has joined #RubyOnRails
[03:09:26] SanguineAnomaly: has joined #RubyOnRails
[03:11:36] rickmasta: has joined #RubyOnRails
[03:13:19] bigbob: has joined #RubyOnRails
[03:13:38] bronson: has joined #RubyOnRails
[03:17:16] waka: has joined #RubyOnRails
[03:17:35] kuroro: has joined #RubyOnRails
[03:18:10] elton: has joined #RubyOnRails
[03:18:44] shock_one: has joined #RubyOnRails
[03:20:26] noodman: has joined #RubyOnRails
[03:25:53] shanemcd: has joined #RubyOnRails
[03:26:42] annlewis: has joined #RubyOnRails
[03:28:37] _Tariq: has joined #RubyOnRails
[03:30:37] baweaver: has joined #RubyOnRails
[03:31:21] eddiegrey: has joined #RubyOnRails
[03:34:21] Hazim: has joined #RubyOnRails
[03:35:34] atomical_: has joined #RubyOnRails
[03:39:23] Grey_H: has joined #RubyOnRails
[03:42:36] beast: has joined #RubyOnRails
[03:46:34] bronson: has joined #RubyOnRails
[03:48:26] Hazim: has joined #RubyOnRails
[03:48:32] mercwithamouth: has joined #RubyOnRails
[03:49:11] shibabu: has joined #RubyOnRails
[03:51:49] stannard: has joined #RubyOnRails
[03:54:51] stannard: has joined #RubyOnRails
[03:56:00] Rodya_: has joined #RubyOnRails
[03:56:47] bigbob: has joined #RubyOnRails
[03:59:40] kmckelvi1: has joined #RubyOnRails
[04:02:01] hardtail: has joined #RubyOnRails
[04:05:30] urkle: has joined #RubyOnRails
[04:11:51] yfeldblum: has joined #RubyOnRails
[04:12:00] jmarchello: has joined #RubyOnRails
[04:13:53] smathy: has joined #RubyOnRails
[04:14:20] pyemkey: has joined #RubyOnRails
[04:14:31] urkle: has joined #RubyOnRails
[04:15:20] rakm: has joined #RubyOnRails
[04:16:18] braincrash: has joined #RubyOnRails
[04:18:27] jhn: has joined #RubyOnRails
[04:19:27] shock_one: has joined #RubyOnRails
[04:23:42] AnoHito: has joined #RubyOnRails
[04:25:13] wethu: has joined #RubyOnRails
[04:27:30] annlewis: has joined #RubyOnRails
[04:27:37] diegoviola: has joined #RubyOnRails
[04:31:19] chipotle_: has joined #RubyOnRails
[04:31:55] dmarr: has joined #RubyOnRails
[04:36:38] diego1: has joined #RubyOnRails
[04:37:08] diego1: has joined #RubyOnRails
[04:43:16] dmarr: has joined #RubyOnRails
[04:48:37] jmimi: has left #RubyOnRails: ()
[04:49:33] diego1: has joined #RubyOnRails
[04:49:48] diego1: has joined #RubyOnRails
[04:51:12] shanemcd: has joined #RubyOnRails
[04:52:16] kegan_: has joined #RubyOnRails
[04:52:19] elton: has joined #RubyOnRails
[04:55:17] chipotle: has joined #RubyOnRails
[04:57:18] The_Phoenix: has joined #RubyOnRails
[05:00:22] kmckelvi1: has joined #RubyOnRails
[05:01:34] johnflux: has joined #RubyOnRails
[05:01:34] johnflux: has joined #RubyOnRails
[05:01:50] nertzy: has joined #RubyOnRails
[05:07:23] yfeldblum: has joined #RubyOnRails
[05:08:49] diegoviola: I need to define a few methods in my helper, but helper is a module, can I still define private methods in my helper?
[05:09:06] diegoviola: what does rails do with helpers? are they included somewhere else?
[05:09:33] jgt1: has joined #RubyOnRails
[05:12:38] bronson: has joined #RubyOnRails
[05:13:07] NBarnes: has joined #RubyOnRails
[05:20:13] shock_one: has joined #RubyOnRails
[05:28:16] annlewis: has joined #RubyOnRails
[05:28:51] nettoweb: has joined #RubyOnRails
[05:31:25] baweaver: has joined #RubyOnRails
[05:35:07] rickmasta: has joined #RubyOnRails
[05:46:40] baweaver: has joined #RubyOnRails
[05:46:41] hololeap: has joined #RubyOnRails
[05:48:29] shibabu: has joined #RubyOnRails
[05:50:22] CarlosYoo: has joined #RubyOnRails
[05:56:37] DavidDudson: has joined #RubyOnRails
[05:56:50] JakFrist: has joined #RubyOnRails
[06:01:13] kmckelvi1: has joined #RubyOnRails
[06:03:04] tenderlove: has joined #RubyOnRails
[06:03:05] tenderlove: has joined #RubyOnRails
[06:08:41] Hazim: has joined #RubyOnRails
[06:08:43] yashinbasement: has joined #RubyOnRails
[06:09:34] Contigi: has joined #RubyOnRails
[06:13:23] njero: has joined #RubyOnRails
[06:14:01] yashinbasement: hi I want to use amazon host service for my application and I want to access that server(Ubuntu) thourugh window machine. Can any one suggest any better program on window to access linux ubuntu server
[06:18:43] pyemkey: has joined #RubyOnRails
[06:20:58] shock_one: has joined #RubyOnRails
[06:23:53] rhizome: yashinbasement: putty is a good windows ssh client
[06:25:47] bronson: has joined #RubyOnRails
[06:29:00] annlewis: has joined #RubyOnRails
[06:31:59] Bloomer: has joined #RubyOnRails
[06:34:56] jstransky: has joined #RubyOnRails
[06:37:39] beast: has joined #RubyOnRails
[06:40:37] jgt1: has joined #RubyOnRails
[06:42:04] diegoviola: does it makes sense to declare a method private in a helper module?
[06:42:48] diegoviola: do helper modules get included in a controller?
[06:43:06] diegoviola: I wonder what rails does under the hood
[06:50:44] DavidDudson: has joined #RubyOnRails
[06:52:38] juddey: has joined #RubyOnRails
[07:02:02] kmckelvi1: has joined #RubyOnRails
[07:05:01] duderonomy: yashinbasement: Also consider SecureCRT from van dyke
[07:07:18] ibouvousaime: has joined #RubyOnRails
[07:12:01] User458764: has joined #RubyOnRails
[07:13:20] jgt1: has joined #RubyOnRails
[07:18:25] Cohedrin: has joined #RubyOnRails
[07:19:05] shock_one: has joined #RubyOnRails
[07:19:14] Cohedrin: hey all, anyone have expererience working with caching on active model serializers rc3?
[07:19:50] elton: has joined #RubyOnRails
[07:23:14] codeurge: has joined #RubyOnRails
[07:25:59] DavidDudson: has joined #RubyOnRails
[07:29:46] annlewis: has joined #RubyOnRails
[07:31:11] DavidDudson: has joined #RubyOnRails
[07:32:10] pyemkey: has joined #RubyOnRails
[07:32:13] baweaver: has joined #RubyOnRails
[07:36:08] wethu: has joined #RubyOnRails
[07:40:33] annlewis: has joined #RubyOnRails
[07:43:45] lxsameer: has joined #RubyOnRails
[07:43:46] lxsameer: has joined #RubyOnRails
[07:45:12] diego1: has joined #RubyOnRails
[07:45:21] diego1: has joined #RubyOnRails
[07:45:21] Meow-J: has joined #RubyOnRails
[07:48:33] DavidDudson: has joined #RubyOnRails
[07:50:23] rdavila: has joined #RubyOnRails
[07:50:52] ivanyk_: has joined #RubyOnRails
[07:55:00] diego1: has joined #RubyOnRails
[07:57:26] DavidDudson: has joined #RubyOnRails
[07:57:28] diego1: has joined #RubyOnRails
[08:00:25] diegoviola: I've declared a method to be private in a helper, but I still can access it from views, etc
[08:00:32] diegoviola: what exactly should be protected/private?
[08:01:58] rhizome: do modules have a concept of private?
[08:02:07] DavidDud_: has joined #RubyOnRails
[08:02:40] kmckelvi1: has joined #RubyOnRails
[08:02:50] speakingcode: has joined #RubyOnRails
[08:03:17] diegoviola: rhizome: yes
[08:04:19] AnoHito_: has joined #RubyOnRails
[08:06:21] DavidDudson: has joined #RubyOnRails
[08:06:31] diego1: has joined #RubyOnRails
[08:06:32] yfeldblum: has joined #RubyOnRails
[08:06:44] diego1: has joined #RubyOnRails
[08:08:15] srinidhi: has joined #RubyOnRails
[08:09:09] djellemah: diegoviola: methods which need to be private or protected in the instance that includes the module. Which makes the whole idea kinda pointless because most helper methods will be called from inside the including class anyway.
[08:09:27] DavidDud_: has joined #RubyOnRails
[08:09:37] diegoviola: rhizome: https://gist.github.com/a75a1ee10f08729aeafc
[08:10:58] djellemah: diegoviola: In 2.2.3 I get "NoMethodError: private method `bar' called for #<B:0x961bd14>"
[08:12:00] sadaf2605: has joined #RubyOnRails
[08:14:06] nXqd: has joined #RubyOnRails
[08:14:12] htmldrum: has joined #RubyOnRails
[08:14:38] srinidhi1: has joined #RubyOnRails
[08:16:23] darutoko: has joined #RubyOnRails
[08:18:22] waka: has joined #RubyOnRails
[08:18:45] diego1: has joined #RubyOnRails
[08:18:53] diego1: has joined #RubyOnRails
[08:19:36] diegoviola: djellemah: you mean it doesn't make sense to make a method private on a helper as it's going to be included in the controller?
[08:20:05] diegoviola: I mean, it's pointless
[08:20:43] diegoviola: so what exactly should be protected or private?
[08:22:19] elton: has joined #RubyOnRails
[08:23:17] nXqd: has joined #RubyOnRails
[08:24:30] DavidDudson: has joined #RubyOnRails
[08:25:18] darutoko-: has joined #RubyOnRails
[08:26:18] yfeldblum: has joined #RubyOnRails
[08:26:28] bronson: has joined #RubyOnRails
[08:28:21] darutoko: has joined #RubyOnRails
[08:30:04] triangles: has joined #RubyOnRails
[08:30:06] Pazician: has joined #RubyOnRails
[08:31:38] darutoko-: has joined #RubyOnRails
[08:36:17] djellemah: diegoviola: methods that should not be (normally) accessible from outside of a class.
[08:36:43] diegoviola: I see, thanks
[08:38:26] AzaToth: has joined #RubyOnRails
[08:40:38] sadaf2606: has joined #RubyOnRails
[08:41:02] berserk_ren: has joined #RubyOnRails
[08:42:57] darutoko: has joined #RubyOnRails
[08:43:52] diegoviola: djellemah: so protected/private methods are a way for me to ensure that those methods are never called from anything other than the class or object itself that instantiate from the class
[08:45:11] codeurge: has joined #RubyOnRails
[08:45:44] baweaver: has joined #RubyOnRails
[08:46:16] annlewis: has joined #RubyOnRails
[08:52:44] jbrhbr: has joined #RubyOnRails
[08:54:10] njero: has joined #RubyOnRails
[09:03:31] kmckelvi1: has joined #RubyOnRails
[09:04:53] DavidDudson: has joined #RubyOnRails
[09:07:48] DavidDudson: has joined #RubyOnRails
[09:07:51] quazimodo: has joined #RubyOnRails
[09:12:09] diegoviola: has joined #RubyOnRails
[09:13:33] diegoviola: has joined #RubyOnRails
[09:13:49] kmckelvi1: has joined #RubyOnRails
[09:16:45] lele: has joined #RubyOnRails
[09:16:51] jmrepetti: has joined #RubyOnRails
[09:17:13] yashinbasement: duderonomy: rhizome: , thanks guys
[09:20:54] Coldblackice: has joined #RubyOnRails
[09:23:02] elton: has joined #RubyOnRails
[09:24:17] elaptics`away: has joined #RubyOnRails
[09:24:39] Cohedrin: has joined #RubyOnRails
[09:25:53] wildlander: has joined #RubyOnRails
[09:26:06] atif_: has joined #RubyOnRails
[09:26:28] wildlander: has joined #RubyOnRails
[09:27:40] wildlander: has joined #RubyOnRails
[09:29:16] agit0: has joined #RubyOnRails
[09:36:17] tildes: has joined #RubyOnRails
[09:39:20] lele: has joined #RubyOnRails
[09:39:33] brt: has joined #RubyOnRails
[09:43:02] shock_one: has joined #RubyOnRails
[09:43:25] w0rd-driven: has joined #RubyOnRails
[09:43:30] diego1: has joined #RubyOnRails
[09:43:47] diego1: has joined #RubyOnRails
[09:44:57] AnoHito: has joined #RubyOnRails
[09:47:02] annlewis: has joined #RubyOnRails
[09:49:27] edwinvdgraaf: has joined #RubyOnRails
[09:52:14] cornerma1: has joined #RubyOnRails
[09:53:16] arBmind: has joined #RubyOnRails
[09:53:17] zanzarel: has joined #RubyOnRails
[10:01:30] iateadonut: has joined #RubyOnRails
[10:04:51] build22_: has joined #RubyOnRails
[10:04:56] triangles2: has joined #RubyOnRails
[10:05:03] KnownSyntax: has joined #RubyOnRails
[10:05:04] KnownSyntax: has joined #RubyOnRails
[10:05:19] stannard: has joined #RubyOnRails
[10:05:25] bmalum_: has joined #RubyOnRails
[10:05:50] tfittsy: has joined #RubyOnRails
[10:06:04] yfeldblum: has joined #RubyOnRails
[10:06:41] sar1nk: has joined #RubyOnRails
[10:06:49] benlakey_: has joined #RubyOnRails
[10:06:51] CarlosYoo: has joined #RubyOnRails
[10:07:07] hosh_: has joined #RubyOnRails
[10:07:12] lxkm_: has joined #RubyOnRails
[10:07:14] uranther_: has joined #RubyOnRails
[10:07:16] chancancode__: has joined #RubyOnRails
[10:07:17] ebryn_: has joined #RubyOnRails
[10:07:18] moeabdol2: has joined #RubyOnRails
[10:07:25] tildes_: has joined #RubyOnRails
[10:07:42] upgrayeddd_: has joined #RubyOnRails
[10:08:23] bbrowning_: has joined #RubyOnRails
[10:08:38] nygrenh_: has joined #RubyOnRails
[10:08:45] juddey_: has joined #RubyOnRails
[10:08:46] voker57_: has joined #RubyOnRails
[10:08:51] johnflux_: has joined #RubyOnRails
[10:08:52] johnflux_: has joined #RubyOnRails
[10:09:02] jxf_: has joined #RubyOnRails
[10:09:18] Pazician: has joined #RubyOnRails
[10:09:20] Sanguine1nomaly: has joined #RubyOnRails
[10:09:24] kanzure_: has joined #RubyOnRails
[10:09:29] thoraxe_: has joined #RubyOnRails
[10:09:32] cornerma1: has joined #RubyOnRails
[10:09:33] jbermudes_: has joined #RubyOnRails
[10:09:34] jbermudes_: has joined #RubyOnRails
[10:09:36] hackeron_: has joined #RubyOnRails
[10:09:38] A124: has joined #RubyOnRails
[10:09:50] cydrobolt_: has joined #RubyOnRails
[10:09:58] thomasfedb_: has joined #RubyOnRails
[10:09:58] gs: has joined #RubyOnRails
[10:09:59] fumduq-: has joined #RubyOnRails
[10:10:00] xhoy_: has joined #RubyOnRails
[10:10:07] d0nn1e_: has joined #RubyOnRails
[10:10:08] crankhar1er: has joined #RubyOnRails
[10:10:14] adam^: has joined #RubyOnRails
[10:10:19] kmckelvin: has joined #RubyOnRails
[10:10:20] Babelfish: has joined #RubyOnRails
[10:10:28] drupald_: has joined #RubyOnRails
[10:10:30] diegoviola: has joined #RubyOnRails
[10:10:30] urkle-: has joined #RubyOnRails
[10:10:39] AzaToth_: has joined #RubyOnRails
[10:10:55] bahar_: has joined #RubyOnRails
[10:11:06] silverdust: has joined #RubyOnRails
[10:11:43] User458764: has joined #RubyOnRails
[10:11:45] speakingcode: has joined #RubyOnRails
[10:11:45] moei: has joined #RubyOnRails
[10:11:45] beast_: has joined #RubyOnRails
[10:11:45] thejoecarroll_: has joined #RubyOnRails
[10:11:45] beingjohnm: has joined #RubyOnRails
[10:11:45] Palsson: has joined #RubyOnRails
[10:11:45] djellemah: has joined #RubyOnRails
[10:11:49] n1lo: has joined #RubyOnRails
[10:12:12] yashinbasement: Hey guys how can I have desktop version of linux server (desktop version) , any guide
[10:12:16] boxofrox: has joined #RubyOnRails
[10:12:35] yashinbasement: as I said before I am using amazon service
[10:12:36] AzaToth_: has joined #RubyOnRails
[10:12:48] epochwolf: has joined #RubyOnRails
[10:13:04] yashinbasement: and I am using Windows to access that server
[10:13:09] DanKnox[away]: has joined #RubyOnRails
[10:13:27] AntiSpamMeta: has joined #RubyOnRails
[10:13:40] PlasmaStar: has joined #RubyOnRails
[10:14:09] lele: has joined #RubyOnRails
[10:15:00] WizJin: has joined #RubyOnRails
[10:15:43] jbermudes: has joined #RubyOnRails
[10:15:44] jbermudes: has joined #RubyOnRails
[10:17:03] sami: has joined #RubyOnRails
[10:17:22] speaking1ode: has joined #RubyOnRails
[10:17:22] User4587_: has joined #RubyOnRails
[10:18:51] moei: has joined #RubyOnRails
[10:18:51] silverdu1t: has joined #RubyOnRails
[10:18:52] Symbiosisz: has joined #RubyOnRails
[10:20:12] Shidash: has joined #RubyOnRails
[10:20:22] LambdaSource: has joined #RubyOnRails
[10:21:13] kalzz: has joined #RubyOnRails
[10:22:01] Tempesta: has joined #RubyOnRails
[10:22:48] pyemkey: has joined #RubyOnRails
[10:23:46] elton: has joined #RubyOnRails
[10:27:57] bronson: has joined #RubyOnRails
[10:29:50] solars: has joined #RubyOnRails
[10:36:50] iamdevnul_: has joined #RubyOnRails
[10:37:24] snophey: has joined #RubyOnRails
[10:37:35] krainboltgreene: has joined #RubyOnRails
[10:37:59] workmad3: has joined #RubyOnRails
[10:38:22] chancancode__: has joined #RubyOnRails
[10:40:55] many: has joined #RubyOnRails
[10:41:09] Shidash: has joined #RubyOnRails
[10:41:32] benlakey: has joined #RubyOnRails
[10:41:36] iamdevnul_: has joined #RubyOnRails
[10:42:36] quazimodo: has joined #RubyOnRails
[10:45:01] shock_one: has joined #RubyOnRails
[10:45:31] User458764: has joined #RubyOnRails
[10:48:57] darwin_: has joined #RubyOnRails
[11:04:20] baweaver: has joined #RubyOnRails
[11:07:00] torspark: has joined #RubyOnRails
[11:07:36] zpe: has joined #RubyOnRails
[11:08:09] desmondhume: has joined #RubyOnRails
[11:09:54] LambdaSource: has joined #RubyOnRails
[11:12:16] Hazim: has joined #RubyOnRails
[11:14:03] c355E3B: has joined #RubyOnRails
[11:24:34] elton: has joined #RubyOnRails
[11:24:45] ethe: has joined #RubyOnRails
[11:26:25] Osmanabi: has joined #RubyOnRails
[11:30:55] rodfersou: has joined #RubyOnRails
[11:35:42] kp666: has joined #RubyOnRails
[11:36:59] zanzarel: has joined #RubyOnRails
[11:38:42] nickenchuggets: has joined #RubyOnRails
[11:38:42] nickenchuggets: has joined #RubyOnRails
[11:48:32] annlewis: has joined #RubyOnRails
[11:51:28] brendan-: has joined #RubyOnRails
[11:54:33] wmdrossard: has joined #RubyOnRails
[11:57:40] theod: has joined #RubyOnRails
[11:58:34] dideler: has joined #RubyOnRails
[12:00:48] netzfisch: has joined #RubyOnRails
[12:05:26] baweaver: has joined #RubyOnRails
[12:05:45] dici: has joined #RubyOnRails
[12:10:32] annlewis: has joined #RubyOnRails
[12:12:56] maia_: has joined #RubyOnRails
[12:13:21] maia_: has left #RubyOnRails: ()
[12:15:11] puria: has joined #RubyOnRails
[12:15:18] FooMunki: has joined #RubyOnRails
[12:18:03] mices: has joined #RubyOnRails
[12:19:55] mices: when using simple_format helper my styling for body is no longer applied
[12:22:42] maia: has joined #RubyOnRails
[12:25:20] elton: has joined #RubyOnRails
[12:25:50] maia: Hello. I???m experiencing major slowdowns probably caused by the sql prepared statements cache - a query runs consistently at 20+ seconds (!) which usually runs in <20ms. cpu-time and wall-time are close to zero, but realtime is extremely high. what can I do?
[12:26:41] kmckelvin: has joined #RubyOnRails
[12:26:47] njero: maia: are u using postgres?
[12:29:04] maia: n_e_o: yes. but the same query using explain (analyze, buffers) has no problem at all.
[12:29:43] nfk|laptop: has joined #RubyOnRails
[12:29:48] maia: n_e_o: I???m also not always seeing the problem, but only very rarely, and launching a new rails console makes the issue go away on development.
[12:29:50] yfeldblum: has joined #RubyOnRails
[12:30:19] maia: but as I???m also having the issue on production, I???d like to debug it now before using a reload!
[12:30:57] Pazician: has joined #RubyOnRails
[12:31:39] Pazician: has joined #RubyOnRails
[12:32:10] wethu: has joined #RubyOnRails
[12:32:22] maia: n_e_o: e.g. when I bypass the statement pool, the query runs fine.
[12:33:35] shock_one: has joined #RubyOnRails
[12:33:36] gavit: I have a has_many 'reference'. where would be the ideal location to put the MyReference.find(id) in my new controller?
[12:33:50] gavit: controller#new*
[12:33:52] maia: n_e_o: see here: https://gist.github.com/maia/9c997f78cafca6e24dd7
[12:38:48] kmckelvin: has joined #RubyOnRails
[12:41:49] jmrepetti: has joined #RubyOnRails
[12:42:21] tildes: has joined #RubyOnRails
[12:50:33] Pazician: has joined #RubyOnRails
[12:54:31] shibabu: has joined #RubyOnRails
[12:58:33] bmalum: has joined #RubyOnRails
[13:04:07] superlou: has joined #RubyOnRails
[13:04:12] jmrepetti: has joined #RubyOnRails
[13:05:46] guest22: has joined #RubyOnRails
[13:06:48] FernandoBasso: has joined #RubyOnRails
[13:08:21] ibouvousaime: has joined #RubyOnRails
[13:08:57] johnflux_: has joined #RubyOnRails
[13:08:58] johnflux_: has joined #RubyOnRails
[13:09:37] bmalum: has joined #RubyOnRails
[13:10:15] Hazim: has joined #RubyOnRails
[13:11:18] annlewis: has joined #RubyOnRails
[13:17:16] rickmasta: has joined #RubyOnRails
[13:18:59] meoblast001: has joined #RubyOnRails
[13:19:23] ElFerna: has joined #RubyOnRails
[13:24:52] snophey: has left #RubyOnRails: ()
[13:27:16] nyaa: has joined #RubyOnRails
[13:27:46] eddiegrey: has joined #RubyOnRails
[13:33:58] meoblast001: has joined #RubyOnRails
[13:34:09] daivyk: has joined #RubyOnRails
[13:34:50] agit0: has joined #RubyOnRails
[13:43:06] PaulePanter: Hi. m and n are two active record relations of the same structure (.where on the same model).
[13:43:23] PaulePanter: How can I find out, if all records of n are also present in m?
[13:44:13] ethe: has joined #RubyOnRails
[13:44:29] PaulePanter: Is there a method for that or do I need to got by hand to extract the IDs and use http://docs.ruby-lang.org/en/2.0.0/Array.html#method-i-include-3F or something similar?
[13:45:29] jhass: PaulePanter: is that for a test or...?
[13:46:03] berserk_ren: has joined #RubyOnRails
[13:47:35] cabotto: has joined #RubyOnRails
[13:48:51] jhass: anyway, n.count == n.where(id: m.select(:id)).count I guess, still two queries but should at least avoid fetching the ids
[13:48:59] jmimi: has joined #RubyOnRails
[13:49:08] PaulePanter: m.map(&:id) & n.map(&:id) == n.map(&:id)
[13:49:18] PaulePanter: ??? is what I come up with by hand.
[13:49:24] PaulePanter: jhass: No test.
[13:49:51] jhass: .map(&:id) -> .pluck(:id) for starters
[13:49:54] PaulePanter: It???s a permission check. A user is allowed to see certain entities and requests to see certain entities.
[13:50:29] PaulePanter: jhass: Thanks. That???s embarassing. ;-)
[13:50:35] Papierkorb: PaulePanter: (m.pluck(:id) - n.pluck(:id)).empty?
[13:50:58] Papierkorb: PaulePanter: if you only care that everything is allowed, and not which one
[13:51:12] dviola: has joined #RubyOnRails
[13:51:14] ElFerna: has joined #RubyOnRails
[13:51:40] PaulePanter: Papierkorb: Thanks. Switch m and n though?
[13:52:21] PaulePanter: m = [1, 2, 3], n = [1, 2] should return true.
[13:52:23] shanemcd: has joined #RubyOnRails
[13:52:44] PaulePanter: m = [1, 2, 3], n = [1, 4] should return false.
[13:53:48] jhass: yeah, I think Papierkorb got it the wrong way around :P
[13:54:17] jhass: Array should implement Set operations already -.-
[13:54:28] PaulePanter: jhass, Papierkorb: Thank you for the help! That???s indeed a good solution.
[13:54:55] jhass: PaulePanter: I wonder if my initial one would work though and you got the test data already ... :P
[13:55:39] tenderlove: has joined #RubyOnRails
[13:57:42] PaulePanter: jhass: With my real models I get
[13:57:45] PaulePanter: ActiveRecord::StatementInvalid: Mysql2::Error: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery':
[13:57:53] PaulePanter: Probably do to some scopes.
[13:58:30] jhass: PaulePanter: yeah, but if you got a limit on it it may bork the other solution too
[13:58:36] jhass: investigate promptly!
[14:00:12] PaulePanter: The other solution worked for me.
[14:02:15] PaulePanter: m.pluck(:id).to_set.superset?(n.pluck(:id).to_set) is also possible. But even more hard to read in my opinion.
[14:02:28] Papierkorb: and probably slower too
[14:02:33] Mia: has joined #RubyOnRails
[14:02:34] Mia: has joined #RubyOnRails
[14:02:46] Papierkorb: for larger sets, for small ones you won't notice it
[14:03:04] shanemcd: has joined #RubyOnRails
[14:03:05] Tokenizer: has joined #RubyOnRails
[14:03:40] Tokenizer: has left #RubyOnRails: ()
[14:04:45] jhass: PaulePanter: "working now" != "working in the edge case"
[14:05:09] jhass: PaulePanter: consider the amount of permissions on either side exceeding the limit
[14:05:35] jhass: best case, the allowed ones happen to return the requested ones
[14:05:59] jhass: worst case, the requested ones happen to return only matching ones to the allowed ones but there are actually more
[14:07:09] jhass: annoying case, the allowed ones do not return all allowed ones and fail matching the requested ones instead (also subtle bug)
[14:07:22] baweaver: has joined #RubyOnRails
[14:07:45] nocd: has joined #RubyOnRails
[14:10:01] PaulePanter: jhass: Thank you for the hints. I???ll check these cases.
[14:10:32] nfk|laptop: has joined #RubyOnRails
[14:10:56] PaulePanter: Currently, it???s implemented as all requested ones or nothing, which might not be optimal. Give the user at least the entities they are allowed to access.
[14:11:26] jhass: that won't change anything about you wanting to fetch the whole collection there, get rid of the limit
[14:12:04] annlewis: has joined #RubyOnRails
[14:14:43] jmrepetti: has joined #RubyOnRails
[14:16:12] rgrmatt: has joined #RubyOnRails
[14:16:44] PaulePanter: jhass: Hmm. No idea where the limit comes from.
[14:17:06] PaulePanter: It???s not in the SQL query, when using the other statement.
[14:17:29] PaulePanter: n.count == n.where(id: m.select(:id)).count
[14:17:56] PaulePanter: m has two entries in my test (id 1 and 6). Does Active Record add the limit?
[14:18:51] jhass: I highly doubt so
[14:21:55] shock_one: has joined #RubyOnRails
[14:25:33] annlewis: has joined #RubyOnRails
[14:26:01] stannard: has joined #RubyOnRails
[14:27:01] hardtail: has joined #RubyOnRails
[14:28:41] elton: has joined #RubyOnRails
[14:30:13] dragonkh: has joined #RubyOnRails
[14:31:59] shanemcd: has joined #RubyOnRails
[14:32:22] kuroro: has joined #RubyOnRails
[14:32:52] puria: has joined #RubyOnRails
[14:32:58] bronson: has joined #RubyOnRails
[14:35:36] viiralvx: has joined #RubyOnRails
[14:41:18] Palsson: has joined #RubyOnRails
[14:42:54] ElFerna: has joined #RubyOnRails
[14:45:05] jgt1: has joined #RubyOnRails
[14:47:20] phrozen77: has joined #RubyOnRails
[14:48:29] shanemcd: has joined #RubyOnRails
[14:49:01] Kuukunen: has joined #RubyOnRails
[14:49:07] zly: has joined #RubyOnRails
[14:49:10] edwinvdgraaf: has joined #RubyOnRails
[14:50:43] jmarchello: has joined #RubyOnRails
[14:51:28] jmarchello: has left #RubyOnRails: ()
[14:53:12] owenjones: has joined #RubyOnRails
[14:53:40] johnflux_: has joined #RubyOnRails
[14:53:40] johnflux_: has joined #RubyOnRails
[14:55:08] shibabu: has joined #RubyOnRails
[14:56:26] netzfisch: has joined #RubyOnRails
[14:57:58] Palsson: has joined #RubyOnRails
[14:58:06] Zamerick: has joined #RubyOnRails
[14:58:34] WhereIsMySpoon: has joined #RubyOnRails
[14:58:35] WhereIsMySpoon: has joined #RubyOnRails
[14:59:11] Hazim: has joined #RubyOnRails
[15:00:08] nertzy: has joined #RubyOnRails
[15:01:12] Pazician: has joined #RubyOnRails
[15:02:57] iateadonut: has joined #RubyOnRails
[15:03:29] srinidhi: has joined #RubyOnRails
[15:07:00] atumzin: has joined #RubyOnRails
[15:07:51] phrozen77: has joined #RubyOnRails
[15:08:29] JulienITARD: has joined #RubyOnRails
[15:15:20] berserk_ren: has joined #RubyOnRails
[15:18:17] cyrxe: has joined #RubyOnRails
[15:18:56] rgrmatt: has joined #RubyOnRails
[15:24:28] netzfisch: has joined #RubyOnRails
[15:26:17] annlewis: has joined #RubyOnRails
[15:29:37] elton: has joined #RubyOnRails
[15:31:10] puria: has joined #RubyOnRails
[15:34:33] teclator: has joined #RubyOnRails
[15:36:14] sonofdirt: has joined #RubyOnRails
[15:42:00] viiralvx: has joined #RubyOnRails
[15:44:30] tenderlove: has joined #RubyOnRails
[15:45:22] kanzure_: has left #RubyOnRails: ()
[15:46:04] jgt1: has joined #RubyOnRails
[15:47:35] hobodave: has joined #RubyOnRails
[15:47:42] nickenchuggets: has joined #RubyOnRails
[15:47:42] nickenchuggets: has joined #RubyOnRails
[15:50:04] eddiegrey: has joined #RubyOnRails
[15:53:07] gremly: has joined #RubyOnRails
[15:53:58] rubyonrailed: has joined #RubyOnRails
[15:54:29] zpe_: has joined #RubyOnRails
[15:57:12] ethe: has joined #RubyOnRails
[15:57:30] nocd: has joined #RubyOnRails
[15:58:20] Quintasan: has joined #RubyOnRails
[15:58:20] Quintasan: has joined #RubyOnRails
[15:58:31] _Tariq: has joined #RubyOnRails
[16:00:29] smathy: has joined #RubyOnRails
[16:02:09] Dbugger: has joined #RubyOnRails
[16:03:13] Dbugger: Hello fellas
[16:03:39] Dbugger: Could I get your help. I am using Paperclip to upload files to Amazon S3. The problem is that files are not really being uploaded at all... what could be going wrong?
[16:06:18] ElFerna: has joined #RubyOnRails
[16:07:06] shanemcd: has joined #RubyOnRails
[16:08:14] baweaver: has joined #RubyOnRails
[16:08:25] superlou: has joined #RubyOnRails
[16:13:07] kies: has joined #RubyOnRails
[16:13:16] shock_one: has joined #RubyOnRails
[16:14:17] wildlander: has joined #RubyOnRails
[16:14:18] nocd: has left #RubyOnRails: ()
[16:15:54] codeurge: has joined #RubyOnRails
[16:16:04] zly: has joined #RubyOnRails
[16:16:58] dionysus69: has joined #RubyOnRails
[16:17:10] hfp: I have a controller that creates a model, marks it as Model.pending = true and then runs a job that marks it as Model.pending = false once its done. How can I assert that the Model is created with pending = true before the job runs and changes it?
[16:17:23] NBarnes: has joined #RubyOnRails
[16:17:36] Pazician: has joined #RubyOnRails
[16:19:15] ornerymoose: has joined #RubyOnRails
[16:19:39] hfp: I'm using ActionController::TestCase
[16:20:04] hfp: and no testing framework, so Minitest I think?
[16:23:36] kp666: has joined #RubyOnRails
[16:25:48] kmckelvin: has joined #RubyOnRails
[16:27:03] annlewis: has joined #RubyOnRails
[16:27:20] mooru: has joined #RubyOnRails
[16:28:31] kitsuneyo: has joined #RubyOnRails
[16:30:23] elton: has joined #RubyOnRails
[16:32:05] chipotle: has joined #RubyOnRails
[16:32:35] paulodiniz: has joined #RubyOnRails
[16:32:41] jhn: has joined #RubyOnRails
[16:32:41] nyaa: has joined #RubyOnRails
[16:35:02] bronson: has joined #RubyOnRails
[16:38:39] tenderlove: has joined #RubyOnRails
[16:40:01] sucks: has joined #RubyOnRails
[16:41:31] sbarg1: has joined #RubyOnRails
[16:43:02] darkxploit: has joined #RubyOnRails
[16:44:02] kmckelvin: has joined #RubyOnRails
[16:50:04] cydrobolt: has joined #RubyOnRails
[16:50:05] cydrobolt: has joined #RubyOnRails
[16:50:52] owenjones: has joined #RubyOnRails
[16:51:18] chipotle: has joined #RubyOnRails
[16:58:51] shibabu: has joined #RubyOnRails
[16:59:53] Hazim: has joined #RubyOnRails
[17:01:08] Hazim: has joined #RubyOnRails
[17:06:34] chipotle: has joined #RubyOnRails
[17:06:52] greg: has joined #RubyOnRails
[17:07:20] Yomero2: has joined #RubyOnRails
[17:19:19] goodcodeguy: has joined #RubyOnRails
[17:19:55] agit0: has joined #RubyOnRails
[17:20:21] draig: has joined #RubyOnRails
[17:20:45] goodcodeguy: has joined #RubyOnRails
[17:24:07] ornerymoose: has joined #RubyOnRails
[17:26:25] griffindy: has joined #RubyOnRails
[17:27:51] annlewis: has joined #RubyOnRails
[17:28:38] rgrmatt: has joined #RubyOnRails
[17:31:20] Pazician_: has joined #RubyOnRails
[17:31:45] King_Rex: has joined #RubyOnRails
[17:31:56] zpe: has joined #RubyOnRails
[17:31:58] zamerick_: has joined #RubyOnRails
[17:32:22] owenjones: has joined #RubyOnRails
[17:32:45] tenderlove: has joined #RubyOnRails
[17:33:08] cashnguns: has joined #RubyOnRails
[17:33:24] hahuang61: has joined #RubyOnRails
[17:33:34] tildes_: has joined #RubyOnRails
[17:33:43] uranther_: has joined #RubyOnRails
[17:33:59] srinidhi: has joined #RubyOnRails
[17:34:02] SuppliedRelic_: has joined #RubyOnRails
[17:34:03] machty_: has joined #RubyOnRails
[17:34:11] joaomdmoura__: has joined #RubyOnRails
[17:34:12] chancancode___: has joined #RubyOnRails
[17:34:15] jhill_: has joined #RubyOnRails
[17:34:16] Y_Ichiro_: has joined #RubyOnRails
[17:34:16] Y_Ichiro_: has joined #RubyOnRails
[17:34:26] jxf_: has joined #RubyOnRails
[17:34:48] CornishPasty_: has joined #RubyOnRails
[17:34:58] sarink: has joined #RubyOnRails
[17:35:02] golgaroth_: has joined #RubyOnRails
[17:35:04] czetter_: has joined #RubyOnRails
[17:35:09] contradictioned_: has joined #RubyOnRails
[17:35:26] Ikzi: has joined #RubyOnRails
[17:35:27] chandlerbing_: has joined #RubyOnRails
[17:35:40] teclator_: has joined #RubyOnRails
[17:35:54] dotty_: has joined #RubyOnRails
[17:35:55] mjc__: has joined #RubyOnRails
[17:35:58] krainboltgreene_: has joined #RubyOnRails
[17:36:10] Guest4184___: has joined #RubyOnRails
[17:36:14] TheMonster_: has joined #RubyOnRails
[17:36:24] gs: has joined #RubyOnRails
[17:36:30] borkdude_: has joined #RubyOnRails
[17:36:30] ELCALOR_: has joined #RubyOnRails
[17:36:31] dr_Poggs: has joined #RubyOnRails
[17:36:42] camilasann: has joined #RubyOnRails
[17:36:44] vedu_: has joined #RubyOnRails
[17:36:57] jtdowney_: has joined #RubyOnRails
[17:37:06] matt_d_: has joined #RubyOnRails
[17:37:22] iamdevnul__: has joined #RubyOnRails
[17:37:22] atumzin: has joined #RubyOnRails
[17:37:59] pipecloud: has joined #RubyOnRails
[17:38:10] newton2: has joined #RubyOnRails
[17:39:24] sfr^^: has joined #RubyOnRails
[17:39:43] [BNC]BLuEGoD: has joined #RubyOnRails
[17:40:01] soahccc^: has joined #RubyOnRails
[17:40:15] tejasmanohar_: has joined #RubyOnRails
[17:40:30] djinni`: has joined #RubyOnRails
[17:42:17] c355E3B_: has joined #RubyOnRails
[17:42:17] shanemcd: has joined #RubyOnRails
[17:42:17] amitchellbullard: has joined #RubyOnRails
[17:42:18] kalzz: has joined #RubyOnRails
[17:42:18] amitchellbullard: has joined #RubyOnRails
[17:42:18] zly: has joined #RubyOnRails
[17:42:18] null__: has joined #RubyOnRails
[17:42:18] null__: has joined #RubyOnRails
[17:42:18] TDJACR: has joined #RubyOnRails
[17:42:18] maesitos: has joined #RubyOnRails
[17:42:18] rhizome: good morning
[17:42:19] jbrhbr: has joined #RubyOnRails
[17:42:19] paulodiniz: has joined #RubyOnRails
[17:42:23] jmrepetti: has joined #RubyOnRails
[17:42:28] waldi_: has joined #RubyOnRails
[17:43:58] cjk101010: has joined #RubyOnRails
[17:44:14] bauruine: has joined #RubyOnRails
[17:44:32] sonofdirt: has joined #RubyOnRails
[17:44:50] jmimi: has joined #RubyOnRails
[17:45:54] ethe: has joined #RubyOnRails
[17:46:09] jhass: has joined #RubyOnRails
[17:46:56] jgt1: has joined #RubyOnRails
[17:47:07] feignt: has joined #RubyOnRails
[17:47:17] doge__: has joined #RubyOnRails
[17:47:30] WizJin: has joined #RubyOnRails
[17:47:41] kumavis: has joined #RubyOnRails
[17:47:47] ElFerna: has joined #RubyOnRails
[17:47:58] jlpeters: has joined #RubyOnRails
[17:48:02] ibouvousaime: has joined #RubyOnRails
[17:49:46] gremax: has joined #RubyOnRails
[17:50:29] codeurge: has joined #RubyOnRails
[17:51:56] lacrosse: has joined #RubyOnRails
[17:52:29] Lloyd: has joined #RubyOnRails
[17:53:11] netzfisch: has joined #RubyOnRails
[17:53:16] Didac: has joined #RubyOnRails
[17:53:30] mrtomme: has joined #RubyOnRails
[17:54:03] baweaver: has joined #RubyOnRails
[17:55:21] jlyndon: has joined #RubyOnRails
[17:58:14] Hazim: has joined #RubyOnRails
[17:58:35] nonjs: has joined #RubyOnRails
[17:58:39] nonjs: non native english speaker here, What exactly we call a software which developed with out considering too many use cases? like it works well if it meets all required conditions??
[17:58:48] cookiez: has joined #RubyOnRails
[17:59:02] ruurd: has joined #RubyOnRails
[18:00:37] FailBit: "version 1.0"
[18:00:47] _Tariq: has joined #RubyOnRails
[18:02:12] c355E3B_: has joined #RubyOnRails
[18:02:27] nibbo: has joined #RubyOnRails
[18:02:46] viiralvx: has joined #RubyOnRails
[18:02:54] gavit: I have a has_many 'reference'. where would be the ideal location to put the params.each MyReference.find(id). In my controller#create?
[18:03:06] gavit: anyone know what this is: http://apidock.com/rails/ActiveRecord/Associations/HasManyAssociation
[18:05:51] shock_one: has joined #RubyOnRails
[18:06:34] rhizome: gavit: what are you trying to do?
[18:06:46] n008f4g_: has joined #RubyOnRails
[18:06:48] rhizome: and it would be has_many :references
[18:06:57] kegan_: has joined #RubyOnRails
[18:08:08] nonjs: not that word, or may a software without enough foundation? without following best practices?
[18:08:13] smathy: has joined #RubyOnRails
[18:09:08] paulodiniz: has joined #RubyOnRails
[18:09:15] paulodiniz: has joined #RubyOnRails
[18:09:25] owenjones: has joined #RubyOnRails
[18:11:47] LambdaSource: has joined #RubyOnRails
[18:12:25] rhizome: you mean like "badly done?"
[18:12:47] paulodiniz: has joined #RubyOnRails
[18:13:30] c355E3B_: has left #RubyOnRails: ()
[18:13:39] rakm: has joined #RubyOnRails
[18:14:12] c355E3B: has joined #RubyOnRails
[18:16:43] lxsameer: has joined #RubyOnRails
[18:16:52] lxsameer: has joined #RubyOnRails
[18:17:45] nonjs: rhizome: not exactly, may be a software with too much duct tapes? the phrase is quite common.
[18:18:51] jgt1: has joined #RubyOnRails
[18:19:44] owenjones: has joined #RubyOnRails
[18:21:02] Coldblackice: has joined #RubyOnRails
[18:22:05] RegulationD: has joined #RubyOnRails
[18:22:30] paulodiniz: has joined #RubyOnRails
[18:22:34] rhizome: eh, maybe "alpha"
[18:22:57] rhizome: you're looking for a specific term? MVP?
[18:25:07] nibbo: has joined #RubyOnRails
[18:25:24] codergeek: has joined #RubyOnRails
[18:26:09] netzfisch: has joined #RubyOnRails
[18:26:52] tenderlove: has joined #RubyOnRails
[18:27:03] Cervajz: has joined #RubyOnRails
[18:28:37] annlewis: has joined #RubyOnRails
[18:29:10] FernandoBasso: has joined #RubyOnRails
[18:29:34] tildes: has joined #RubyOnRails
[18:29:49] goodcodeguy: has joined #RubyOnRails
[18:31:54] shock_one: has joined #RubyOnRails
[18:31:58] elton: has joined #RubyOnRails
[18:34:04] jmrepetti: has joined #RubyOnRails
[18:34:12] _Tariq: has joined #RubyOnRails
[18:34:23] rakm: has joined #RubyOnRails
[18:34:28] User458764: has joined #RubyOnRails
[18:35:48] TheMonster_: Hi, If I have a Post model, a User model and a Comment model, the Comment belongs to a user and a post. I want to be able to see all comments on a post and all comments of a user. Is there some known best practice for that scenario?
[18:36:32] TheMonster_: I assume the routes would use shallow nesting
[18:37:36] TheMonster_: The controller index method would need to check what parameter is in the url and accordingly list?
[18:37:45] n1lo: has joined #RubyOnRails
[18:40:08] owenjones: has joined #RubyOnRails
[18:43:02] thejamespinto: has joined #RubyOnRails
[18:44:54] nibbo: has joined #RubyOnRails
[18:44:56] arup_r: has joined #RubyOnRails
[18:47:55] arup_r: I have a model which I want to validate by user_id and asset_id. Here is what it look like: https://gist.github.com/aruprakshit/26add26a0f7b4d49d97f I thought of tp write in the model as validates_uniqueness_of (...?..), scope: [:asset_id, :user_id] .. not getting what to keep in the place of `?`
[18:48:01] arup_r: hints please
[18:48:43] arup_r: I want each permission to have uniq combination of asset_id and user_id ..
[18:50:41] tbuehlmann: arup_r, see http://guides.rubyonrails.org/active_record_validations.html#uniqueness
[18:51:25] arup_r: tbuehlmann: same as http://apidock.com/rails/ActiveRecord/Validations/ClassMethods/validates_uniqueness_of
[18:51:34] tbuehlmann: have you read it?
[18:52:42] elton: has joined #RubyOnRails
[18:52:43] arup_r: yes, .. ok got it
[18:52:51] arup_r: I was there ..
[18:53:45] _Tariq: has joined #RubyOnRails
[18:54:04] arup_r: validates :asset_id, :user_id, uniqueness: true you meant ?
[18:54:29] tbuehlmann: no, that's not what the guide tells you
[18:55:45] tbuehlmann: check the second code example in the uniqueness section
[18:56:23] RegulationD: has joined #RubyOnRails
[18:56:45] arup_r: tbuehlmann: you didn't get my question..
[18:57:12] tbuehlmann: you want to have a validation on Permission that validates the unique combination of asset and user
[18:58:06] arup_r: yes. got it validates_uniqueness_of :asset_id , scope: [ :user_id ]
[18:58:18] tbuehlmann: correct, that's also what the guide suggests
[18:59:05] arup_r: yes, I was bit _like_ some where else.. read it correctly and apply it wrongly.. thanks tbuehlmann
[18:59:33] lapide_viridi: has joined #RubyOnRails
[19:00:11] zpe_: has joined #RubyOnRails
[19:00:26] fexilal: has joined #RubyOnRails
[19:01:02] ibouvousaime: has joined #RubyOnRails
[19:02:25] ElFerna: has joined #RubyOnRails
[19:02:33] shibabu: has joined #RubyOnRails
[19:04:25] codergeek: has joined #RubyOnRails
[19:05:12] hnanon: has joined #RubyOnRails
[19:07:13] grayjedi: has joined #RubyOnRails
[19:09:56] StevenXL: has joined #RubyOnRails
[19:10:19] Hazim: has joined #RubyOnRails
[19:11:29] StevenXL: Hi everyone. I am trying to add Google OAuth to the project I am contributing too. I am testing out if I can sign in with Google on localhost, but I don't know what redirect URI I need to allow on the Google API console to get it to work.
[19:11:48] StevenXL: I've tried this, but no luck:
[19:11:50] StevenXL: http://localhost:3000/users/auth/google_oauth2/callback
[19:12:02] fryguy: stevenxl: you need to use your public IP address
[19:12:24] StevenXL: In my routes I have the following: user_omniauth_callback GET|POST /users/auth/:action/callback(.:format) devise_overrides/omniauth_callbacks#(?-mix:facebook|twitter|github|meetup)
[19:12:45] StevenXL: fryguy: Ohhhh - that's interesting. OK cool. I'll figure out my public address and try that
[19:13:22] nibbo: has joined #RubyOnRails
[19:13:29] arup_r: tbuehlmann: One more question. I used validates_uniqueness_of :asset_id, scope: :user_id, if: -> (permission) { permission.user_id.present? } .. Now, I have a loop through which I copy permission from chile to parent. Now as I have the uniqness validation, whenever it finds the not uniq record will throw exception. Which I will catch inside the loop and continue with the next iteration. This is my plan. Just want to be sure, should I cat
[19:13:29] arup_r: ch the parent exception http://apidock.com/rails/ActiveRecord/StatementInvalid or the specific one http://apidock.com/rails/ActiveRecord/RecordNotUnique
[19:13:50] arup_r: The doc said about both http://apidock.com/rails/ActiveRecord/Validations/ClassMethods/validates_uniqueness_of ,,, so a bit confused
[19:13:58] StaticVoid: has joined #RubyOnRails
[19:14:00] StevenXL: fryguy: When I try to put in my public IP address 67.xxx., I get this error: Invalid Redirect: http://67.250.89.15:3000/users/auth/google_oauth2/callback must end with a public top-level domain (such as .com or .org)
[19:14:06] StevenXL: Well, there goes my IP address.
[19:14:30] rhizome: looks like google wants FQDN
[19:14:50] User458764: has joined #RubyOnRails
[19:14:51] StevenXL: (I didn't realize whois also show my IP. Oh well)
[19:15:01] StevenXL: rhizome: sorry, I'm not understanding what you mean.
[19:15:02] arup_r: stevenxl: I have exactly what you have and it work for local test
[19:15:16] StevenXL: arup_r: yes.....
[19:15:30] arup_r: brokem smile
[19:15:38] User458764: has joined #RubyOnRails
[19:15:54] StevenXL: LOL - the suspense is killing me arup_r
[19:16:05] arup_r: it will work..
[19:16:27] s2013: has joined #RubyOnRails
[19:17:14] arup_r: stevenxl: You don't know how long I did google search for that to work :/
[19:17:20] arup_r: but it worked finally..
[19:17:45] arup_r: my question is open to all of you people... anybody can answer it..:D
[19:18:19] fryguy: stevenxl: use xip.io or a dynamic dns provider
[19:18:36] paulodiniz: has joined #RubyOnRails
[19:19:16] arup_r: fryguy: why ? When localhost just work for that
[19:19:37] fryguy: localhost only works on a LAN
[19:19:51] fryguy: google can't talk to your localhost
[19:19:55] StevenXL: arup_r: Did you mention what the solution is? If you did, I must have missed it.
[19:21:09] tenderlove: has joined #RubyOnRails
[19:21:13] arup_r: Yes, I told you that, the redirect_url http://localhost:3000/users/auth/google_oauth2/callback if you put in the Google site it will work..You will get response from them
[19:21:50] alaing: has joined #RubyOnRails
[19:22:11] Sawbones: has joined #RubyOnRails
[19:22:12] alaing: has joined #RubyOnRails
[19:22:13] fryguy: no you odn't
[19:22:28] arup_r: fryguy: I do.. have a working example
[19:22:56] fryguy: localhost isn't traversable over a WAN, it is literally impossible for that connection to work if there is a router between your machine and google
[19:22:56] alaing: hi, can someone recommend a living styling guide for rails framework
[19:23:01] arup_r: I test in local and then deploy .. 2 urls using `;` I mentioned there..
[19:23:20] kies: has joined #RubyOnRails
[19:24:44] paulodiniz: has left #RubyOnRails: ()
[19:24:49] paulodiniz: has joined #RubyOnRails
[19:24:52] arup_r: one is for production and one for develop machine..
[19:24:53] kadoppe: has joined #RubyOnRails
[19:24:54] grayjedi: I've never used the Google API, but with the Facebook API, using localhost works just fine.
[19:25:15] arup_r: grayjedi: Yes it same works for Google too
[19:25:22] arup_r: don't worry.. I am 200% sure..
[19:25:27] StevenXL: OK I'm going to try it arup_r
[19:25:29] StevenXL: Let me see how it goes
[19:25:53] arup_r: if it doesn't work, then you have wrong config in the google side or your app side.. That's it
[19:25:54] fryguy: oh, i'm thinking of the wrong part of oauth exchange
[19:26:05] arooni: has joined #RubyOnRails
[19:26:06] fryguy: i was thinking of bearer tokens
[19:26:23] fryguy: needed to reread everything
[19:27:05] goodcodeguy: has joined #RubyOnRails
[19:27:43] siaW: has joined #RubyOnRails
[19:28:14] StevenXL: OK - I've added that to the API console. I'm going to wait a minute or two just in case it takes time for that to filter through.
[19:29:02] arup_r: ahh, rescue didn't work when catching ActiveRecord::RecordNotUnique , it is throwing ActiveRecord::RecordInvalid .. WTF
[19:29:02] siaw_: has joined #RubyOnRails
[19:29:23] annlewis: has joined #RubyOnRails
[19:30:22] rgrmatt: has joined #RubyOnRails
[19:30:53] StevenXL: Man. I don't know what I"m doing wrong.
[19:30:56] StevenXL: This is the error I get
[19:30:58] StevenXL: Error: redirect_uri_mismatch
[19:31:06] StevenXL: The redirect URI in the request: http://localhost:3000/users/auth/google_oauth2/callback?origin=%2F did not match a registered redirect URI.
[19:31:12] StevenXL: Maybe I need to include a trailing "/"?
[19:31:24] smathy: has joined #RubyOnRails
[19:31:30] goodcodeguy: fryguy it doesn't have to connect to it; with OAUTH it doesn't actually communicate back to the redirecting server
[19:31:37] alaing: hi, can someone recommend a living styling guide for rails framework
[19:31:44] goodcodeguy: the server that is making the oauth request does all of the communication
[19:31:53] alaing: style guide as in CSS
[19:32:16] goodcodeguy: I set up test domains locally in my local hosts file to use for doing Oauth testing all the time without issue
[19:33:00] fryguy: goodcodeguy: in some token exchange scenarios it does
[19:33:14] beingjohnm: has joined #RubyOnRails
[19:33:20] nfk|laptop: has joined #RubyOnRails
[19:33:29] siaW: has joined #RubyOnRails
[19:33:49] StevenXL: Yea - I'm doing something wrong.
[19:33:55] siaW: i need some little help. am i doing the right thing with testing associations in this bit of code? https://gist.github.com/siaw23/13e1fa7e09ce7b9283ea
[19:34:07] goodcodeguy: fryguy hmmm, I guess I've yet to run into those scenarios; do you have an example of when it wouldn't work?
[19:36:24] codeurge: has joined #RubyOnRails
[19:37:35] corioliss: has joined #RubyOnRails
[19:37:47] _Tariq: has joined #RubyOnRails
[19:38:00] bronson: has joined #RubyOnRails
[19:38:03] User458764: has joined #RubyOnRails
[19:38:19] kuroro: has joined #RubyOnRails
[19:38:38] tbuehlmann: siaw, I'm interested, why do you test the associations?
[19:38:51] nibbo: has joined #RubyOnRails
[19:39:19] siaW: tbuehlmann: because it???s possible, and i want to put a test for things that are ???testable???
[19:39:21] ElFerna: has joined #RubyOnRails
[19:39:51] tbuehlmann: the only reason I see for testing something like that is "documentation"
[19:40:24] _Tariq: has joined #RubyOnRails
[19:43:49] rhizome: you're essentially writing that code twice, and half of it duplicates existing tests
[19:43:56] smathy: has joined #RubyOnRails
[19:43:57] arup_r: tbuehlmann: I figured it out.. Thanks
[19:46:10] siaW: rhizome: how should i do it then?
[19:47:05] tbuehlmann: what do you gain by testing that? why do you want to test it?
[19:47:48] rhizome: siaw: delete that whole test
[19:48:05] siaW: rhizome: and then? :D
[19:48:23] rhizome: have tests that touch those associations and exercise your validation methods
[19:48:30] kies: has joined #RubyOnRails
[19:48:44] tbuehlmann: if the answer were "documentation" I'd say, cool, keep that, but if that is not the intention, delete it
[19:49:01] baweaver: has joined #RubyOnRails
[19:49:01] siaW: tbuehlmann: ok
[19:49:02] rhizome: it's no more documentation than the code itself
[19:49:26] fox_mulder_cp: hi, people. where i can find examples of test from embedded framework, or capybara? want to use tests
[19:50:27] rhizome: fox_mulder_cp: i don't understand your question
[19:51:11] smathy: has joined #RubyOnRails
[19:51:32] DLSteve: has joined #RubyOnRails
[19:53:29] alex88: has joined #RubyOnRails
[19:53:37] fox_mulder_cp: rhizome: i want write tests for my app - functional and interface
[19:54:32] fox_mulder_cp: for class/methods and a interface
[19:54:45] rhizome: sure, so basic stuff?
[19:55:37] fox_mulder_cp: yes. want to knows, how to make a test. update functional sometimes broken app %)
[19:55:58] tbuehlmann: I really have problems understanding you :(
[19:56:12] Quintasan: has joined #RubyOnRails
[19:56:12] Quintasan: has joined #RubyOnRails
[19:56:30] fox_mulder_cp: oh. my english not my native language, sorry :(
[19:56:43] fox_mulder_cp: i'm from Ukraine
[19:57:47] Pazician: has joined #RubyOnRails
[19:58:12] owenjones: has joined #RubyOnRails
[19:58:22] Pazician: has joined #RubyOnRails
[19:58:57] ss_much: has joined #RubyOnRails
[19:59:17] jmrepetti: has joined #RubyOnRails
[19:59:59] fox_mulder_cp: i want learn how to write a tests for functions and interface for my app
[20:00:19] djbkd: has joined #RubyOnRails
[20:00:52] nyaa: has joined #RubyOnRails
[20:00:59] nettoweb: has joined #RubyOnRails
[20:01:00] tbuehlmann: fox_mulder_cp, have you read http://guides.rubyonrails.org/testing.html already?
[20:01:37] paulodiniz: has joined #RubyOnRails
[20:03:56] kegan_: fox_mulder_cp after that check out rspec
[20:04:56] fox_mulder_cp: Thanks. start learning from this point
[20:07:25] yza: has joined #RubyOnRails
[20:10:30] nibbo: has joined #RubyOnRails
[20:11:04] eddiegrey: has joined #RubyOnRails
[20:11:52] atomical: has joined #RubyOnRails
[20:13:32] jmimi: has joined #RubyOnRails
[20:13:49] kies: has joined #RubyOnRails
[20:13:58] grayjedi: has joined #RubyOnRails
[20:16:16] rhizome: https://robots.thoughtbot.com/how-we-test-rails-applications has examples
[20:18:05] shanemcd: has joined #RubyOnRails
[20:19:45] Quintasan: has joined #RubyOnRails
[20:19:45] Quintasan: has joined #RubyOnRails
[20:21:28] ornerymoose: has joined #RubyOnRails
[20:24:54] User458764: has joined #RubyOnRails
[20:25:45] nibbo: has joined #RubyOnRails
[20:27:41] tenderlo_: has joined #RubyOnRails
[20:28:18] SteenJobs: has joined #RubyOnRails
[20:30:17] annlewis: has joined #RubyOnRails
[20:30:40] _Tariq: has joined #RubyOnRails
[20:31:10] rgrmatt: has joined #RubyOnRails
[20:32:25] sucks: has joined #RubyOnRails
[20:36:48] brt: has joined #RubyOnRails
[20:37:21] kitsuneyo: has joined #RubyOnRails
[20:38:27] shock_one: has joined #RubyOnRails
[20:39:26] chipotle: has joined #RubyOnRails
[20:39:52] kies: has joined #RubyOnRails
[20:44:50] alex88: has joined #RubyOnRails
[20:44:52] dionysus69: has joined #RubyOnRails
[20:46:32] hardtail: has joined #RubyOnRails
[20:46:58] agit0: has joined #RubyOnRails
[20:47:29] rgrmatt: has joined #RubyOnRails
[20:48:01] User458764: has joined #RubyOnRails
[20:48:16] goodcodeguy: has joined #RubyOnRails
[20:49:40] paulodiniz: has joined #RubyOnRails
[20:50:28] AndroidLoverInSF: has joined #RubyOnRails
[20:53:05] _Tariq: has joined #RubyOnRails
[20:53:28] agit0: has joined #RubyOnRails
[20:54:11] cold_zero: has joined #RubyOnRails
[20:55:21] _Tariq: has joined #RubyOnRails
[20:56:06] falkhan: has joined #RubyOnRails
[20:56:54] kies: has joined #RubyOnRails
[20:58:17] cold_zero: Hi. I have problem configuring my rails project for using rspec with capybara
[20:58:50] cold_zero: and for now i can't identify where the real problem is
[20:58:54] njero: has joined #RubyOnRails
[20:59:08] owenjones: has joined #RubyOnRails
[20:59:42] cold_zero: I've added this two lines to spec_helper.rb " require 'capybara/rspec' ; require 'capybara/rails' "
[21:00:18] rhizome: with you so far
[21:00:23] cold_zero: when I try to run rspec I got the following
[21:00:23] cold_zero: `<class:ERB>': uninitialized constant ActionView::Template::Handlers::ERB::ENCODING_FLAG (NameError)
[21:00:44] cold_zero: for some reasons is from view subsystem
[21:01:10] rhizome: looks more fundamental than that
[21:01:35] King_Rex: has joined #RubyOnRails
[21:08:56] shibabu: has joined #RubyOnRails
[21:09:05] paulodiniz: @cold_zero Found a stackoverflow question with the same problem http://stackoverflow.com/questions/4429068/getting-an-unitialized-constant-error-with-rspec-have-no-idea-whats-causing-it
[21:09:42] paulodiniz: seems some problem with rails environments
[21:10:47] owenjones: has joined #RubyOnRails
[21:11:57] rgrmatt: has joined #RubyOnRails
[21:12:01] cold_zero: paulodiniz: it's definitely step in right direction :)
[21:12:07] cold_zero: /home/nik/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/builder.rb:146:in `to_app': missing run or map statement (RuntimeError)
[21:13:18] duncannz: has joined #RubyOnRails
[21:14:10] paulodiniz: @cold_zero How is your spec_helper file?
[21:14:13] DavidDudson: has joined #RubyOnRails
[21:14:21] paulodiniz: and what happens when you run just one spec file?
[21:14:42] cold_zero: this is happening when I run just one spec file
[21:14:49] cold_zero: I've included only this
[21:14:50] cold_zero: config.include Capybara::DSL
[21:15:15] cold_zero: what exactly I should require in spec_helper.rb
[21:15:42] cold_zero: for now I've included this four line
[21:15:42] cold_zero: require 'rails/all'
[21:15:47] cold_zero: require 'rspec/rails'
[21:15:52] cold_zero: require 'capybara/rspec'
[21:15:54] rickmasta: has joined #RubyOnRails
[21:15:56] cold_zero: require 'capybara/rails'
[21:16:42] SteenJobs: has joined #RubyOnRails
[21:16:50] paulodiniz: @cold_zero can you share it with a gist?
[21:17:41] cold_zero: https://gist.github.com/SuperManEver/38eeea4d5266c9d7090e
[21:18:47] cold_zero: I'm using Haml as template engine. I don't know may be this is important
[21:19:17] lacrymology: has joined #RubyOnRails
[21:19:20] SteenJobs: has joined #RubyOnRails
[21:19:26] viiralvx: has joined #RubyOnRails
[21:19:51] alex88: has joined #RubyOnRails
[21:20:57] paulodiniz: @cold_zero Are you using rspec 2 or 3?
[21:21:35] brt: has joined #RubyOnRails
[21:23:09] cold_zero: kitsuneyo: hi
[21:23:28] paulodiniz: @cold_zero I would try to remove all capybara configurations from spec_helper, including the require statements
[21:24:31] cold_zero: you mean what I've added like config.include Capybara::DSL
[21:24:56] paulodiniz: It doesn't seem to be necessary on rspec 3
[21:25:01] paulodiniz: @cold_zero but that's a guess
[21:25:50] cold_zero: ok, I've tried
[21:25:59] cold_zero: I got following error
[21:25:59] cold_zero: /home/nik/Dev/rails_tutorial_projects/tw_clone/spec/rails_helper.rb:31:in `block in <top (required)>': undefined method `fixture_path=' for #<RSpec::Core::Configuration:0xa16df50> (NoMethodError)
[21:27:07] paulodiniz: @cold_zero the require capybara/rspec and capybara/rails also
[21:28:40] cold_zero: i've tried to include one require statement at a time it looks like I only need to run
[21:28:43] cold_zero: require 'rails/all'
[21:28:49] cold_zero: require 'rspec/rails'
[21:29:11] cold_zero: at this point I not dealing with capybara at all
[21:29:29] duderonomy: cold_zero: what about the initialized env directive on the recently posted stackoverflow page, 4429068
[21:29:32] cold_zero: and it still throw an exeption
[21:29:32] cold_zero: /home/nik/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/builder.rb:146:in `to_app': missing run or map statement (RuntimeError)
[21:30:42] yfeldblum: has joined #RubyOnRails
[21:30:53] annlewis: has joined #RubyOnRails
[21:31:03] cold_zero: exactly the same error get back
[21:35:05] armyriad: has joined #RubyOnRails
[21:36:18] cold_zero: may be you know good guide how to setup rails app with rspec and capybara for testing
[21:36:36] cold_zero: I'm using rails 4.2.2
[21:37:29] Hazim: has joined #RubyOnRails
[21:37:34] duderonomy: cold_zero: Bummer. Here's a snapshot of a working setup (converted Hartl SameplApp Rails3/RSpec2 => Rails4/RSpec3). Maybe it helps? https://gist.github.com/duderonomy/db8900b13b867148dc1f
[21:38:53] jbermudes_: has joined #RubyOnRails
[21:38:54] cold_zero: ok. Thank you I will try this one.
[21:39:00] armyriad: has joined #RubyOnRails
[21:39:16] duderonomy: specifically, Rails 4.2.0
[21:39:28] cold_zero: is it right to say that spork is used to run test faster because env is preloaded ?
[21:39:45] shapeshifter: What do I have to do to override this "assign_default_credit_card" method which resides in a module of a class? https://github.com/spree/spree/blob/master/core/app/models/spree/order/checkout.rb#L291 For normal classes I can just do something like Spree::Order.class_eval do but what about this? The method is defined inside a def self.included(klass)....
[21:40:04] bronson: has joined #RubyOnRails
[21:40:07] Spami: has joined #RubyOnRails
[21:40:19] duderonomy: That's supposed to be true. But I have not been running the spork server. It's just there configured the way Hartl had done it
[21:41:19] cold_zero: I had wondered is there any way to make test run faster
[21:41:27] cold_zero: spork one of them?
[21:41:40] shibabu: has joined #RubyOnRails
[21:42:36] duderonomy: For sure. It needs to be restarted at certain junctures to include particular types of changes. Perhaps to a model?
[21:43:53] cold_zero: is there any criteria based on which I should decided whether to use spork or look for something else
[21:45:22] NBarnes: has joined #RubyOnRails
[21:46:53] duderonomy: My search does not immediately reveal alternatives to spork. Maybe something exists. http://stevelorek.com/speed-testing-with-spork.html
[21:47:08] jhass: I'd recommend spring over spork these days
[21:47:26] jhass: https://github.com/rails/spring
[21:47:33] cold_zero: ha ha funny I'm reading about spring right now :)
[21:47:50] paulodiniz: @Shapeshifter You can just monkeypatch (urgh), create a class on your lib folder that specifies the same module hierarchy and define the method again
[21:47:50] duderonomy: Cool thanks for that!
[21:48:06] paulodiniz: @Shapeshifter like this http://stackoverflow.com/questions/19973836/rails-how-to-override-method-in-module-which-is-inside-class
[21:48:22] cold_zero: I've never used something like spring. So, my intuitive understanding is that it allows me to keep rails app preloaded
[21:48:35] cold_zero: and I'm guessing this allows me to run rspec test faster
[21:48:54] duderonomy: And see that error faster, undoubtedly! ;)
[21:49:20] cold_zero: great. I'm going to try spring. Thanks to you :)
[21:49:28] moeabdol2: has joined #RubyOnRails
[21:49:38] paulodiniz: @Shapeshifter but I think on your case, maybe you can make a class inherit from spree's Order, and redefine the behavior there
[21:50:29] cold_zero: duderonomy: is there any I need to be aware about. Like strange installation process or difficulties with setup ?
[21:50:55] paulodiniz: @Shapeshifter OR if you are using ruby 2.0, you can use Module#prepend, which is WAY better than monkeypatching https://github.com/banister/prepend
[21:51:13] user083: has joined #RubyOnRails
[21:52:29] duderonomy: cold_zero: not sure of the question. Just ask again when you hit next blocker. :)
[21:52:44] cold_zero: ok. Thanks for help :)
[21:53:24] _Tariq: I have a question and I hope it's not considered trollish. Is it possible to use embedded ruby to create an array, with each element in the array containing some content, and then iterate over the array, putting each item into a prepared template?
[21:53:43] _Tariq: I was just seeing if it might be possible to create something like The Grid in Ruby on Rails?
[21:54:11] rhizome: what's The Grid?
[21:55:57] _Tariq: The Grid is supposedly an AI program that can create websites
[21:56:07] _Tariq: But it has not been publicly released yet
[21:56:22] FernandoBasso: has joined #RubyOnRails
[21:56:25] _Tariq: The idea is that you give it content, and The Grid will then create a the website using your content
[21:56:34] _Tariq: and then do A&B testing to make sure the website looks well
[21:56:52] netzfisch: has joined #RubyOnRails
[22:00:37] agit0: has joined #RubyOnRails
[22:00:46] smathy: has joined #RubyOnRails
[22:00:51] The_Phoenix: has joined #RubyOnRails
[22:00:55] shock_one: has joined #RubyOnRails
[22:01:50] rhizome: ok, so if your question is whether you can do actual programming in ruby on rails, "yes"
[22:03:17] kitsuneyo: rhizome, so what's a good alternative to minitest for testing javascript UI stuff? something easy to use preferably
[22:03:48] rhizome: well it's going to be on top of minitest whatever it is
[22:04:30] rhizome: capybara, webkit, selenium, jasmine are all keywords. i'm not up on the latest of js testing, but if you just want to be able to modal and stuff...
[22:05:02] paulodiniz: has joined #RubyOnRails
[22:06:36] kitsuneyo: capybara then?
[22:06:37] smathy: has joined #RubyOnRails
[22:07:25] reaVer: has joined #RubyOnRails
[22:08:02] kitsuneyo: i've heard of jasmine but i guess capybara is pretty popular, must be for a reason
[22:08:16] fryguy: those are totally different things
[22:08:18] rhizome: capybara at least
[22:08:41] rhizome: yes, they are all different. i listed them in increasing levels of js-ness
[22:09:07] fryguy: not only are they differing levels of "js-ness" but they are different levels of testing
[22:09:07] rgrmatt: has joined #RubyOnRails
[22:09:13] kitsuneyo: fryguy, this is gonna be my first step away from minitest, i don't know what i'm talking about
[22:09:27] fryguy: one is for integration testing only, and another can be used for things like unit testing javascript
[22:09:34] kitsuneyo: i just want to do some basic tests of my user interface
[22:09:35] thejamespinto: has joined #RubyOnRails
[22:10:03] rhizome: capybara should be fine, maybe selenium
[22:10:21] kitsuneyo: thanks guys
[22:10:28] kitsuneyo: i'll try it out
[22:14:44] Scriptonaut: Do any of you guys pair program with ssh and tmux and vim? I'm trying to follow this guide and it doesn't automatically connect useres who ssh into my machine to the tmux session: http://collectiveidea.com/blog/archives/2014/02/18/a-simple-pair-programming-setup-with-ssh-and-tmux/
[22:15:19] Scriptonaut: This isn't necessarily a rails question, but this is a very common thing to do in the rails world so I figured I'd have the best luck asking here
[22:15:53] Scriptonaut: The part that doesn't seem to be working for me, is adding the command="" line to my ss./authorized_keys file
[22:15:57] tenderlove: has joined #RubyOnRails
[22:16:12] Scriptonaut: it doesn't throw any errors, however when I ssh in it doesn't connect to the tmux session
[22:17:25] ruurd: has joined #RubyOnRails
[22:19:06] rhizome: you have that command followed by your public key?
[22:19:23] Scriptonaut: I put the command at the very end of the file
[22:19:52] Scriptonaut: should it be at the beginning?
[22:20:01] rhizome: what does it look like in the example?
[22:20:29] Scriptonaut: In the example there are no keys in his authorized_keys file
[22:20:39] Scriptonaut: but right before he says that you need to add them
[22:21:53] paulodiniz: has joined #RubyOnRails
[22:22:50] kies: has joined #RubyOnRails
[22:29:44] Pazician: has joined #RubyOnRails
[22:30:01] Scriptonaut: I figured it out, it's because I was using command = "" incorrectly, I had to prepend it to the keys that I want to apply that command to
[22:31:04] Guest5103: has left #RubyOnRails: ()
[22:31:37] ruurd: has joined #RubyOnRails
[22:32:05] annlewis: has joined #RubyOnRails
[22:32:52] agit0: has joined #RubyOnRails
[22:36:01] juddey: has joined #RubyOnRails
[22:37:47] ruid: has joined #RubyOnRails
[22:37:48] ruid: has joined #RubyOnRails
[22:37:54] tenderlove: has joined #RubyOnRails
[22:41:01] sonofdirt: has joined #RubyOnRails
[22:41:33] jmimi: has joined #RubyOnRails
[22:41:48] Scriptonaut: I have rvm installed for a user on my machine, however, it doesn't seem to extend to my other user. Do you have to install rvm for each user?
[22:41:54] zly: has joined #RubyOnRails
[22:43:08] havenwood: Scriptonaut: Yeah, with the standard single user install (which is recommended).
[22:43:27] Scriptonaut: if I install it for this new user, can we share gemsets and stuff between them?
[22:43:31] Scriptonaut: or will I have to install everything twice
[22:43:39] Scriptonaut: space might be an issue for me, my harddrive is 4GB
[22:43:45] Scriptonaut: (raspberry pi)
[22:44:07] _Tariq: has joined #RubyOnRails
[22:45:13] moeabdol: has joined #RubyOnRails
[22:45:26] annlewis: has joined #RubyOnRails
[22:45:54] ruurd: Scriptonaut maybe rvm and multiple users is not for a restricted environment as the pi
[22:47:19] havenwood: Scriptonaut: You could reinstall RVM as a multi-user installation.
[22:47:26] ruurd: I mean it's not a lot of room nowadays to accomodate multiple users
[22:47:46] xlegoman: has joined #RubyOnRails
[22:48:17] SteenJobs: has joined #RubyOnRails
[22:48:22] havenwood: Scriptonaut: Do you really need gemsets?
[22:48:31] adavia: has joined #RubyOnRails
[22:49:02] Scriptonaut: not necessarily, I normally use .rbenv and then alias rake to bundle exec rake, which seems to work. lately I've been giving rvm a try though
[22:49:20] alex88: has joined #RubyOnRails
[22:49:33] havenwood: Scriptonaut: Give chruby and ruby-install a try next time you're feeling adventurous with ruby installers and switchers. :)
[22:49:52] FailBit: ACTION remains faithful to rbenv
[22:49:56] havenwood: Scriptonaut: https://github.com/postmodern/chruby#readme
[22:50:09] FailBit: obviously there is a wide variance of them and I mostly leave it to personal preference
[22:50:17] FailBit: no matter how "evil" one or another may seem
[22:50:23] havenwood: Scriptonaut: chruby is the simplest
[22:50:28] ruurd: What's the use of the rbenv/rvm discussion here? 4G just is not a lot.
[22:50:37] FailBit: if the end result is ruby, then $INSTALLER == good
[22:51:32] ruurd: Scriptonaut do you really need multiple ruby and/or rails versions simultaneously?
[22:51:55] Cohedrin: has joined #RubyOnRails
[22:53:52] Scriptonaut: ruurd: pretty much
[22:54:00] Scriptonaut: I have a lot of different rails projects
[22:54:05] Scriptonaut: and vanilla ruby projects
[22:54:10] ruurd: Otherwise you could do a 'classic' install and use something like capistrano to deploy the app and the gems to the pi
[22:54:14] Scriptonaut: one of them uses ruby 1.9x and rails 3.2
[22:54:33] Scriptonaut: ruby actually doesn't take up /that/ much space
[22:54:37] Scriptonaut: I also have no x11 on this machine
[22:54:41] Scriptonaut: so it's pretty lean
[22:55:00] ruurd: Yes well unless you're going to multiply that by x users :-)
[22:55:09] Scriptonaut: just this one extra user
[22:55:13] Scriptonaut: it's a pair programming user
[22:55:51] Scriptonaut: I made quite the cool setup, users ssh into my machine, and are automatically connected to a tmux session, if it doesn't exist they're disconnected. If they try to unattach from tmux, they're disconnected. If they close tmux, they're disconnected
[22:55:56] ruurd: Well - how about doing the programming on a different machine then and deploy with capistrano?
[22:56:13] Scriptonaut: I like playing wiith the rpi
[22:56:18] Scriptonaut: and seeing how developing on it
[22:56:24] ruurd: I got one for Sinterklaas.
[22:56:33] Scriptonaut: they're so cool
[22:56:43] Scriptonaut: I got another one for Christmas, this time a rpi 2
[22:56:46] paulodiniz: has joined #RubyOnRails
[22:56:51] Scriptonaut: I'm currently on the first rpi model b
[22:56:55] ruurd: I'm trying out running it as a media server... so much to explore.
[22:57:22] ruurd: Jaw dropped to the ground when I found out it can be commanded from the TVs remote.
[22:57:37] ruurd: Lucky bastard!
[22:57:46] ruurd: Run Windows 10 on it.... EEEEEW
[22:58:07] Scriptonaut: I've used mine for tons of stuff over the years. Media server, file server, cache server, web server, game emulation machine for old super nintendo games and old sega games
[22:58:10] Scriptonaut: they're really fun
[22:58:42] Scriptonaut: oh, also I set up a home surveillance system in my house with them one
[22:58:46] Scriptonaut: connected to various web cams
[22:58:56] Scriptonaut: was cool, I could checkout what was going on in my house while I was at work
[22:59:20] ruurd: I have teenage kids... they will protest that.
[22:59:25] Scriptonaut: I had it connected to speakers, and would do text to speech to freak out my cats
[22:59:33] Scriptonaut: haha, ya I bet they will
[22:59:40] ruurd: But yes major coolness. Run LibreOffice on the thing...
[23:00:36] ruurd: I wonder if there is a way to connect them to the energy meter in the house.
[23:00:56] Scriptonaut: there definitely is, you usually need another type of adapter board or something to read things like that
[23:01:08] ruurd: One of them newfangled things that have that box dangling from them that stores statistics
[23:01:30] Scriptonaut: you could even run a sinatra app or a rails server to display the statistics
[23:01:46] nickjj: Scriptonaut, there's docker too for both development and deployment
[23:02:01] Scriptonaut: I might check it out
[23:02:01] nickjj: each app can be whatever ruby/rails version you want, it doesn't matter
[23:02:09] nickjj: and no complication of using rvm/chruby
[23:03:05] havenwood: Scriptonaut: RVM even ships with mrvm (mini-rvm) that supports chruby. Or you can install Rubies for RVM with ruby-install or switch to RVM-installed Rubies from chruby.
[23:03:10] ruurd: nickjj you mean a dockerized version of the pi?
[23:03:41] nickjj: ruurd, i didn't scroll up that far to see it's related to pi but docker runs fine on pi
[23:05:00] nickjj: if you used alpine as a base image for your rails image you could probably get it to a few megabytes + whatever gems you use
[23:08:32] nickjj: seems like a vanilla rails 4 image (everything needed for a base rails app) to run will clock in at about 70mb
[23:10:00] stevednd: has joined #RubyOnRails
[23:12:52] brt: has joined #RubyOnRails
[23:15:15] kiez0rd: has joined #RubyOnRails
[23:15:48] tenderlove: has joined #RubyOnRails
[23:18:52] jmrepetti: has joined #RubyOnRails
[23:23:32] hardtail: has joined #RubyOnRails
[23:24:01] blackhuey: has joined #RubyOnRails
[23:26:31] bahar: has joined #RubyOnRails
[23:27:47] alex88: has joined #RubyOnRails
[23:28:31] felixal: has joined #RubyOnRails
[23:28:47] n1lo: has joined #RubyOnRails
[23:28:53] sucks: has joined #RubyOnRails
[23:29:33] rgrmatt: has joined #RubyOnRails
[23:40:15] _Tariq: has joined #RubyOnRails
[23:40:48] jottr: has joined #RubyOnRails
[23:42:26] Cache_Money: has joined #RubyOnRails
[23:43:05] bronson: has joined #RubyOnRails
[23:44:01] smathy: has joined #RubyOnRails
[23:45:08] DavidDudson: has joined #RubyOnRails
[23:45:15] kitsuneyo: has joined #RubyOnRails
[23:46:08] adavia: has joined #RubyOnRails
[23:48:51] Cache_Money: for a :has_many :through relation (e.g. Project & Tag with ProjectTag as many-to-many table ) does it matter the order of the names? For example, Could I use TagProject instead of ProjectTag?
[23:50:30] thejamespinto: has joined #RubyOnRails
[23:50:39] Cache_Money: I ask because I'm using this example (https://github.com/nathanvda/cocoon/wiki/A-guide-to-doing-nested-model-forms#the-has_many-through-relation) and I have a Kit and AmazonProduct model and my many-to-many model is called AmazonProductKit right now. The linked example is using ProjectTag, so that leads me to conclude I should be calling my model KitAmazonProduct. Do I need to change that?
[23:57:41] iateadonut: has joined #RubyOnRails