« Back to channel list

#RubyOnRails - 11 June 2015

« Back 1 day Forward 1 day »
[00:00:22] feens: tricky question: I???m trying to have a model with a has_one on a scope, but I need it to not nullify the foreign_key when a new object is assigned
[00:00:24] feens: i.e. ogranization has_many locations, and has_one primary_location (with primary: true)???so when organization.primary_location is called, I don???t want it to set location.organization_id to nil for the other locations (just to set primary: false)
[00:00:48] feens: or I just need dependent to do nothing
[00:01:41] Stuffness: has joined #RubyOnRails
[00:01:43] bruno-: has joined #RubyOnRails
[00:03:04] viiralvx: has joined #RubyOnRails
[00:03:58] joelataylor: has joined #RubyOnRails
[00:06:34] ruv: has joined #RubyOnRails
[00:06:50] FernandoBasso: How do I know when I have to use <action>_<model>_path vs just <model>_path?
[00:07:55] FernandoBasso: Does the output of `rake routes` tell me about it? I see the output but I'm not sure how to interpret that first column.
[00:07:58] barnex: FernandoBasso: easy (for me) answer: run rake routes
[00:08:05] smathy: frank_o, no, Jason.
[00:08:14] smathy: aloneintheworld, you're very welcome.
[00:08:46] barnex: FernandoBasso: yeah it does, the first column is prefix of a method. so if it's 'new_user' you'r going to have new_user_path and new_user_url available to you
[00:09:37] sevenseacat: has joined #RubyOnRails
[00:11:27] FernandoBasso: barnex: I see. But I also have PATCH, PUT and DELETE whose first column has no value for them.
[00:11:59] bricker: FernandoBasso: those are the same as the "show" one
[00:12:45] bricker: FernandoBasso: remember the route helpers just generate strings. So if the path to DELETE and GET a resource are the same, you'll use the same route helper
[00:12:55] FernandoBasso: Okay, then, if I do user_path rails decide which is which based on the verb. Right?
[00:13:12] bricker: FernandoBasso: no, user_path just generates a string. /users/1
[00:13:29] smathy: FernandoBasso, your form will provide the verb.
[00:13:30] bricker: user_path(id: 1), that is
[00:14:14] smathy: feens, your question is not clear, nor is it clear if you resolved it, gist your code if you still need help.
[00:14:21] FernandoBasso: Okay, I think I got it. Some practice will reinforce this info. Thank you folks.
[00:15:10] annlewis: has joined #RubyOnRails
[00:15:42] Wizek: has joined #RubyOnRails
[00:17:00] smathy: FernandoBasso, if you use the scaffold generator you can see the view code that you need for all the different varieties of create/update/delete actions.
[00:18:01] michael_mbp: has joined #RubyOnRails
[00:18:15] FernandoBasso: smathy: Okay. Thanks.
[00:18:45] smathy: ...you can generally avoid using any path helpers for all of the write actions.
[00:18:52] Lightsword: has joined #RubyOnRails
[00:20:38] simplyianm: has joined #RubyOnRails
[00:21:16] earthquake: has joined #RubyOnRails
[00:22:34] jcaho: has joined #RubyOnRails
[00:24:06] ruv_: has joined #RubyOnRails
[00:24:17] crevax: has joined #RubyOnRails
[00:24:38] ruv: has joined #RubyOnRails
[00:24:49] ruv_: has left #RubyOnRails: ()
[00:25:02] alexclark: has joined #RubyOnRails
[00:25:09] feens: https://gist.github.com/feens/a5e5e89659f23d8dd73b
[00:25:27] ruv: has joined #RubyOnRails
[00:26:10] mtchllbr_: has joined #RubyOnRails
[00:26:26] feens: so???as per the gist???when I do the org.primary_location call, I don???t want it to try and set l1.organization_id to nil, as it is validating on that field
[00:26:41] feens: I just want primary_location= to set location.primary = false
[00:30:18] uninitialized: has joined #RubyOnRails
[00:31:00] smathy: feens, you mean you want it to set l1.primary to false?
[00:31:55] feens: but the problem is that by default, has_one will try and nullify the foreign_key, which causes validation to fail
[00:32:01] smathy: feens, but the association= method *does* set the foreign_key and save the record. That's its intended function: http://devdocs.io/rails/activerecord/associations/classmethods#method-i-has_one
[00:32:17] feens: I don???t want it to nullify the foreign key
[00:32:19] one_zero: has joined #RubyOnRails
[00:32:23] feens: as that causes validation to fail
[00:32:37] feens: and the other options are just destroy/delete, which I also don???t want
[00:33:19] feens: the inteded behaviour is that the scoped association (primary_location) just changes the primary flag on locations
[00:33:26] smathy: feens, yeah, it's a bit tricky here because you have both the has_one and the has_many. You really can't use the has_one here, you'll have to write the primary_location= method yourself.
[00:33:36] mike___1234: has joined #RubyOnRails
[00:33:39] smathy: (and the primary_location method for that matter)
[00:34:09] feens: well, for the sake of DRYness, we rely on the association to be there
[00:34:25] feens: as we have a concern attached to the model
[00:34:28] renews: has joined #RubyOnRails
[00:35:03] krisquigley: has joined #RubyOnRails
[00:35:14] feens: kinda suprises me that has_one doesn???t have a way of overriding the dependent behavior
[00:35:52] CheckYourSix: I can't wait to start messing with Rails again. I've been so busy with work the past 3-4 weeks I hardly even have time go to the store. I need to write code.
[00:36:42] smathy: feens, it would definitely be nice if you could provide a callback to :dependent
[00:37:07] edwinrozario: has joined #RubyOnRails
[00:37:44] robustus: has joined #RubyOnRails
[00:38:35] mtchllbr_: has joined #RubyOnRails
[00:40:15] yaewa: has joined #RubyOnRails
[00:42:32] baweaver: has joined #RubyOnRails
[00:47:09] uninitialized: has joined #RubyOnRails
[00:47:29] fontas: has joined #RubyOnRails
[00:47:29] FernandoBasso: I'm getting `No route matches [GET] "/state/new"` I'm using `new_state_path`, and have `resources :states` in routes.rb.
[00:47:58] FernandoBasso: Actually, `resources :home, :states`.
[00:48:06] sevenseacat: you cant define them together like tht
[00:48:09] sevenseacat: separate lines plz
[00:48:39] erich: has joined #RubyOnRails
[00:49:17] helpa: What sevenseacat said
[00:49:21] FernandoBasso: http://guides.rubyonrails.org/routing.html#defining-multiple-resources-at-the-same-time
[00:49:46] Radar: FernandoBasso: show us the output of "rake routes" please
[00:50:17] Aeyrix: sevenseacat: Is it resource, resources, or both?
[00:50:25] Aeyrix: I think I arbitrarily switch between.
[00:50:38] FernandoBasso: https://gist.github.com/FernandoBasso/d5b8842a253e02d7fa37
[00:51:09] Aeyrix: FernandoBasso: >state
[00:51:43] Aeyrix: new_state_url would work, no?
[00:51:51] FernandoBasso: I tried <p><%= link_to 'New State', new_states_path %></p>, but still get the same No route matches [GET] "/state/new"
[00:52:11] uninitialized: has joined #RubyOnRails
[00:52:16] starfox_sf: I am trying to create graphs on an active_admin using data that is on my Google analytics account. Is there a good gem to fetch the data from Google analytics? Also is it possible to embed google analytics graphs on my admin?
[00:52:20] FernandoBasso: I mean, new_state_path and new_states_path produce the same errro.
[00:52:23] Radar: !activeadmin
[00:52:23] helpa: brb, shooting myself
[00:52:27] Aeyrix: Yeah, gotcha.
[00:52:44] Radar: FernandoBasso: Where are you trying to use the routing helpers?
[00:52:48] rhizome: starfox_sf: probably want to reverse the order of those questions
[00:52:52] Radar: FernandoBasso: new_state_path should work in controllers + views + helpers
[00:53:16] FernandoBasso: In app/home/index.html.erb
[00:53:25] Radar: FernandoBasso: And what's the error?
[00:53:35] FernandoBasso: No route matches [GET] "/state/new"
[00:53:36] Aeyrix: No route matches [GET] "/state/new"
[00:53:42] Radar: FernandoBasso: Can you show us the full code from that template please?
[00:53:52] Radar: As well as config/routes.rb
[00:53:54] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[00:53:59] Radar: !gist-usage
[00:53:59] helpa: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[00:54:02] scottmatheina: has joined #RubyOnRails
[00:54:03] starfox_sf: rhizome: true.
[00:54:18] Aeyrix: ACTION makes a mental note to purchase www.gi.st.
[00:55:08] commondream: has joined #RubyOnRails
[00:55:58] FernandoBasso: There is nothing more that <h1>... and that small piece of html+ruby code in index.html.erb.
[00:56:08] FernandoBasso: Let me show the routes.rb, though.
[00:56:30] Radar: FernandoBasso: If you can show us the code that would be great.
[00:56:36] Radar: If not, then I am not sure how we can help you.
[00:56:45] Radar: I want to make sure that you're doing it right there and not doing something silly
[00:56:51] Radar: I also would like to see the stacktrace for the error
[00:57:15] sevenseacat: TIL about defining resources on one line
[00:57:34] rickmasta: has joined #RubyOnRails
[00:58:45] cmisenas: has joined #RubyOnRails
[00:59:03] smathy: has joined #RubyOnRails
[00:59:32] FernandoBasso: https://gist.github.com/FernandoBasso/d5b8842a253e02d7fa37
[00:59:50] FernandoBasso: I'm sure it is indeed some thing silly I'm doing.
[00:59:51] Radar: FernandoBasso: That should be new_state_path
[01:00:17] FernandoBasso: That is what I tried earlier, then someone suggested new_states_path.
[01:00:22] Aeyrix: That was me, my apologies.
[01:00:23] Surt_Q: has joined #RubyOnRails
[01:00:38] FernandoBasso: Either way, the error is the same, no matter if it is singular or plural.
[01:00:46] FernandoBasso: Aeyrix: No problem.
[01:01:19] simplyianm: has joined #RubyOnRails
[01:01:21] sevenseacat: and the error is?
[01:01:34] Aeyrix: sevenseacat: No route matches [GET] "/state/new"
[01:01:41] FernandoBasso: No route matches [GET] "/state/new"
[01:01:51] psmolen: has joined #RubyOnRails
[01:01:59] sevenseacat: what does your `rake routes` say about states?
[01:02:01] yaw: has joined #RubyOnRails
[01:02:11] bruno-: has joined #RubyOnRails
[01:02:30] coderkatze: has joined #RubyOnRails
[01:03:15] dopie: has joined #RubyOnRails
[01:03:20] FernandoBasso: sevenseacat: I updated the gist.
[01:03:27] FernandoBasso: It is there, in another file.
[01:03:43] sevenseacat: new_state is there perfectly, pointing to the cirrect URL.
[01:04:00] sevenseacat: so that code you've posted isnt the problem.
[01:04:02] Aeyrix: FernandoBasso: Kill your app and reload it.
[01:04:16] Aeyrix: I think I've had this issue before which was solved by the old "off n' on" trick.
[01:04:32] rhinon: has joined #RubyOnRails
[01:04:48] rhinon: Hello, I'm having trouble disabling STI in rails 4.0.5, no matter what I do it seems to assume I'm using STI. I don't have a 'type' column.
[01:04:56] FernandoBasso: Aeyrix: Tried that some times already (after changing plural/singular.) No joy.
[01:05:15] sevenseacat: FernandoBasso: can you gist the entire error from your logs please
[01:06:06] war_pigs: has joined #RubyOnRails
[01:06:41] FernandoBasso: sevenseacat: From log/development.log?
[01:06:53] sevenseacat: or from your terminal window, whatever is easiest.
[01:07:02] rhizome: /state/new? it should be /states/new
[01:07:08] sevenseacat: rhizome: exactly.
[01:07:35] Aeyrix: rhizome: Everything points to it being /states/new but it isn't. :(
[01:08:05] FernandoBasso: https://gist.github.com/FernandoBasso/d5b8842a253e02d7fa37
[01:08:29] SeriousMatters: has left #RubyOnRails: ()
[01:08:33] rhizome: still says new_states_path in the view
[01:08:58] sevenseacat: so you're trying to visit the /state/new url - why?
[01:09:16] FernandoBasso: It complains no route for state/new, and I'm using new_states_path (plural)
[01:09:34] FernandoBasso: And again, if I try new_state_path (singular), the error is the same.
[01:09:34] sevenseacat: its got nothing to do with your code and everything to do with the URL in your browser
[01:09:46] rhizome: well, you should use the right route helper at the very least
[01:09:48] FernandoBasso: Which I didn't even try to click yet.
[01:10:12] FernandoBasso: I'm just try to load the views/home/index
[01:10:21] sevenseacat: no you'r5e not
[01:10:31] sevenseacat: what URL are you visiting?
[01:11:02] FernandoBasso: You are right: http://localhost:3000/state/new
[01:11:07] sevenseacat: ACTION nods
[01:11:15] sevenseacat: don't visit that URL, it doesnt exist :P
[01:11:30] FernandoBasso: I'll be back in some minutes. Thanks for all the help so far.
[01:11:54] FernandoBasso: Dinner is ready and I'm not daring to disobey my lady.
[01:12:07] Aeyrix: I could do with some dinner now.
[01:12:25] FernandoBasso: I really appreciate all your time and effort. I'm doing something wrong for sure. I'll be back in a little while.
[01:12:53] pkrnj: has joined #RubyOnRails
[01:13:07] sevenseacat: I really want an iced coffee. I might have to go buy one.
[01:13:15] Aeyrix: I just need food.
[01:13:20] Aeyrix: But this report won't write itself.
[01:15:03] Cyberheb: has joined #RubyOnRails
[01:15:36] joaomdmoura: has joined #RubyOnRails
[01:15:41] Cyberheb: has joined #RubyOnRails
[01:16:17] Cyberheb: has joined #RubyOnRails
[01:16:25] DoctorMonocular: has joined #RubyOnRails
[01:16:56] Cyberheb: has joined #RubyOnRails
[01:17:36] Cyberheb: has joined #RubyOnRails
[01:18:12] Cyberheb: has joined #RubyOnRails
[01:18:52] Cyberheb: has joined #RubyOnRails
[01:19:32] Cyberheb: has joined #RubyOnRails
[01:19:51] joelataylor: has joined #RubyOnRails
[01:20:12] Cyberheb: has joined #RubyOnRails
[01:20:52] Cyberheb: has joined #RubyOnRails
[01:21:28] Cyberheb: has joined #RubyOnRails
[01:22:07] Cyberheb: has joined #RubyOnRails
[01:22:44] Cyberheb: has joined #RubyOnRails
[01:22:59] yaw: has joined #RubyOnRails
[01:23:24] Cyberheb: has joined #RubyOnRails
[01:23:30] twilling: has joined #RubyOnRails
[01:24:39] centrx: has joined #RubyOnRails
[01:24:55] goodcodeguy: has joined #RubyOnRails
[01:26:34] axl_: has joined #RubyOnRails
[01:30:08] iamjarvo: has joined #RubyOnRails
[01:31:39] LicHacker: has joined #RubyOnRails
[01:32:02] bronson_: has joined #RubyOnRails
[01:32:58] beauby: has joined #RubyOnRails
[01:34:39] simplyianm: has joined #RubyOnRails
[01:35:42] greengriminal: has joined #RubyOnRails
[01:37:41] FernandoBasso: ACTION is back...
[01:40:01] SteenJobs: has joined #RubyOnRails
[01:41:53] sevenseacat: FernandoBasso: wb
[01:41:58] FernandoBasso: I did `rails g controller State`.
[01:42:29] FernandoBasso: Having /states/new in the url gives an error: uninitialized constant StatesController
[01:42:33] FernandoBasso: That makes sense now.
[01:43:22] FernandoBasso: So, I guess I should have `resources :state` instead of `resources :states`.
[01:43:23] baweaver: has joined #RubyOnRails
[01:43:51] Radar: resources :states
[01:44:00] Radar: Controller should be generated with rails g controller states
[01:44:00] DoctorMonocular: FernandoBasso: you probably want to redo the generation as "rails g controller states"
[01:44:05] Radar: Controllers are plural
[01:44:07] DoctorMonocular: yes, what Radar said
[01:44:08] Forgetful_Lion: has joined #RubyOnRails
[01:44:23] centrx: has joined #RubyOnRails
[01:44:30] FernandoBasso: Is there a command to undo that or I'll have to `rm` stuff manually?
[01:44:41] Radar: rails destroy controller state
[01:46:20] renews: has joined #RubyOnRails
[01:46:43] FernandoBasso: Thank you all for the patience. I really appreciate it.
[01:46:55] FernandoBasso: Your support was superb.
[01:50:11] Frem: has joined #RubyOnRails
[01:50:57] asheinfeld: has joined #RubyOnRails
[01:53:13] mois3x: has joined #RubyOnRails
[01:54:01] wethu: has joined #RubyOnRails
[01:54:49] shyshy: has joined #RubyOnRails
[01:56:58] bmurt: has joined #RubyOnRails
[01:59:11] merryfett: has joined #RubyOnRails
[02:02:43] dopie: has joined #RubyOnRails
[02:03:02] twilling: has joined #RubyOnRails
[02:04:11] rubyonrailed: has joined #RubyOnRails
[02:09:02] beauby: has joined #RubyOnRails
[02:10:05] hahuang65: has joined #RubyOnRails
[02:11:21] simplyianm: has joined #RubyOnRails
[02:12:10] simplyianm: has joined #RubyOnRails
[02:12:52] duderonomy: has joined #RubyOnRails
[02:14:00] rhizome: erf. checkout forms
[02:14:22] twilling: has joined #RubyOnRails
[02:15:23] alexclark: has joined #RubyOnRails
[02:15:53] goodcodeguy: has joined #RubyOnRails
[02:17:18] alexclark: can someone spot why im getting this error? https://gist.github.com/alexclarkofficial/f6192f07c2b6a7c5a2c4
[02:18:21] pkrnj: has joined #RubyOnRails
[02:18:22] eyck: has joined #RubyOnRails
[02:19:48] sevenseacat: alexclark: because you're not submitting an id parameter
[02:19:54] knoxy: has joined #RubyOnRails
[02:19:58] sevenseacat: you're submitting note[:id] instead
[02:20:17] dontdont: has joined #RubyOnRails
[02:20:29] neitherupnordown: has joined #RubyOnRails
[02:20:29] alexclark: sevenseacat: ok, how would i do that?
[02:20:39] sevenseacat: move the ID param out of the note hash.
[02:21:18] RegulationD: has joined #RubyOnRails
[02:22:30] mrbubbles: has joined #RubyOnRails
[02:23:05] alexclark: I think that may have done it
[02:23:10] rubyonrailed: I have this simple method to export a csv. https://gist.github.com/anonymous/91c05b7cfa3b6e21c1ff My data that i'm looping through is each it's own object. When I get a attribute that is a boolean I want it to export Yes or No instead of True or false. I've been looking online for a while and i'm stuck. Anyone know a simple way?
[02:23:14] alexclark: still not getting the update though
[02:23:33] alexclark: sevenseacat: I think I may know why though
[02:23:50] krisquigley: has joined #RubyOnRails
[02:24:54] jenrzzz: has joined #RubyOnRails
[02:25:05] x-light: has joined #RubyOnRails
[02:25:14] siaw23: has left #RubyOnRails: ()
[02:26:05] mary5030: has joined #RubyOnRails
[02:26:10] chipotle: has joined #RubyOnRails
[02:28:09] beauby: has joined #RubyOnRails
[02:29:01] michael_mbp: has joined #RubyOnRails
[02:30:52] SteenJobs: has joined #RubyOnRails
[02:32:14] alexclark: sevenseacat: you definitely got me over the hump to figuring out whats going on
[02:32:31] alexclark: sevenseacat: now i get to cry trying to read the controller action
[02:32:40] alexclark: sevenseacat: thanks though!
[02:32:59] endorphine_: has joined #RubyOnRails
[02:34:31] CyborgCygnus: has joined #RubyOnRails
[02:35:25] joelataylor: has joined #RubyOnRails
[02:36:48] moeabdol3: has joined #RubyOnRails
[02:37:26] ProLoser: has joined #RubyOnRails
[02:37:36] scottmatheina: has joined #RubyOnRails
[02:38:08] attlasbot: has joined #RubyOnRails
[02:39:52] ProLoser: has joined #RubyOnRails
[02:40:29] renews: has joined #RubyOnRails
[02:40:40] codeurge: has joined #RubyOnRails
[02:41:32] Spami: has joined #RubyOnRails
[02:42:30] rhizome: rubyonrailed: probably have to spell it out instead of using values_at
[02:43:18] willharrison: has joined #RubyOnRails
[02:43:47] highcup: has joined #RubyOnRails
[02:45:12] justintv90: has joined #RubyOnRails
[02:46:00] justintv90: has joined #RubyOnRails
[02:46:27] rubyonrailed: has joined #RubyOnRails
[02:46:58] jenrzzz: has joined #RubyOnRails
[02:47:04] justintv90: has joined #RubyOnRails
[02:47:20] rubyonrailed: rhizome: so like d.selectable? selectable is a boolean column
[02:48:04] justintv90: has joined #RubyOnRails
[02:49:01] justintv90: has joined #RubyOnRails
[02:49:29] Dreamer3_: has joined #RubyOnRails
[02:49:44] justintv90: has joined #RubyOnRails
[02:50:48] annlewis: has joined #RubyOnRails
[02:51:07] bruno-: has joined #RubyOnRails
[02:52:27] jwaldrip_: has joined #RubyOnRails
[02:53:30] Dingus: has joined #RubyOnRails
[02:53:39] edwinrozario: has joined #RubyOnRails
[02:55:27] cornerma1: has joined #RubyOnRails
[03:00:58] neitherupnordown: has joined #RubyOnRails
[03:01:05] dontdont: has joined #RubyOnRails
[03:04:38] Trynemjoel: has joined #RubyOnRails
[03:04:40] zzing: has joined #RubyOnRails
[03:04:49] zzing: has left #RubyOnRails: ()
[03:06:00] baweaver: has joined #RubyOnRails
[03:09:00] givanse: has joined #RubyOnRails
[03:09:41] beauby: has joined #RubyOnRails
[03:10:14] pontiki: has joined #RubyOnRails
[03:12:23] Aeyrix: hey pontiki
[03:15:18] braincrash: has joined #RubyOnRails
[03:22:42] SteenJobs: has joined #RubyOnRails
[03:28:07] yfeldblum: has joined #RubyOnRails
[03:28:16] aloneintheworld: has joined #RubyOnRails
[03:28:27] CalvinnHobbes: has joined #RubyOnRails
[03:28:43] EasyCo: has joined #RubyOnRails
[03:30:56] SteenJobs: anyone know how a site like polyvore aggregates all if it???s data, like pictures of different clothing items from different retailers to drag and drop? do they web scrape, is that the only solution?
[03:31:47] aloneintheworld: has joined #RubyOnRails
[03:32:44] rubyonrailed: has joined #RubyOnRails
[03:33:02] jwaldrip_: has joined #RubyOnRails
[03:33:06] djdarkbeat: has joined #RubyOnRails
[03:34:08] yfeldblum: has joined #RubyOnRails
[03:34:19] vitorino: has joined #RubyOnRails
[03:34:44] renews: has joined #RubyOnRails
[03:35:05] pontiki: maybe it's like pinterest, and all of it is crowd-sourced?
[03:35:10] pontiki: no idea, really
[03:36:12] sarink: has joined #RubyOnRails
[03:37:07] SteenJobs: pontiki: i think there is an option to upload your own pics, but i don???t think it???s the only option
[03:37:53] pontiki: please don't expect me to know anymore than anyone else looking at a site for the first time. i don't know what they do. there are many many options
[03:38:06] Radar: email them and ask :D
[03:38:31] moeabdol3: has joined #RubyOnRails
[03:40:08] sevenseacat: you get surprising results by doing that.... sometimes you'll get ignored, but sometimes they'll just tell you.
[03:40:42] pontiki: i worked at a place that aggregated items, and the items were from feeds the vendors provided
[03:41:10] pontiki: their cash flow was based on the vendors paying for click-throughs
[03:41:33] scottmatheina: has joined #RubyOnRails
[03:42:31] rhizome: it's like pinterest, but it appears they have partnerships with companies too, in the form of twitter verifications
[03:42:38] rhizome: similar to
[03:42:59] scottmatheina: has joined #RubyOnRails
[03:43:06] knoxy: has joined #RubyOnRails
[03:43:18] rhizome: best way to find out how it works is to sign up and see what it does when you create a slide or whatever
[03:44:38] moeabdol: has joined #RubyOnRails
[03:45:25] mike___1234: has joined #RubyOnRails
[03:45:34] Axsuul: has joined #RubyOnRails
[03:46:33] CyborgCygnus: has joined #RubyOnRails
[03:47:02] bronson_: has joined #RubyOnRails
[03:47:17] cooldman224: has joined #RubyOnRails
[03:50:50] goodcodeguy: has joined #RubyOnRails
[03:51:13] annlewis: has joined #RubyOnRails
[03:51:32] jamto11: has joined #RubyOnRails
[03:51:39] darrencauthon: has joined #RubyOnRails
[03:51:43] pontiki: has joined #RubyOnRails
[03:53:36] jamto11_: has joined #RubyOnRails
[03:56:51] rubyonrailed: has joined #RubyOnRails
[03:58:13] nertzy: has joined #RubyOnRails
[03:58:45] surrealanalysis: has joined #RubyOnRails
[04:00:06] shyshy: has joined #RubyOnRails
[04:00:52] SteenJobs: Radar: didn???t even think to do that, i???ll shoot them an email!
[04:01:03] iamjarvo: has joined #RubyOnRails
[04:01:16] SteenJobs: rhizome: i signed up, i know how it works - just trying to figure out where they get the clothing pics/data from
[04:01:36] SteenJobs: pontiki: not expecting - just figured that since you???re more knowledgeable with this stuff than i am, you may see or understand something that i missed.
[04:02:11] SteenJobs: Thanks guys! i???m helping someone build an idea that???s similar to polyvore in some ways, and my only sticking point is how to collect the requisite data.
[04:02:25] ProLoser: has joined #RubyOnRails
[04:04:29] Axsuul: has joined #RubyOnRails
[04:05:42] merryfett: has joined #RubyOnRails
[04:07:19] commondream: has joined #RubyOnRails
[04:08:40] acti0nman: has joined #RubyOnRails
[04:08:46] rhizome: i wouldn't be surprised if the images come from opengraph tags that are used for google results, twitter cards, etc.
[04:09:41] edwinrozario: has joined #RubyOnRails
[04:10:06] SteenJobs: rhizome: ohh interesting. would they need to use a crawler to grab that info?
[04:10:49] rhizome: i don't know how the posting goes, but for somethign i built i read a url field with js onchange and autofilled information based on what was on the other side
[04:11:01] RegulationD: has joined #RubyOnRails
[04:11:20] rhizome: click save and it all gets persisted. caching images is a different question
[04:12:58] krisquigley: has joined #RubyOnRails
[04:16:22] jamto11: has joined #RubyOnRails
[04:19:58] SteenJobs: rhizome: ah cool. images for this thing would be the most essential piece though
[04:20:02] charliesome: has joined #RubyOnRails
[04:20:04] hahuang65: has joined #RubyOnRails
[04:23:36] bronson_: has joined #RubyOnRails
[04:24:10] joelataylor: has joined #RubyOnRails
[04:26:23] moei: has joined #RubyOnRails
[04:27:03] jenrzzz: has joined #RubyOnRails
[04:28:03] erich: has joined #RubyOnRails
[04:28:54] renews: has joined #RubyOnRails
[04:29:13] philcrissman: has joined #RubyOnRails
[04:31:15] jcaho: has joined #RubyOnRails
[04:35:53] joaomdmoura: has joined #RubyOnRails
[04:37:10] rhizome: there are og tags for images, that's what google uses for recipe images in results and stuff like that
[04:41:07] Scient: there was/is a site that tried to offer people different github issues to solve or kind of make it easier to contribute to OSS
[04:41:11] Scient: can anyone remember what that site was?
[04:41:46] Scient: ACTION hugs sevenseacat
[04:41:54] Scient: thank you, ive been struggling to find that site for an hour now lol
[04:42:37] sevenseacat: theres a couple of different ones, but thats one i know of
[04:42:39] yfeldblum: has joined #RubyOnRails
[04:52:28] mary5030: has joined #RubyOnRails
[04:52:52] baweaver: has joined #RubyOnRails
[04:54:54] lxsameer: has joined #RubyOnRails
[04:57:41] arBmind: has joined #RubyOnRails
[04:59:04] lessless: has joined #RubyOnRails
[05:00:53] rubyonrailed: has joined #RubyOnRails
[05:01:34] SuMo_D: has joined #RubyOnRails
[05:05:10] SteenJobs: what???s the difference between the mysql folder in my usr/local/Cellar folder vs usr/local/var?
[05:06:18] SteenJobs: i keep getting ???ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook-Air.home.pid).??? and the solutions i???ve found online have yet to work
[05:07:00] Axsuul: has joined #RubyOnRails
[05:08:29] rubyonrailed: has joined #RubyOnRails
[05:10:00] charliesome: has joined #RubyOnRails
[05:10:03] sevenseacat: Cellar is for homebrew stuff
[05:10:24] ProLoser: has joined #RubyOnRails
[05:10:29] SteenJobs: sevenseacat: right that part i figured - wasn???t sure what the var mysql is for
[05:10:50] sevenseacat: you installed a packaged version of mysql or something? or does osx come with mysql built in?
[05:12:26] SteenJobs: sevenseacat: i think both actually
[05:12:35] SteenJobs: just tried doing a brew install from scratch and still no luck
[05:12:56] RegulationD: has joined #RubyOnRails
[05:13:02] SteenJobs: ha that was when i had no idea what i was doing, probs did it one of the first times i opened terminal ever
[05:13:25] hahuang65: has joined #RubyOnRails
[05:13:54] lessless: has joined #RubyOnRails
[05:14:11] baweaver: Well it's using the system one
[05:14:25] SteenJobs: baweaver: is that why i???m getting that PID error?
[05:14:36] baweaver: run: which mysql
[05:14:38] SteenJobs: baweaver: and if so, how do i get it to use the brew version
[05:14:58] baweaver: it'll tell you usr local var more than likely
[05:15:27] IanV0rn: has joined #RubyOnRails
[05:15:38] baweaver: http://stackoverflow.com/questions/1436425/how-do-you-uninstall-mysql-from-mac-os-x
[05:15:42] baweaver: though I'd be cautious there
[05:15:48] baweaver: lot of rm -rf action going on
[05:16:08] baweaver: looking for a better one
[05:16:16] baweaver: basically what I'm seeing is kill it with fire
[05:16:29] SteenJobs: baweaver: yea i???m kind???ve hesitant - there must be a way???if mac???s come with it installed, and so many people use homebrew, i???m sure there must be some conventional way of getting them to play along nicely
[05:17:19] jamto11: has joined #RubyOnRails
[05:17:41] baweaver: https://coderwall.com/p/os6woq/uninstall-all-those-broken-versions-of-mysql-and-re-install-it-with-brew-on-mac-mavericks
[05:17:44] baweaver: still burn it with fire
[05:17:51] baweaver: but a but more thorough at least
[05:17:59] baweaver: so more of a kill it with napalm really
[05:18:35] SteenJobs: baweaver: although i just undid the brew install and which mysql no longer returns anything
[05:18:46] baweaver: worst case, do a clean install of Yosemite
[05:18:50] krz: has joined #RubyOnRails
[05:18:57] baweaver: wait wait wait
[05:19:02] baweaver: have you upgraded recently?
[05:19:15] SteenJobs: not so recently, no
[05:19:26] SteenJobs: but sudo rm -rf /usr/local/var/mysql seemed to do the trick
[05:19:30] baweaver: Mac has a NASTY habit of resetting permissions on /usr/local
[05:19:36] Axsuul: has joined #RubyOnRails
[05:19:37] raunicolae: has joined #RubyOnRails
[05:19:46] SteenJobs: because now which mysql doesn???t return anything
[05:19:48] arooni-mobile: has joined #RubyOnRails
[05:19:52] baweaver: so burn it with fire works
[05:19:53] SteenJobs: lemme try and reinstall with brew and see if it works
[05:21:14] baweaver: SteenJobs: Make sure to burn a few pieces of printer paper tonight while chanting "everything can go wrong" and throwing salt over your shoulder
[05:21:29] baweaver: Have to appease Murphy somehow, lest you be cursed
[05:21:45] konsolebox: has joined #RubyOnRails
[05:21:50] SteenJobs: hahaha love it
[05:22:09] SteenJobs: i appreciate the comic relief, been hacking at this for wayyyy too long
[05:22:21] baweaver: Last time I failed there were 34 corrupted instances of my final in college
[05:22:31] baweaver: the original was screwed before I even backed up
[05:22:40] baweaver: had to redo it all in 3 hours before class
[05:22:58] baweaver: so much for being thorough
[05:23:05] konsolebox: has joined #RubyOnRails
[05:23:05] renews: has joined #RubyOnRails
[05:25:08] commondream: has joined #RubyOnRails
[05:25:13] baweaver: Oh, and you can ask sevenseacat, I'm always the comic relief / source of cingeworthy puns
[05:25:45] baweaver: or at least I like to think I am
[05:25:53] Aeyrix: if you say so bud
[05:26:37] sevenseacat: dangit. tracing through fifteen classes to find where some is defined, again
[05:27:06] Aeyrix: Couldn't you just grep for the file containing the class? :v
[05:27:07] baweaver: Rubymine does a lot of that
[05:27:27] sevenseacat: nah i was trying to find out what the actual AR model was called
[05:27:32] baweaver: Either that or use the silver searcher to look for everything that matches it in code.
[05:27:44] sevenseacat: controller -> form object -> factory -> service -> AR model
[05:27:50] baweaver: sevenseacat: we need code to help you :D
[05:27:55] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[05:27:59] sevenseacat: nah I found it, I'm just whinging
[05:28:13] baweaver: and I'm just being cheeky, but I digress
[05:28:24] Aeyrix: !ncnh etc
[05:28:29] Aeyrix: !nobotnocommands
[05:28:34] rubyonrails626: has joined #RubyOnRails
[05:28:41] helpa: Why don't you try it and find out for yourself?
[05:28:43] SteenJobs: still no luck. ugh.
[05:28:59] baweaver: what was the actual error message?
[05:29:19] baweaver: just the pid bit above?
[05:29:27] meoblast001: has joined #RubyOnRails
[05:29:32] dmmoody: has joined #RubyOnRails
[05:30:44] SteenJobs: baweaver: yea
[05:30:50] SteenJobs: ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook-Air.home.pid).
[05:31:08] baweaver: ls -laF /usr/local/var/mysql/
[05:31:56] baweaver: possible the permissions are borked
[05:33:10] bronson_: has joined #RubyOnRails
[05:34:17] krowv: has joined #RubyOnRails
[05:35:12] tagrudev: has joined #RubyOnRails
[05:35:32] byprdct: has joined #RubyOnRails
[05:37:08] n3b: has joined #RubyOnRails
[05:37:54] rvanlieshout: has joined #RubyOnRails
[05:38:54] byprdct: has joined #RubyOnRails
[05:39:32] byprdct: Hey guys during a migration you often see something like t.string :name, null: false, default: ""
[05:39:35] byprdct: whats the point of the default: ""
[05:39:58] annlewis: has joined #RubyOnRails
[05:40:05] futilegames: has joined #RubyOnRails
[05:40:07] sevenseacat: to set the default value of the field
[05:40:48] byprdct: has joined #RubyOnRails
[05:40:59] baweaver: because nil is annoying to write catches everywhere for, so they use sane defaults
[05:42:00] rvanlieshout: and because where foo = '' != where foo is null
[05:42:08] byprdct: has joined #RubyOnRails
[05:42:21] byprdct: sorry keep getting kicked off
[05:42:24] byprdct: thanks Babelfish
[05:42:41] rvanlieshout: 07:42 < rvanlieshout> and because where foo = '' != where foo is null
[05:42:44] baweaver: rvanlieshout: assignment eh?
[05:42:46] rvanlieshout: also something to remember :)
[05:43:06] rvanlieshout: if you would use where foo = '' or foo <> '' you still won't get nulls
[05:43:29] baweaver: might make the psuedo more like AR
[05:43:36] baweaver: but yeah, annoying indeed
[05:44:55] sevenseacat: just need to remember that null in sql (unknown) != nil in ruby (no value)
[05:46:22] towski_: has joined #RubyOnRails
[05:49:14] simplyianm: has joined #RubyOnRails
[05:49:24] lessless: folks, there are so many books about api design that I got lost. can you recommend a really good one?
[05:51:19] Macaveli: has joined #RubyOnRails
[05:53:43] metus_violarium: has joined #RubyOnRails
[05:54:38] AntiSpamMeta: has joined #RubyOnRails
[05:55:33] yfeldblum: has joined #RubyOnRails
[05:56:21] sp1rs: has joined #RubyOnRails
[05:58:23] mtchllbr_: has joined #RubyOnRails
[05:59:22] thatkid_: has joined #RubyOnRails
[05:59:44] thatkid_: Is there any irc channel for iOS dev?
[06:01:35] hahuang65: has joined #RubyOnRails
[06:02:03] krisquigley: has joined #RubyOnRails
[06:02:27] hahuang65: has joined #RubyOnRails
[06:02:53] AntiSpamMeta: has joined #RubyOnRails
[06:04:53] gonglexin: has joined #RubyOnRails
[06:06:47] AntiSpamMeta: has joined #RubyOnRails
[06:07:45] Macaveli: has joined #RubyOnRails
[06:10:42] rails334: has joined #RubyOnRails
[06:11:39] rails254: has joined #RubyOnRails
[06:13:00] joelataylor: has joined #RubyOnRails
[06:13:07] gonglexin: has left #RubyOnRails: ()
[06:13:13] gonglexin: has joined #RubyOnRails
[06:14:28] phiona: has joined #RubyOnRails
[06:14:35] RegulationD: has joined #RubyOnRails
[06:16:50] Galas: has joined #RubyOnRails
[06:17:13] renews: has joined #RubyOnRails
[06:19:33] solars: has joined #RubyOnRails
[06:19:45] gonglexin: has left #RubyOnRails: ()
[06:19:49] gonglexin: has joined #RubyOnRails
[06:21:01] Galas: Hi Guys, I just want to ask I don't know what is the main issue on filepicker with s3 there's a Forbidden 403 error in my web console after uploading 20mb above mp3 file but the 20mb below successfully uploaded.
[06:21:46] rvanlieshout: who is presenting this 403?
[06:22:58] bogdanchilianu: has joined #RubyOnRails
[06:23:34] bmalum: has joined #RubyOnRails
[06:23:44] CyborgCygnus: has joined #RubyOnRails
[06:23:48] Galas: https://www.filepicker.io/api/store/s3?key="hidden key"&filename=Common_Network_Protocols_-_CompTIA_A__220-801_24_10_55_40_AM.wav&path=unprocessed/2015_06_09/profiles/2/&access=public&signature=""&policy=""&_cacheBust=1433833165703
[06:24:35] Galas: thats the error Forbidden 403
[06:25:16] sevenseacat: have you consulted the filepicker docs? maybe they have a 20MB file upload limit.
[06:25:21] Galas: I dont know what is the issue the filepicker or the S3
[06:25:25] CyborgCygnus: has joined #RubyOnRails
[06:25:31] sevenseacat: ACTION doesnt even know what filepicker is
[06:25:39] Galas: our limit is 100mb
[06:26:00] rvanlieshout: you control the code for filepicker.io?
[06:26:07] sinkensabe: has joined #RubyOnRails
[06:26:56] Galas: yes I have access the code on filepicker.io I control it.
[06:27:07] rvanlieshout: so then you should know who is presenting that 403
[06:29:26] Galas: hmm I guess the s3 because the filepicker investigate this issue and they asking the code.
[06:29:48] sevenseacat: you just said you control the code
[06:30:05] Galas: i dont have an access to the s3 is it possible the main issue is the s3?
[06:30:17] rvanlieshout: anything is possible
[06:30:24] rvanlieshout: but the error is displayed through your code
[06:34:44] Cyberheb: has joined #RubyOnRails
[06:34:59] djbkd: has joined #RubyOnRails
[06:35:20] Cyberheb: has joined #RubyOnRails
[06:35:28] roolo: has joined #RubyOnRails
[06:35:57] Cyberheb: has joined #RubyOnRails
[06:36:33] Cyberheb: has joined #RubyOnRails
[06:36:57] yfeldblum: has joined #RubyOnRails
[06:37:06] netzfisch: has joined #RubyOnRails
[06:37:47] Galas: actually I dont have an access to the filepicker.io I dont have credentials but I have an acess on uploading a source code
[06:38:19] Galas: actually I dont have an access to the filepicker.io I dont have credentials but I have an acess on uploading module
[06:38:33] bmalum: has joined #RubyOnRails
[06:38:47] Galas: actually I dont have an access to the filepicker.io I dont have credentials but I have an access on uploading module(source code)
[06:39:41] DEA7TH: has joined #RubyOnRails
[06:40:01] lxsameer: I'm sending a post req with this payload { xyz: { abc : 12 } }, but params is { xyz: {} } in create action. any clue why ?
[06:40:17] rvanlieshout: lxsameer: strong params?
[06:40:31] lxsameer: rvanlieshout: no I'm checking the params it self
[06:40:40] lxsameer: rvanlieshout: before any sttrong parameter check
[06:40:47] Moonlight-Angel: has joined #RubyOnRails
[06:41:40] CyborgCygnus: has joined #RubyOnRails
[06:41:45] rvanlieshout: lxsameer: !gist the log
[06:41:45] helpa: lxsameer: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[06:45:45] kerunaru: has joined #RubyOnRails
[06:46:31] ndrei: has joined #RubyOnRails
[06:48:44] maz-dev: has joined #RubyOnRails
[06:49:37] Lightsword: has joined #RubyOnRails
[06:51:38] maz-dev: has joined #RubyOnRails
[06:53:19] jenrzzz: has joined #RubyOnRails
[06:55:34] ur5us: has joined #RubyOnRails
[06:56:56] aganov: has joined #RubyOnRails
[06:59:30] CyborgCygnus: has joined #RubyOnRails
[07:00:15] Caius: has joined #RubyOnRails
[07:03:32] Filete: has joined #RubyOnRails
[07:05:18] Macaveli: has joined #RubyOnRails
[07:05:22] ur5us: has joined #RubyOnRails
[07:05:23] strixd: has joined #RubyOnRails
[07:06:27] davpet77: has joined #RubyOnRails
[07:06:37] maz-dev_: has joined #RubyOnRails
[07:07:26] lessless: has joined #RubyOnRails
[07:08:04] Lightsword: has joined #RubyOnRails
[07:09:21] AntiSpamMeta: has joined #RubyOnRails
[07:10:25] moeabdol: has joined #RubyOnRails
[07:10:27] davpet77: into my second week now of trying to get rails running on a VPS. Today first time I can see my app sort of. If I change my index.html.erb to index.html I can see it but with erb tags everywhere. Otherwise nginx can't see it??
[07:11:27] renews: has joined #RubyOnRails
[07:11:43] Radar: davpet77: You will want to serve it through something like Passenger.
[07:12:16] CyborgCygnus: has joined #RubyOnRails
[07:12:21] davpet77: @radar I'm using unicorn
[07:12:33] Radar: Seems like it's configured wrong
[07:12:38] Radar: Hire a consultant to help you outj.
[07:13:01] Signum: has joined #RubyOnRails
[07:13:41] davpet77: @radar uhuh I'll just go rob a bank then. If I could afford a consultant I wouldn't be here asking for advice
[07:14:40] dhjondoh: has joined #RubyOnRails
[07:14:45] bartj3: has joined #RubyOnRails
[07:14:46] jpterry: has joined #RubyOnRails
[07:15:28] comrad: has joined #RubyOnRails
[07:16:16] RegulationD: has joined #RubyOnRails
[07:16:19] bogdanchilianu: has joined #RubyOnRails
[07:19:24] arBmind: has joined #RubyOnRails
[07:19:27] Lightsword: has joined #RubyOnRails
[07:20:51] krz: has joined #RubyOnRails
[07:21:34] sdwrage: has joined #RubyOnRails
[07:23:26] rubyonrailed: has joined #RubyOnRails
[07:23:41] bogdanchilianu_: has joined #RubyOnRails
[07:24:48] bogdanchilianu_: Sorry I got a little confused connecting to the channel. Does anybody see this message
[07:25:33] Aeyrix: Welcome to #rubyonrails.
[07:25:42] bogdanchilianu_: thank You :D YESS
[07:25:47] benlieb: has joined #RubyOnRails
[07:27:51] bogdanchilianu__: has joined #RubyOnRails
[07:28:45] annlewis: has joined #RubyOnRails
[07:31:11] artto: has joined #RubyOnRails
[07:32:27] platosha__: has joined #RubyOnRails
[07:33:48] bogdanchilianu: has joined #RubyOnRails
[07:36:42] kitallis: has joined #RubyOnRails
[07:36:52] TinkerTyper: has joined #RubyOnRails
[07:37:13] kitallis: what is the most effective way of streaming large data from a rails end-point? trying to send down base64 for images (as large as maybe 10mb)
[07:39:42] rvanlieshout: stream to what?
[07:40:21] dEPy: has joined #RubyOnRails
[07:40:51] Ergo: has joined #RubyOnRails
[07:43:51] bogdanchilianu: anybody implemented devise with ajax authentication recently? I am keep trying to make authenticate_user! to render a js template when there is a html get request, and it does not work, but i feel this might not be the right way
[07:45:39] rhizome: what exactly are you authenticating via GET?
[07:45:44] kitallis: rvanlieshout, the client
[07:47:33] ndrei: has joined #RubyOnRails
[07:48:08] bogdanchilianu: I am trying to make all links that required authentication to not redirect to the sing in page, but to display a modal for login
[07:48:20] rvanlieshout: kitallis: have the web server take care of that
[07:48:52] CyborgCygnus: has joined #RubyOnRails
[07:51:06] krisquigley: has joined #RubyOnRails
[07:52:11] Megatomte: has joined #RubyOnRails
[07:52:39] allenn: has joined #RubyOnRails
[07:54:29] Trefex: has joined #RubyOnRails
[07:54:58] coderhs: has joined #RubyOnRails
[07:56:00] mikecmpbll: has joined #RubyOnRails
[07:58:43] krz: has joined #RubyOnRails
[07:59:36] ChargedLight: has joined #RubyOnRails
[08:01:17] simplyianm: has joined #RubyOnRails
[08:01:45] joelataylor: has joined #RubyOnRails
[08:03:19] jsrn_: has joined #RubyOnRails
[08:03:46] marr: has joined #RubyOnRails
[08:03:51] granthatcher: has joined #RubyOnRails
[08:05:09] waseem_: bogdanchilianu: You will have to use Javascript to do that. Even if you have the modal in place, you should still redirect people to sign in page in case they directly input those links in browser.
[08:05:11] adre: has joined #RubyOnRails
[08:05:39] renews: has joined #RubyOnRails
[08:08:11] simmerz: has joined #RubyOnRails
[08:08:47] siemprefresco: has joined #RubyOnRails
[08:10:24] krisquigley: has joined #RubyOnRails
[08:10:29] krz: when to consider have an admin table? as opposed to having the admins in the user table, identified by type
[08:10:36] krz: having*
[08:10:37] bogdanchilianu: thank you wassem. I felt like i was doing something wrong
[08:11:10] Aeyrix: krz: When you want a separate user for the admin accounts.
[08:11:26] darutoko: has joined #RubyOnRails
[08:11:26] Aeyrix: In a separate interface
[08:11:29] krz: Aeyrix: but you can do that all the same
[08:11:44] Aeyrix: You can but separation of concerns.
[08:12:11] Aeyrix: My official answer is "never" but I know some people would assert otherwise.
[08:12:15] krz: User -> MemberProfile. User -> AdminProfile
[08:12:39] krz: its a polymorphic association, which grants separation of concerns
[08:12:53] Aeyrix: Depends on the viewpoint
[08:13:04] yaw: has joined #RubyOnRails
[08:13:11] edwinvdgraaf: has joined #RubyOnRails
[08:13:20] n008f4g_: has joined #RubyOnRails
[08:13:54] krz: the other approach is a user table with a postgres properties column. which will hold fields depending if user is an admin or not. but thats depending on the pgsql engine and slightly dirtier
[08:13:57] Aeyrix: I personally never have. I've seen it used though.
[08:14:20] krz: Aeyrix: so you stick with two tables. user and admin?
[08:14:31] Aeyrix: I've seen two used.
[08:14:34] Aeyrix: But never used myself.
[08:14:44] Aeyrix: Often have a role column
[08:15:30] Aeyrix: If I were to, say, create a separate administrative interface I'd probably create a secondary table for admins, forcing admins to have a privileged and non privileged account with different credentials.
[08:15:34] krz: yea, plus i feel like an admin is a type of user. its the same entity but slightly different data (i.e. columns). so it might be better to use one table instead
[08:15:43] x-light: has joined #RubyOnRails
[08:17:54] RegulationD: has joined #RubyOnRails
[08:19:43] tvw: has joined #RubyOnRails
[08:19:52] ndrei: has joined #RubyOnRails
[08:21:31] Abhijit: has joined #RubyOnRails
[08:21:36] Abhijit: has left #RubyOnRails: ()
[08:21:57] Megatomte: Is there a way to get a reverse lookup when using I18n? Like untranslate('String') = key
[08:22:58] rhizome: you may be i18n'ing wrong
[08:23:59] Megatomte: Haha, no it's not for I18n technically. I want a general way to know what a parameter is, so I was thinking if there was a way to do it or if I need to keep track of that information myself
[08:25:43] universa1: Megatomte: what problem are you trying to solve? (abstractly speaking, not code)
[08:26:40] Megatomte: I have a bunch of URL parameters, that I want to be localized. But in the backend I want to know what they are so I can handle them
[08:26:54] Megatomte: without making the controller think too much about what languages comes in
[08:27:48] edwinvdgraaf: has joined #RubyOnRails
[08:27:56] universa1: i personally wouldn't localize url parameters, but yeah, it sounds like you need to keep that infomration somewhere yourself. i don't know of anything that fits that usecase.
[08:28:16] universa1: the average user does not care about how the url looks.
[08:28:23] philcrissman: has joined #RubyOnRails
[08:29:05] Megatomte: Haha yeah, maybe not. My boss does though
[08:29:11] Megatomte: Thanks anyway!
[08:29:16] commondream: has joined #RubyOnRails
[08:29:29] intinig: has joined #RubyOnRails
[08:30:24] maloik: Is there anything built in to go from a Date object to having the week day internationalized?
[08:30:37] maloik: From what I could find there's not, but wanted to check in case someone has an idea
[08:31:49] edwinvdg_: has joined #RubyOnRails
[08:32:23] ProLoser: has joined #RubyOnRails
[08:33:06] saimancroy: has joined #RubyOnRails
[08:35:20] lessless: has joined #RubyOnRails
[08:36:37] bruno-: has joined #RubyOnRails
[08:38:13] moeabdol: has joined #RubyOnRails
[08:38:37] Hates_: has joined #RubyOnRails
[08:38:45] DoubleMalt: has joined #RubyOnRails
[08:38:50] Hates_: has joined #RubyOnRails
[08:39:00] charliesome: has joined #RubyOnRails
[08:39:00] rvanlieshout: maloik: I18n.translate('date.day_names')[date.cwday]
[08:40:42] bin_005: has joined #RubyOnRails
[08:41:01] moeabdol: has joined #RubyOnRails
[08:41:39] maloik: thanks rvanlieshout that'll do the trick :-)
[08:41:40] bruno-: has joined #RubyOnRails
[08:44:56] maxshelley: has joined #RubyOnRails
[08:45:51] ProLoser: has joined #RubyOnRails
[08:46:33] universa1: I18n.localize date, format: :day_only (needs a day only format defined ;))
[08:46:54] dideler: has joined #RubyOnRails
[08:46:59] intinig: has joined #RubyOnRails
[08:47:21] conta: has joined #RubyOnRails
[08:48:17] zly: Hi guys
[08:48:23] zly: quick question
[08:48:36] zly: If my User model has_many messages
[08:49:06] zly: How can I use the `having` clause to find which user has sent more than given number of messages?
[08:49:30] rvanlieshout: User.joins(:message).group('users.*').having('COUNT(message.id) > 3')
[08:49:52] zly: I tried to do it with the: User.where(group_id: 1).having("sum(messages) > 10")
[08:50:06] universa1: or use rails' countercaches and just do User.where("message_count > 3")
[08:50:31] zly: Ok, I'll check those out
[08:50:34] zly: Thanks :)
[08:50:45] rvanlieshout: note that it should be count(messages.id) not message.id
[08:50:54] michael_mbp: how is the destructive reverse_merge any different?
[08:51:28] michael_mbp: to the non-destructive version
[08:51:43] rvanlieshout: destructive version?
[08:51:49] michael_mbp: https://gist.github.com/bsodmike/260cb279366294b4a6d1
[08:51:57] michael_mbp: calling it with a bang is supposedly destructive
[08:52:00] universa1: michael_mbp: Same semantics as reverse_merge but modifies the receiver in-place.
[08:52:16] rvanlieshout: it would be different if you would pust that hash in a variable
[08:52:24] rvanlieshout: before calling reverse_merge or reverse_merge!
[08:52:29] michael_mbp: so normal 'bang' behaviour.
[08:52:40] michael_mbp: rvanlieshout: yeah, the variable would be the same
[08:52:47] rvanlieshout: well.. rails has a different usage for most cases
[08:52:53] michael_mbp: unless the bang is called.
[08:53:26] michael_mbp: universa1: thanks, I knew that... not sure how I forgot that lol.
[08:53:33] Wizek: has joined #RubyOnRails
[08:53:47] universa1: michael_mbp: api.rubyonrails.org (chuckle) ;)
[08:53:49] michael_mbp: for some reason this morning I thought destructive meant it'd mutate duplicates...
[08:54:00] michael_mbp: but that goes against the purpose of a reverse_merge..
[08:56:31] laut: has joined #RubyOnRails
[08:56:55] Macaveli: has joined #RubyOnRails
[08:56:58] intinig: has joined #RubyOnRails
[08:58:10] bruno-: has joined #RubyOnRails
[08:58:34] tianyi_: has joined #RubyOnRails
[08:59:03] solars: has joined #RubyOnRails
[08:59:45] renews: has joined #RubyOnRails
[09:02:38] ndrei: has joined #RubyOnRails
[09:02:54] abhishekvasisht: has joined #RubyOnRails
[09:03:05] bruno-: has joined #RubyOnRails
[09:03:18] abhishekvasisht: has left #RubyOnRails: ()
[09:05:13] Silent__: has joined #RubyOnRails
[09:05:17] rajiv: has joined #RubyOnRails
[09:05:43] lessless: has joined #RubyOnRails
[09:07:21] dontdont: has joined #RubyOnRails
[09:10:09] CyborgCygnus: has joined #RubyOnRails
[09:12:51] bruno-: has joined #RubyOnRails
[09:15:10] starfox_sf: has joined #RubyOnRails
[09:15:58] tvw: has joined #RubyOnRails
[09:17:30] annlewis: has joined #RubyOnRails
[09:17:49] bruno-: has joined #RubyOnRails
[09:17:52] yoongkang: has joined #RubyOnRails
[09:18:12] arup_r: has joined #RubyOnRails
[09:19:17] RegulationD: has joined #RubyOnRails
[09:19:26] tbuehlmann: any opinions on this one? https://gist.github.com/tbuehlmann/77faba0cdfba331ea288
[09:19:55] tbuehlmann: trying to remove code from the test that has nothing to do with the test itself, like speeding up things by caching requests. negative thing I see: the around block is ran on each example
[09:22:00] tbuehlmann: oh great, just saw this one: https://github.com/vcr/vcr/blob/48145a9b234e3554d157408078a156f8511a9393/lib/vcr/test_frameworks/rspec.rb
[09:23:26] lessless: has joined #RubyOnRails
[09:23:27] bruno-: has joined #RubyOnRails
[09:26:40] alex88: has joined #RubyOnRails
[09:27:00] carlesso: has joined #RubyOnRails
[09:28:26] bruno-: has joined #RubyOnRails
[09:28:43] toomus: has joined #RubyOnRails
[09:29:36] toomus: How to use Capybara in RSpec test, but not type: :feature?
[09:30:01] toomus: I need to test type: :cell
[09:30:17] toomus: And there I have some HTML rendering
[09:31:40] ErfanBs: has joined #RubyOnRails
[09:32:06] gaussblurinc1: has joined #RubyOnRails
[09:33:20] LBo: has joined #RubyOnRails
[09:34:53] confact: toomus: never heard of copybara. thanks. might try it out :D
[09:36:07] bruno-: has joined #RubyOnRails
[09:36:42] toomus: confact: What? You never heard of Capybara?
[09:36:43] strcmp1: toomus, you can say feature 'foo' do; end.
[09:37:05] confact: toomus: nope.
[09:38:53] toomus: strcmp1: but Capybara matchers are available inside describe of type: :feature
[09:39:36] toomus: I have RSpec.describe ChatCell, type: :cell do ... end
[09:39:44] strcmp1: the feature method comes from capybara, its just an alternative you can use. otherwise, i think you can tell rspec that a certain directory should be thought of as type: :feature, so you do it once and dont have to look at it
[09:41:52] tbuehlmann: toomus, see this: https://github.com/jnicklas/capybara/blob/e5c5991bd356eff4bd6c2cdf9ff85d3aa05cf569/lib/capybara/rspec.rb#L8-L10
[09:42:04] tbuehlmann: a workaround is to just include the modules for the :cell type as well
[09:43:22] toomus: tbuehlmann: As strcmp1 said, using feature instead of describe inside RSpec.describe do the trick :)
[09:45:40] bruno-: has joined #RubyOnRails
[09:46:38] dionysus69: has joined #RubyOnRails
[09:46:54] haz111: has joined #RubyOnRails
[09:48:50] stamina: has joined #RubyOnRails
[09:50:03] benhuda: has joined #RubyOnRails
[09:50:04] meoblast001: has joined #RubyOnRails
[09:50:45] bruno-: has joined #RubyOnRails
[09:50:48] ndrei: has joined #RubyOnRails
[09:51:51] AzaToth: has joined #RubyOnRails
[09:52:10] yfeldblum: has joined #RubyOnRails
[09:53:11] maz-dev: has joined #RubyOnRails
[09:53:51] LBo: has joined #RubyOnRails
[09:53:56] renews: has joined #RubyOnRails
[09:57:39] ErfanBs: has joined #RubyOnRails
[09:58:13] tvw: has joined #RubyOnRails
[10:03:55] dhjondoh: has joined #RubyOnRails
[10:05:03] matcouto: has joined #RubyOnRails
[10:06:41] creature: has joined #RubyOnRails
[10:07:38] edwinvdgraaf: has joined #RubyOnRails
[10:12:15] bruno-: has joined #RubyOnRails
[10:12:20] edwinvdg_: has joined #RubyOnRails
[10:12:57] matcouto: Hey folks! Just need some hints for extracting those 2 'error' nodes out of this XML document using Nokogiri? Anyone familiar with it? https://gist.github.com/anonymous/e32350ad9442fd1900c5
[10:14:59] bronson_: has joined #RubyOnRails
[10:19:18] davidhq: has joined #RubyOnRails
[10:20:09] SteenJobs: has joined #RubyOnRails
[10:20:51] rickmasta: has joined #RubyOnRails
[10:20:57] RegulationD: has joined #RubyOnRails
[10:21:20] SteenJobs: has anyone heard of import-io? i feel like i???ve discovered the holy grail
[10:22:14] helpa: Nope. No one. Ever. In the history of the world.
[10:23:05] SteenJobs: universa1: hahah
[10:23:32] SteenJobs: universa1: i needed to build a web scraper for a project, but import-io basically just does it for you and provides you with an API
[10:27:09] ndrei: has joined #RubyOnRails
[10:27:58] navo: has joined #RubyOnRails
[10:31:10] weckl: has joined #RubyOnRails
[10:31:16] RubyGold: has joined #RubyOnRails
[10:33:06] l0oky: has joined #RubyOnRails
[10:33:24] livestill: has joined #RubyOnRails
[10:33:45] BlissOfBeing: has joined #RubyOnRails
[10:34:33] rikkipitt: has joined #RubyOnRails
[10:35:03] l0oky: Any ideas why is nokogiri needed in new rails 4.2.1 project?
[10:35:25] l0oky: It is failing to bundle install ..
[10:35:35] l0oky: Because of nokogiri
[10:36:56] livestill: l0oky: that often happens to me but gem installing nokogiri separately usually works
[10:37:40] l0oky: I am on windows 8.1, I've read that nokogiri cant compile on win..
[10:37:57] krz: has joined #RubyOnRails
[10:38:02] Spami: has joined #RubyOnRails
[10:38:23] l0oky: But still why would I need nokogiri? All I did is 'rails new project' and 'rails s'
[10:39:31] livestill: looks like actionpack uses it http://stackoverflow.com/questions/26426992/rails-bundle-nokogiri
[10:40:58] l0oky: Excuse my ignorance, but what is Actionpack?
[10:41:19] l0oky: It's not in my gemfile
[10:43:02] matcouto: has joined #RubyOnRails
[10:43:21] startupality: has joined #RubyOnRails
[10:46:24] simplyianm: has joined #RubyOnRails
[10:47:53] rikkipitt: has joined #RubyOnRails
[10:48:07] renews: has joined #RubyOnRails
[10:48:50] tedstriker: has joined #RubyOnRails
[10:50:54] l0oky: downgrading rails gem to 4.1 worked
[10:51:26] l0oky: oh well i hope nokogiri team fix their stuff
[10:52:02] zorak8: has joined #RubyOnRails
[10:52:16] livestill: why not install it as described here: http://www.nokogiri.org/tutorials/installing_nokogiri.html#windows
[10:52:46] livestill: l0oky: seems like it should work fine on windows
[10:53:30] joelataylor_: has joined #RubyOnRails
[10:54:34] l0oky: I installed it, but when i try to run rails server it fails
[10:55:56] Travis-42: has joined #RubyOnRails
[10:56:13] l0oky: Is this site down ir is it just me ? http://www.irssi.org
[10:56:16] Travis-42: has left #RubyOnRails: ()
[10:56:20] meoblast001: has joined #RubyOnRails
[10:56:35] Axilla: has joined #RubyOnRails
[11:00:08] brazenbraden: has joined #RubyOnRails
[11:01:38] mathie: has joined #RubyOnRails
[11:01:48] brazenbraden: Hey guys. Question. Have have 2 apps. One is my main app with all the controllers and models in it. The second app is a barebones api generated with rails_api. I would like my api app to be able to communicate with the database of my primary app. How do I do that?
[11:02:07] rodfersou: has joined #RubyOnRails
[11:02:10] universa1: BrazenBraden: !engines
[11:02:10] helpa: BrazenBraden: http://guides.rubyonrails.org/engines.html - Engines Guide - Written by Ryan Bigg
[11:02:35] brazenbraden: universa1, i dont want my api to be an engine within the main app
[11:03:10] Aeyrix: BrazenBraden: So uh
[11:03:11] universa1: BrazenBraden: you want your api to have the same models as your main app? so extract the models into an engine and use that in both apps.
[11:03:13] Aeyrix: Why did you create an API?
[11:03:59] starfox_sf: has joined #RubyOnRails
[11:04:09] brazenbraden: universa1, dont necessarily need AR and talk to models in the normal way.. I have set up the database.yml file to point to the ip of the database. just need to connect to it somehow.
[11:04:23] goodcodeguy: has joined #RubyOnRails
[11:04:32] Aeyrix: BrazenBraden: IP in database.yml
[11:04:40] Aeyrix: Configure DB to listen on that IP.
[11:04:59] brazenbraden: Aeyrix, cos plans to get mobile apps up at some point. And a seperate api cos the main app will have manu instances. Want a central API that can be used to connect to any based on passed auth headers
[11:05:15] ProLoser: has joined #RubyOnRails
[11:05:44] brazenbraden: Aeyrix, do you have an example of that? Not sure how to make DB listen
[11:05:54] Aeyrix: Not really a ruby issue.
[11:05:56] Aeyrix: What DB are you using?
[11:06:02] toomus: Hey, is it possible to sign in user with Devise in RSpec tests, but not in controller tests?
[11:06:22] Aeyrix: BrazenBraden: #postgresql
[11:06:25] annlewis: has joined #RubyOnRails
[11:06:38] universa1: toomus: whaaat?
[11:06:56] brazenbraden: Aeyrix, I imagined all that would be needed was "API, use this IP and connection info. Send this request to it and return the results".
[11:07:11] Aeyrix: Not quite.
[11:07:14] toomus: universa1: I need current_user to not be nil in RSpec test, but this is not controller test
[11:07:19] Aeyrix: You need to configure the DB to listen externally as well.
[11:07:28] Aeyrix: By default it does not, for security reasons.
[11:07:40] universa1: toomus: what is a rspec test?!
[11:07:42] toomus: universa1: Devise helper sign_in is available only in controller tests
[11:07:43] mostlybadfly: has joined #RubyOnRails
[11:07:45] brazenbraden: Aeyrix, well, the db does have an open port on the ip (5432)
[11:07:45] universa1: toomus: rspec is atest framework.
[11:07:57] universa1: toomus: just like test::unit, minitest, ...
[11:08:34] toomus: universa1: I mean tests with RSpec
[11:08:41] universa1: toomus: so if you configured devise in the rails helper, like the docs of devise suggest, you will have the sign_in helper in controller specs.
[11:09:27] Detch: has joined #RubyOnRails
[11:09:35] toomus: universa1: but this is the problem. I have type: :cell, not type: :controller
[11:09:53] universa1: toomus: and i should have known that how?
[11:10:04] universa1: toomus: so include the devise helper in that spec type, too?
[11:10:20] centrx: has joined #RubyOnRails
[11:12:02] toomus: universa1: include Devise::TestHelpers doesn't work
[11:12:19] brazenbraden: Aeyrix, would something like this work? http://stackoverflow.com/questions/4727470/how-to-make-rails-external-database-calls
[11:12:21] universa1: toomus: what did you do? create a gist showing it.
[11:12:28] universa1: define doesn't work.
[11:12:34] universa1: toomus: !ask
[11:12:34] helpa: toomus: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
[11:14:44] ur5us: has joined #RubyOnRails
[11:15:52] Papierkorb: has joined #RubyOnRails
[11:16:31] bmurt: has joined #RubyOnRails
[11:17:41] toomus: universa1: http://pastie.org/private/u4mfhga6zwennqpfyskeha
[11:18:41] ariejan: has joined #RubyOnRails
[11:18:47] ndrei: has joined #RubyOnRails
[11:19:24] wethu: has joined #RubyOnRails
[11:20:04] yaw: has joined #RubyOnRails
[11:20:38] maz-dev: has joined #RubyOnRails
[11:22:32] mrbubbles: has joined #RubyOnRails
[11:22:36] RegulationD: has joined #RubyOnRails
[11:22:59] Abhijit: has joined #RubyOnRails
[11:23:04] Abhijit: has left #RubyOnRails: ()
[11:24:26] krisquigley: has joined #RubyOnRails
[11:27:01] srinidhi: has joined #RubyOnRails
[11:28:42] doodlehaus: has joined #RubyOnRails
[11:28:50] centrx: has joined #RubyOnRails
[11:28:59] philcrissman: has joined #RubyOnRails
[11:30:52] abracadaniel: has joined #RubyOnRails
[11:31:12] ldnunes: has joined #RubyOnRails
[11:31:34] commondream: has joined #RubyOnRails
[11:31:40] renews: has joined #RubyOnRails
[11:32:35] davidhq: has joined #RubyOnRails
[11:33:25] fontas: has joined #RubyOnRails
[11:34:54] allcentury: has joined #RubyOnRails
[11:35:38] maximski: has joined #RubyOnRails
[11:36:02] charliesome: has joined #RubyOnRails
[11:37:31] maximski: how can i get the previous release path in capistrano 3?
[11:39:01] user121212: has joined #RubyOnRails
[11:40:09] bamorim: has joined #RubyOnRails
[11:40:25] ur5us: has joined #RubyOnRails
[11:40:34] cajone: has joined #RubyOnRails
[11:42:51] mike___1234: has joined #RubyOnRails
[11:43:06] TinkerTyper: has joined #RubyOnRails
[11:43:11] SolarSailor: has joined #RubyOnRails
[11:44:22] erich: has joined #RubyOnRails
[11:45:35] symbol: has joined #RubyOnRails
[11:46:25] rustymyers: has joined #RubyOnRails
[11:46:37] eoy: has joined #RubyOnRails
[11:47:08] ldnunes_: has joined #RubyOnRails
[11:49:40] rushed: has joined #RubyOnRails
[11:51:07] ekain: has joined #RubyOnRails
[11:51:17] qwertme: has joined #RubyOnRails
[11:51:37] tvw: has joined #RubyOnRails
[11:53:13] djellemah: has joined #RubyOnRails
[11:53:25] alexclark: has joined #RubyOnRails
[11:53:25] yaw: has joined #RubyOnRails
[11:55:28] yaw: has joined #RubyOnRails
[11:56:06] workmad3: maximski: I'm not sure there's a way by default
[11:56:35] Macaveli: is there a simple rails encoder that uses a word as key?
[11:56:47] Macaveli: cause everyone can basedecode a string
[11:56:55] Macaveli: base64deocde
[11:57:25] workmad3: Macaveli: are you wanting some form of encryption?
[11:57:53] ndrei: has joined #RubyOnRails
[11:58:12] sandelius: has joined #RubyOnRails
[11:58:27] antgel: has joined #RubyOnRails
[11:59:07] moeabdol: has joined #RubyOnRails
[11:59:19] workmad3: Macaveli: http://api.rubyonrails.org/classes/ActiveSupport/MessageEncryptor.html
[11:59:29] Macaveli: thanks ! workmad3
[11:59:45] Macaveli: any rails 3 options workmad3
[11:59:47] AugustoCesar: has joined #RubyOnRails
[11:59:54] Macaveli: or this is also compatbible with rails 3
[12:00:02] workmad3: Macaveli: btw, base64 is not, never has been and never will be an encryption mechanism... encoding data != encrypting data
[12:00:20] Macaveli: i was just giving it as an example
[12:00:46] workmad3: Macaveli: yeah... but it was an example of something completely different, meaning I had to make a guess as to what you wanted ;)
[12:01:07] strcmp1: has joined #RubyOnRails
[12:01:22] Pazician: has joined #RubyOnRails
[12:01:25] workmad3: Macaveli: and you'd need to try it out in rails 3... not sure when the message encryptor was introduced
[12:01:39] Macaveli: okay thanks
[12:02:40] workmad3: Macaveli: if it's no good, the other option would be https://github.com/mogest/nacl and using its crypto_box as a simple mechanism
[12:02:41] davidhq: has joined #RubyOnRails
[12:03:31] iamjarvo: has joined #RubyOnRails
[12:03:52] krz: has joined #RubyOnRails
[12:04:03] Macaveli: workmad3 'active_support/key_generator' -> only rails 4
[12:04:33] workmad3: at least now you know the sort of thing to look for :P
[12:06:05] cajone: has left #RubyOnRails: ()
[12:08:36] rushed: or spend the time upgrading to 4, which is a good idea anyway~
[12:10:56] mrbubbles: has joined #RubyOnRails
[12:10:56] goodcodeguy: has joined #RubyOnRails
[12:11:12] alexclark: does anyone know how to turn off the transaction wrapping in rails 3 tests?
[12:11:26] alexclark: I'm getting a failure that i definitely shouldnt be getting
[12:12:53] alexclark: and the failure https://gist.github.com/alexclarkofficial/32cffc1e9cc580855fd2
[12:14:01] chipotle: has joined #RubyOnRails
[12:14:04] Macaveli: workmad3 what do you think about this -> http://stackoverflow.com/a/4129033/611588
[12:15:09] ErfanBs: has joined #RubyOnRails
[12:15:45] jkamenik: has joined #RubyOnRails
[12:15:47] strcmp1: has joined #RubyOnRails
[12:16:40] chipotle: has joined #RubyOnRails
[12:17:54] krisquigley: has joined #RubyOnRails
[12:18:11] rikkipitt: has joined #RubyOnRails
[12:18:14] rushed: Macaveli: don't build your own crypto
[12:20:29] Macaveli: rushed i'm going to use the gem encryptor
[12:20:34] Macaveli: I'm just not sure what the salt does
[12:21:01] davidhq: has joined #RubyOnRails
[12:21:30] n008f4g_: has joined #RubyOnRails
[12:21:31] antgel: hi good people, we have a fairly large rails app and we're looking to add user real-time chat as part of a certain page. we expect to use some node / socket.io-based solution, but i'm not sure what... googling is a bit of a lottery - can anyone recommend a good starting point to build from for a project like this? if my question is vague, please ask for clarification
[12:22:08] dstarh: has joined #RubyOnRails
[12:22:08] rushed: antgel: faye is an option, example here: http://railscasts.com/episodes/260-messaging-with-faye
[12:23:23] michael_mbp: hey antgel I can help.
[12:23:41] toomus: antgel: Faye is awesome solution
[12:23:51] michael_mbp: ActionCable in Rails 5 looks pretty neat too.
[12:24:00] antgel: rushed: hi there, that was something i've seen in my googling, it's really hard to weigh pros and cons, (of course) and we don't have much time
[12:24:16] RegulationD: has joined #RubyOnRails
[12:24:20] toomus: antgel: and with faye-rails gem it integrates with app as Rack::Middleware so it can't be more easy ::P
[12:24:20] michael_mbp: http://mwdesilva.com/posts/rails-5-action-cable-demystified
[12:24:46] michael_mbp: antgel: did you get my message?
[12:25:09] antgel: michael_mbp: just saw it
[12:26:01] renews: has joined #RubyOnRails
[12:26:23] workmad3: michael_mbp: as long as it's better than ActionController::Live :D
[12:27:07] endorphine_: has joined #RubyOnRails
[12:27:29] user121212: has joined #RubyOnRails
[12:27:34] toomus: antgel: For chat Faye + Cells 4 = incredible fast chat :)
[12:27:43] antgel: hmm, so i was right to be confused. if i understand correctly, we'll have to do a socket.io vs faye thig at first
[12:27:57] rikkipitt: has joined #RubyOnRails
[12:28:43] antgel: we're looking for scalability and some that is really easy to integrate into our rails views and customize
[12:29:09] Pazician: has joined #RubyOnRails
[12:29:10] ErfanBs1: has joined #RubyOnRails
[12:29:10] jwaldrip_: has joined #RubyOnRails
[12:29:41] camonz: has joined #RubyOnRails
[12:30:03] antgel: toomus: wow, we didn't know about cells either
[12:30:09] antgel: ACTION tries to stop head exploding
[12:30:18] JoshL: has joined #RubyOnRails
[12:30:38] spyderman4g63: has joined #RubyOnRails
[12:30:44] toomus: antgel: Cells 4 is amazing thing. Nick Suterrer, author of Cells is awesome guy
[12:30:45] SuMo_D: has joined #RubyOnRails
[12:31:19] toomus: antgel: Cells 4 is about 400% faster than regular partial render
[12:32:09] michael_mbp: has joined #RubyOnRails
[12:32:55] djellemah: has joined #RubyOnRails
[12:33:19] michael_mbp: toomus: cells 4?
[12:33:29] giantoctopus: has joined #RubyOnRails
[12:33:44] michael_mbp: keep finding some frontend thing.
[12:34:07] toomus: https://github.com/apotonick/cells
[12:34:50] michael_mbp: ah... so they 'self update'.
[12:35:12] michael_mbp: bind a 'view' component to the faye feed then?
[12:35:33] chipotle: has joined #RubyOnRails
[12:35:50] bruno-: has joined #RubyOnRails
[12:36:19] michael_mbp: lol... doc has a section that says 'please don't read this section'. :)
[12:38:07] tsvenson: has joined #RubyOnRails
[12:38:33] toomus: Nick Suterrer is very helpfull, so if you have some problem with Cells, he can find him on #trailblazer IRC channel
[12:38:44] michael_mbp: toomus: great thanks
[12:38:45] Dingus: has joined #RubyOnRails
[12:38:59] michael_mbp: I was looking at tubesock a while back
[12:39:00] premera: has joined #RubyOnRails
[12:40:33] fgo: has joined #RubyOnRails
[12:41:58] toomus: Anyone know how to sign in user in specs, but not type: :controller and not type: :feature?
[12:42:06] antgel: toomus: 400% faster than partial render in rails 4? i understand there have been improvements since rails 4
[12:42:31] Ropeney: has joined #RubyOnRails
[12:42:50] Peteykun: has joined #RubyOnRails
[12:43:14] Ropeney: so railsconf cancelled?
[12:43:19] bruno-_: has joined #RubyOnRails
[12:43:35] maloik: which one?
[12:43:42] Valien: has joined #RubyOnRails
[12:44:25] Ropeney: I littery baught tickets and motel last night :\
[12:44:29] lessless: has joined #RubyOnRails
[12:45:08] bmurt: has joined #RubyOnRails
[12:46:25] jcaho: has joined #RubyOnRails
[12:46:56] maz-dev: has joined #RubyOnRails
[12:46:58] maloik: that sucks, but making a conference work financially is a ridiculously hard task
[12:49:01] Ropeney: yeah but the motels not refundable - reallly shit
[12:49:13] Criten: ouchhhh...
[12:49:23] Criten: you should go anyways
[12:50:21] ndrei: has joined #RubyOnRails
[12:52:44] starfox_sf: has joined #RubyOnRails
[12:52:54] michaeldeol: has joined #RubyOnRails
[12:53:55] haz111: has joined #RubyOnRails
[12:55:33] lxsameer: has joined #RubyOnRails
[12:55:57] toomus: I need current_user in test, but this isn't controller an integration test. I don't know how to sign in this user. Or maybe I should stub current_user in some way?
[12:56:19] DylanJ: i would stub the user
[12:56:24] DylanJ: not knowing what you're testing
[12:56:40] DylanJ: or design your method/func to have a user passed into it
[12:57:02] toomus: I test Cells with RSpec
[12:57:18] DylanJ: yeah that doesnt mean anything to me
[12:57:28] zlude: Hey community! I'm learning Rails, and I have a hand-crafted php project with mysql, I'm thinking to rewrite this application on Rails, My scare is about "Can I use Rails on existent db?" another trouble is that my db column names are in pt-BR. Can I use Rails?
[12:57:48] toomus: And in view I have some ability checking with CanCan can? method
[12:57:48] DylanJ: zlude: you can. it's tricky. but you can.
[12:57:52] krz: has joined #RubyOnRails
[12:58:09] DylanJ: the column encoding shouldnt matter
[12:58:15] zlude: DylanJ, what i'll worry about?
[12:58:19] laut: has joined #RubyOnRails
[12:58:41] DylanJ: table names not conforming to the rails table name conventions.
[12:58:56] DylanJ: foreign id columns being named weird.
[12:59:06] strixd: nothing you can't get around
[12:59:09] Hates_: Yeah, you'll have to set a lot of things by hand probably, but it's totally do-able
[12:59:15] Hates_: I've done it lots before
[12:59:26] DylanJ: when i was in your situation i had a bunch of migrations that took the old db schema and renamed things to be more "railsy"
[12:59:37] arup_r: has joined #RubyOnRails
[12:59:50] DylanJ: and if that's not possible for whatever reason you can specify foreign ids by hand. table_names by hand.
[13:00:09] zlude: all right! thank you guys
[13:00:12] boom1992: has joined #RubyOnRails
[13:00:45] Hates_: If it's a long term goal, then it is probably better to do what DylanJ did and migrate it
[13:01:08] zlude: another question is.. i'm not familiar with "rspec" or something like that, thats a problem? can i write my app without tests and then learn about that and apply tests later?
[13:01:16] zlude: i'm really a beginner in rails
[13:01:23] DylanJ: you totally can. but then you're a noob :D
[13:01:25] Hates_: yeah, not a problem either :)
[13:01:31] Hates_: testing is for losers :P
[13:01:36] DylanJ: shots fired!
[13:01:46] Hates_: My code works 100% of the time with no tests
[13:01:51] l0oky: for losers?
[13:01:56] Hates_: It's not a bug its a feature
[13:01:57] zlude: he is kidding bro
[13:02:06] l0oky: of course he is
[13:02:18] DylanJ: zlude: you can try out testunit. it's super simple. it'll help you later on if you write some tests.
[13:02:22] thelastinuit: has joined #RubyOnRails
[13:02:43] DylanJ: testunit/minitest. one of those comes with rails. have a look at the tests folder in rails
[13:02:49] DylanJ: in your rails project*
[13:02:56] zlude: another thing is.. my php app have a lot of ajax get/post, thats easy to do in rails?
[13:03:08] l0oky: behavior driven testing is easier
[13:03:19] DigitallyBorn: has joined #RubyOnRails
[13:03:27] Hates_: zlude: yeah, very simple too :)
[13:03:45] SuMo_D: has joined #RubyOnRails
[13:03:45] DylanJ: zlude: if i were you i;d make a super simple app in rails before you port your app.
[13:03:49] zlude: all right! let fight o/
[13:03:54] DylanJ: like, some blog or todo list. just to get comfortablish
[13:04:15] JoshL: Doesn't the Rails Guides still have a simple tutorial to make a blog?
[13:04:22] weckl: has joined #RubyOnRails
[13:04:31] ndrei: has joined #RubyOnRails
[13:04:32] zlude: I'm reading "Rails Tutorial Book"
[13:04:37] JoshL: http://guides.rubyonrails.org/getting_started.html yes it does
[13:04:52] k4nd4lf: has joined #RubyOnRails
[13:05:15] DylanJ: read what JoshL posted.
[13:05:20] DylanJ: it's decent
[13:05:20] zlude: https://www.railstutorial.org/book to be exactly
[13:05:49] zlude: Ok! thank you guys for all help!
[13:05:56] surrealanalysis: has joined #RubyOnRails
[13:06:57] DylanJ: zlude: i really recommend looking into testing. it's not exactly fun at first but it's really really really useful.
[13:07:32] zlude: DylanJ, you sure!
[13:07:32] DylanJ: any test framework. whatever is easiest for you.
[13:07:38] zorak8: has joined #RubyOnRails
[13:08:02] mauro1254: has joined #RubyOnRails
[13:08:06] zlude: capybara is a good choice?
[13:08:09] Valien_: has joined #RubyOnRails
[13:08:29] DylanJ: it's /a/ choice.
[13:08:46] DylanJ: if you want to test that going to specific url does a certain thing then it's something you can use
[13:08:48] michael_mbp: poltergeist/phantomJS are gr8 too.
[13:09:10] DylanJ: if you want to just test that my_method(some, args) ==
[13:09:15] michael_mbp: well you'd use say Rspec & Capybara
[13:09:19] michael_mbp: the latter for BDD.
[13:09:23] mauro1254: Hi guys, is it a good practice "save in git" config.action_controller.perform_caching = true for development & test environments when using cache?
[13:09:41] DylanJ: mauro1254: i dont cache in dev & test.
[13:09:43] strixd: only writing acceptance tests is a waste
[13:10:16] mauro1254: But If you use cache, then you should have a way to test it
[13:10:19] DylanJ: strixd: definitely. but when trying to ease someone into the world of testing. anything is better than nothing.
[13:10:23] toomus: zlude: Check RSpec. It looks dificult at first, but after while you will love it. You write test like sentences in english
[13:10:43] DylanJ: whether that's just acceptance or just unit tests. or a combination. anything is okay.
[13:11:08] zlude: toomus, thanks
[13:11:17] JoshL: zlude: Capybara is not a test driver, it's designed to be used with something else like RSpec or Test::Unit
[13:11:37] JoshL: (to run the actual tests)
[13:13:11] SeanLazer: has joined #RubyOnRails
[13:13:29] DylanJ: mauro1254: there's probably a way to enable caching per test.
[13:13:35] DylanJ: i haven't done it though
[13:14:04] zlude: I check ruby/rails versions on my ubuntu, should I use it? "Rails 4.2.1 and ruby 2.1.3"
[13:14:04] mauro1254: It is set in config/environments/*.rb
[13:14:26] ndrei: has joined #RubyOnRails
[13:14:28] mauro1254: It is just to know how to do things the right way....
[13:15:11] earthquake: has joined #RubyOnRails
[13:15:11] DylanJ: mauro1254: yeah but that sets it for the entire environment. you probably don't want to cache things in development or test. if you do you need to clear the cache whenever your thing thats cached changes.
[13:15:42] JoshL: zlude: That is a recent Rails version, and any ruby >= 2.1.x should be fine
[13:15:43] dseitz: has joined #RubyOnRails
[13:16:13] zlude: JoshL, Thank you!
[13:16:19] diegobiavati: has joined #RubyOnRails
[13:16:35] JoshL: zlude: you shouldn't install Rails from apt though, if that's what you're doing. Install Ruby from apt and then rails via rubygems
[13:16:58] mauro1254: How can you write code that use cache without enabling it?
[13:17:14] allcentury: has joined #RubyOnRails
[13:17:24] JoshL: zlude: also if you're using apt to get ruby, Brightbox maintains a pretty solid PPA for recent versions: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
[13:17:25] zlude: JoshL, I'v installed using 'gem install rails'
[13:17:40] JoshL: That's good
[13:18:42] symbol: has joined #RubyOnRails
[13:18:44] symbol: has joined #RubyOnRails
[13:19:10] Pounce: has joined #RubyOnRails
[13:19:31] annlewis: has joined #RubyOnRails
[13:19:39] nertzy: has joined #RubyOnRails
[13:20:09] DylanJ: mauro1254: http://stackoverflow.com/questions/5035982/optionally-testing-caching-in-rails-3-functional-tests
[13:20:15] renews: has joined #RubyOnRails
[13:20:24] haz111: has joined #RubyOnRails
[13:21:18] mary5030: has joined #RubyOnRails
[13:22:37] mauro1254: DylanJ: THX
[13:23:44] jwaldrip_: has joined #RubyOnRails
[13:24:43] bamorim: has joined #RubyOnRails
[13:25:17] kdys: has joined #RubyOnRails
[13:25:54] RegulationD: has joined #RubyOnRails
[13:26:17] alho: has joined #RubyOnRails
[13:26:26] davidhq: has joined #RubyOnRails
[13:26:47] kdys_: has joined #RubyOnRails
[13:26:55] melter: has joined #RubyOnRails
[13:27:53] gambl0re: has joined #RubyOnRails
[13:27:56] wethu: has joined #RubyOnRails
[13:28:53] ruv_: has joined #RubyOnRails
[13:29:12] maxshelley: has joined #RubyOnRails
[13:29:23] ruv: has joined #RubyOnRails
[13:29:28] ruv_: has left #RubyOnRails: ()
[13:30:12] ruv: has joined #RubyOnRails
[13:31:56] griffindy: has joined #RubyOnRails
[13:34:05] ErfanBs: has joined #RubyOnRails
[13:34:37] alexclark: has joined #RubyOnRails
[13:34:55] ndrei: has joined #RubyOnRails
[13:36:05] arup_r: has joined #RubyOnRails
[13:36:16] simplyianm: has joined #RubyOnRails
[13:36:25] creature: has joined #RubyOnRails
[13:37:11] sinkensabe: has joined #RubyOnRails
[13:38:53] codeurge: has joined #RubyOnRails
[13:41:27] Prira: Do you know how can I send mails *only* in text/plain ? My template file is .text.erb and my mail() method is: mail to: "foo", content_type: "text/plain" do |format|; format.text; end
[13:41:38] Prira: And Rails is still sending both text and html mails
[13:42:06] tannerj: has joined #RubyOnRails
[13:42:42] ferr: has joined #RubyOnRails
[13:43:01] ruv: has joined #RubyOnRails
[13:43:15] tannerj: has left #RubyOnRails: ()
[13:43:43] [SaM]: has joined #RubyOnRails
[13:43:55] ndrei: has joined #RubyOnRails
[13:43:57] qwertme: has joined #RubyOnRails
[13:44:19] DylanJ: Prira: afaik you should have to do any of that. only specify a .text.erb template.
[13:44:24] tannerj: has joined #RubyOnRails
[13:44:43] krz: has joined #RubyOnRails
[13:44:43] DylanJ: How are verifying rails is sending both text and html?
[13:44:59] DylanJ: you shouldn't have to**
[13:45:08] ErfanBs: has joined #RubyOnRails
[13:46:09] SeanLazer: has joined #RubyOnRails
[13:46:43] greengriminal: has joined #RubyOnRails
[13:48:01] catcher: has joined #RubyOnRails
[13:48:08] catcher: has joined #RubyOnRails
[13:48:19] srinidhi1: has joined #RubyOnRails
[13:48:47] Prira: DylanJ: In the development logs, I can see the entire mail, with a text/plain part, and a text/html part
[13:48:53] bratsche: has joined #RubyOnRails
[13:50:00] Prira: DylanJ: Like that http://pastebin.com/mwTyALM0
[13:50:03] srinidhi: has joined #RubyOnRails
[13:50:12] Prira: Hm, ok bot
[13:51:58] ErfanBs: has joined #RubyOnRails
[13:53:12] dopie: has joined #RubyOnRails
[13:53:31] rubyonrailed: has joined #RubyOnRails
[13:53:49] centrx: has joined #RubyOnRails
[13:53:52] edwinvdgraaf: has joined #RubyOnRails
[13:55:37] alho: has joined #RubyOnRails
[13:56:32] philcrissman: has joined #RubyOnRails
[13:57:20] edwinvdg_: has joined #RubyOnRails
[13:57:35] alassiter: has joined #RubyOnRails
[13:57:48] sarink: has joined #RubyOnRails
[13:57:53] maximski: using omniauth, how can i get the url of my app from which the auth request leaves so i can redirect to the same page back after it succeeded?
[13:58:53] paulcsmith: has joined #RubyOnRails
[13:58:57] strixd: http://pastebin.com
[13:59:04] strixd: smart bot
[13:59:13] jwaldrip_: has joined #RubyOnRails
[14:00:40] tannerj: has left #RubyOnRails: ()
[14:00:57] helpa: I am a puppet. mikecmpbll is my puppetmaster
[14:02:17] ruv: hey is there anyway to have a couple params that are being passed via strong params not have columns mapped to them? I have about 15 params 2 of which will be used to do a lookup before insert.
[14:03:15] justintv90: has joined #RubyOnRails
[14:03:42] DylanJ: Prira: just tried it in my app, just sends plain text if i remove the html template.
[14:03:54] mikecmpbll: ruv: of course, strong params doesn't directly have anything to do with your model attributes
[14:04:11] justintv90: has joined #RubyOnRails
[14:04:19] mikecmpbll: ruv: but why are you doing a "lookup" in .new() or .create() though?
[14:04:20] jan1337z: has joined #RubyOnRails
[14:04:26] rickmasta: has joined #RubyOnRails
[14:04:29] DylanJ: Prira: just do mail(to: 'foo')
[14:04:38] ruv: mikecmpbll, using a lookup table
[14:05:00] mikecmpbll: ruv: i don't know what you mean
[14:05:05] Prira: DylanJ: I just figured out, avec several weeks... resque_mailer initializer is overwritting my conf to set a multipart/alternative content type
[14:05:07] justintv90: has joined #RubyOnRails
[14:05:12] Prira: -avec +after
[14:05:47] Prira: btw thanks :)
[14:05:52] justintv90: has joined #RubyOnRails
[14:06:02] ruv: mikecmpbll, I have a table with predefined data. Before I create a new entry I want to match on the lookup table and add that foreign key to the record I am inserting.
[14:06:20] alassiter: has left #RubyOnRails: ()
[14:06:42] justintv90: has joined #RubyOnRails
[14:06:46] mikecmpbll: ruv: why aren't you passing the foreign key in?
[14:08:16] ruv: I dont know what it is until I check that lookup table. so currently I am submitting a bunch of json. all of the json maps to columns in the db execpt for 2 params. these 2 params I am trying to use to do a select where to find my foreign key.
[14:08:26] codepete: has joined #RubyOnRails
[14:08:33] mikecmpbll: ruv: oh right, it's an api or something?
[14:08:43] ruv: mikecmpbll, yeah an api
[14:08:58] ruv: mikecmpbll, and this is my first experience with ruby and rails :)
[14:09:00] jwaldrip_: has joined #RubyOnRails
[14:09:05] mikecmpbll: ruv: okidokes, well you can do that in a model callback, just add attr_accessor for the two attributes
[14:09:09] cmisenas: has joined #RubyOnRails
[14:09:17] mikecmpbll: and then set the foreign keys in a before_save
[14:09:44] DylanJ: ruv: your model just needs a def somethingnotindb=() method
[14:09:52] DylanJ: attr_accessor would acheive that
[14:10:08] mikecmpbll: that's a better way of explaining ;)
[14:10:12] DylanJ: but maybe you wanna do something else when it's passed
[14:10:16] ruv: so I would set the attr_accessor on the model?
[14:11:07] asheinfeld: has joined #RubyOnRails
[14:11:25] ruv: in the controller do I leave those 2 fields in strong params def?
[14:11:28] Hates__: has joined #RubyOnRails
[14:11:35] foucist: has joined #RubyOnRails
[14:12:08] ErfanBs1: has joined #RubyOnRails
[14:12:11] codepete_: has joined #RubyOnRails
[14:12:59] DylanJ: strong params will filter out params you don't specifically allow. and the update is gonna go over all the keys in your params hash and call send("#{key}=", params[key]) on the receiving object.
[14:13:03] ruv: DylanJ, happen to know where I can find an example? my brain is not following.
[14:13:07] tannerj: has joined #RubyOnRails
[14:13:14] DylanJ: uh 2 secs
[14:14:05] DylanJ: here i'll pm you it's easier than spamming #ror
[14:14:24] renews: has joined #RubyOnRails
[14:14:38] jan1337z: has joined #RubyOnRails
[14:15:29] mikecmpbll: DylanJ: it's not spamming to help someone with Ruby on Rails in #rubyonrails.
[14:15:33] centrx: has joined #RubyOnRails
[14:16:09] fgo: has joined #RubyOnRails
[14:16:52] bronson_: has joined #RubyOnRails
[14:17:13] Fire-Dragon-DoL: has joined #RubyOnRails
[14:17:51] highcup: has joined #RubyOnRails
[14:18:16] DylanJ: if i'm wrong then i can be judged!
[14:19:12] jwaldrip_: has joined #RubyOnRails
[14:19:38] davidhq: has joined #RubyOnRails
[14:20:31] bdnelson: has joined #RubyOnRails
[14:20:45] l0oky: has joined #RubyOnRails
[14:21:14] vedu: DylanJ: this fear will prevent you from learning
[14:21:43] DylanJ: vedu: it was a joke. i just was gonna link some of my code but didnt want to share with possibly 400 people.
[14:22:23] RegulationD: has joined #RubyOnRails
[14:22:28] commondream: has joined #RubyOnRails
[14:22:56] jkamenik1: has joined #RubyOnRails
[14:24:41] smathy: has joined #RubyOnRails
[14:24:53] [H]unt3r: has joined #RubyOnRails
[14:25:09] justintv90: has joined #RubyOnRails
[14:25:44] SuMo_D: has joined #RubyOnRails
[14:25:58] justintv90: has joined #RubyOnRails
[14:26:47] justintv90: has joined #RubyOnRails
[14:26:52] ndrei: has joined #RubyOnRails
[14:27:38] justintv90: has joined #RubyOnRails
[14:28:19] justintv90: has joined #RubyOnRails
[14:29:02] borodin: has joined #RubyOnRails
[14:29:09] justintv90: has joined #RubyOnRails
[14:29:36] livathinos: has joined #RubyOnRails
[14:30:00] justintv90: has joined #RubyOnRails
[14:30:46] justintv90: has joined #RubyOnRails
[14:31:19] tenderlove: has joined #RubyOnRails
[14:31:31] intinig: has joined #RubyOnRails
[14:31:38] justintv90: has joined #RubyOnRails
[14:32:29] SuMo_D: has joined #RubyOnRails
[14:32:31] justintv90: has joined #RubyOnRails
[14:33:08] The_Phoenix: has joined #RubyOnRails
[14:33:21] justintv90: has joined #RubyOnRails
[14:34:10] justintv90: has joined #RubyOnRails
[14:34:25] The_Phoenix: has joined #RubyOnRails
[14:34:41] Spami: has joined #RubyOnRails
[14:35:15] justintv90: has joined #RubyOnRails
[14:35:21] edwinvdgraaf: has joined #RubyOnRails
[14:35:30] The_Phoenix: has joined #RubyOnRails
[14:35:44] Parker0: has joined #RubyOnRails
[14:36:09] justintv90: has joined #RubyOnRails
[14:36:15] edwinvdg_: has joined #RubyOnRails
[14:36:47] justintv90: has joined #RubyOnRails
[14:37:44] justintv90: has joined #RubyOnRails
[14:38:19] dopie: has left #RubyOnRails: ("Leaving")
[14:38:42] zekriad: has joined #RubyOnRails
[14:38:56] tubbo: has joined #RubyOnRails
[14:39:12] dhjondoh: has joined #RubyOnRails
[14:39:55] endorphine_: has joined #RubyOnRails
[14:40:24] scottmatheina: has joined #RubyOnRails
[14:41:06] dopie: has joined #RubyOnRails
[14:41:28] starfox_sf: has joined #RubyOnRails
[14:41:31] scottmat_: has joined #RubyOnRails
[14:41:50] gaussblurinc1: has joined #RubyOnRails
[14:42:41] shinnya: has joined #RubyOnRails
[14:42:53] vedu: Hello. I am creating a custom action in rails. I need multiple actions in its controller. but so far I have seen only a single action that is rendered on load, like: https://github.com/sferik/rails_admin/blob/master/lib/rails_admin/config/actions/new.rb#L15
[14:43:51] tannerj: has joined #RubyOnRails
[14:44:37] tubbo: vedu: rails_admin != rails...
[14:44:46] tubbo: vedu: what exactly do you need to do?
[14:44:48] commondream: has joined #RubyOnRails
[14:45:44] justintv90: has joined #RubyOnRails
[14:45:45] vedu: tubbo: I was afraid of that. I have some javascript code that will call actions (via AJAX probably) so that I will not need to reload the page
[14:46:11] DylanJ: vedu: just do def :my_action; #code; end in your controller
[14:46:23] DylanJ: tell the router about it by adding it to routes.rb
[14:46:28] tubbo: well, don't do THAT ^ because it will generate a syntax error. ;)
[14:46:37] DylanJ: def my_action; ;)
[14:46:52] tubbo: but yeah DylanJ you're right normally...unless vedu is trying to add an action into rails_admin...
[14:46:54] vedu: lol. yeah
[14:46:57] tubbo: in that case it gets a bit harder.
[14:46:59] justintv90: has joined #RubyOnRails
[14:47:10] DylanJ: most definitely. no idea how rails admin works unfortunately.
[14:47:19] avril14th: has joined #RubyOnRails
[14:47:28] vedu: I think DylanJ's idea will work for me
[14:47:43] vedu: thanks :)
[14:47:51] tubbo: vedu: so...are you doing this in rails_admin or one of your own controllers?
[14:48:19] vedu: tubbo: I could do it in either
[14:48:27] tubbo: ah, then i'd definitely do it in your own controller :)
[14:48:38] tubbo: and then DylanJ's solution should work for ya
[14:48:45] ekain: has joined #RubyOnRails
[14:48:52] justintv90: has joined #RubyOnRails
[14:49:24] EXCHGR: has joined #RubyOnRails
[14:49:37] justintv90: has joined #RubyOnRails
[14:49:48] francoi__: has joined #RubyOnRails
[14:50:20] vedu: yes. I think I will need "some" config in my controller so that I can use the authentication of rails_admin i.e. basically devise
[14:50:32] justintv90: has joined #RubyOnRails
[14:51:42] chouhoulis: has joined #RubyOnRails
[14:52:37] Macaveli: has joined #RubyOnRails
[14:52:56] AlHafoudh: has joined #RubyOnRails
[14:53:31] baweaver: has joined #RubyOnRails
[14:53:57] ogpastaling: has joined #RubyOnRails
[14:54:57] nonparfumee: has joined #RubyOnRails
[14:55:30] ogpastaling: has joined #RubyOnRails
[14:58:08] larissa: has joined #RubyOnRails
[14:58:38] fortunate: has joined #RubyOnRails
[14:58:55] fortunate: has left #RubyOnRails: ()
[14:59:05] intinig: has joined #RubyOnRails
[14:59:12] fortunate: has joined #RubyOnRails
[15:01:17] disgrntld: has joined #RubyOnRails
[15:01:24] paulcsmith: has joined #RubyOnRails
[15:01:55] rickmasta: has joined #RubyOnRails
[15:02:40] bobbobbins: has joined #RubyOnRails
[15:03:00] Pazician: has joined #RubyOnRails
[15:03:06] icehawk78: has joined #RubyOnRails
[15:04:11] joaomdmoura: has joined #RubyOnRails
[15:04:19] icehawk78: If I have a method on my model objects, is there some way I can do a select/find on the results of that method, or do I need to select all and then filter the list based on the results of that?
[15:04:30] alho: has joined #RubyOnRails
[15:04:33] s2013: has joined #RubyOnRails
[15:05:17] war_pigs: has joined #RubyOnRails
[15:05:56] tubbo: Icehawk78: if the method returns an AR::Relation then you can continue to tack on new features of the query, because all it's doing is building a big SQL query that it executes as soon as you need data form it
[15:06:54] bobbobbins: hey, I'm trying to figure out the correct way to do something in rails, I have a modal popup that acts like a wizard(meaning it has several steps inside the modal before it closes), so I put some js on the submit button in the modal to do an ajax call that calls a .js.erb file...i guess my problem is, that js.erb file is mostly an html form, so having to render the whole thing via js that way seems wrong
[15:06:54] bobbobbins: ...whats the right way to do something like that?
[15:07:32] IFrank00: has joined #RubyOnRails
[15:07:33] tjbiddle: has joined #RubyOnRails
[15:07:35] bamorim: has joined #RubyOnRails
[15:07:37] alho: has joined #RubyOnRails
[15:07:46] IFrank00: Hi everybody
[15:08:06] tubbo: bobbobbins: whenever i've had to make a wizard, i always put all the markup for the form on the same page and organized by <fieldset>, then i just show/hide fieldsets as needed.
[15:08:21] tubbo: bobbobbins: only the last "page" of the wizard will contain the actual submit button
[15:08:33] icehawk78: tubbo: It's an instance method, so it doesn't. It returned true/false based upon calculations for the values on the record. So I'm guessing not.
[15:08:33] renews: has joined #RubyOnRails
[15:08:57] bobbobbins: tubbo: I can't believe I didn't think of that, ugh
[15:09:12] cornerma1: has joined #RubyOnRails
[15:09:23] tubbo: Icehawk78: you can still select/filter on that, it probably just won't be performant at high loads
[15:09:52] tubbo: Icehawk78: like you can do User.map(&:has_orphan_files?) or something
[15:10:30] icehawk78: Gotcha. That's just using the ruby enumerable methods at that point, rather than any rails methods, right?
[15:10:33] ndrei: has joined #RubyOnRails
[15:11:15] icehawk78: That's what I'm currently doing, just wanted to make sure I wasn't doing something dumber than I needed to.
[15:11:19] intinig: has joined #RubyOnRails
[15:11:48] tubbo: Icehawk78: if you have performance problems in the future, maybe think of having a bg job populate that data point in the background all the time, and then you can make it part of the SQL query
[15:12:29] smathy: ...or just use a DB trigger to populate the column.
[15:12:52] smathy: ...or in pure Rails, a before_save could do the same thing.
[15:13:07] jkamenik: has joined #RubyOnRails
[15:13:13] tubbo: i guess it depends on what the data is
[15:13:42] darrencauthon: has joined #RubyOnRails
[15:14:10] smathy: Lots of good options.
[15:15:16] intinig: has joined #RubyOnRails
[15:16:03] IFrank00: I got a question. Im trying to have a UserModel for as the log account and ServiceUser and ClientUser as the type of user https://gist.github.com/Frank004/710071d36cc2818c2ca8 I got on my app the first version and I'm think if the second one works the same ???
[15:17:25] IFrank00: the other solution is to have 3 models User and Client and then create a way for both User and Client to login in the same form
[15:17:33] jstanton: has joined #RubyOnRails
[15:17:53] tubbo: IFrank00: yep, that's just flipping the reference. belongs_to just dictates which table the *_id column is going to be kept in
[15:18:21] RegulationD: has joined #RubyOnRails
[15:18:22] Koveno: has joined #RubyOnRails
[15:19:37] IFrank00: tubbo its that a best practice ??
[15:20:36] tubbo: IFrank00: it doesn't really matter too much. just depends on where you want to store the data.
[15:20:51] tubbo: like what makes the most sense to you?
[15:20:56] diegobiavati: has joined #RubyOnRails
[15:22:24] intinig: has joined #RubyOnRails
[15:22:59] snockerton: has joined #RubyOnRails
[15:23:42] ebbflowgo: has joined #RubyOnRails
[15:23:51] jscheel: has joined #RubyOnRails
[15:24:59] RegulationD: has joined #RubyOnRails
[15:26:07] jkamenik: has joined #RubyOnRails
[15:26:15] hamster88: has joined #RubyOnRails
[15:26:22] hamster88: hello people :D
[15:26:36] IFrank00: hamster88, Hi! good day
[15:27:35] hamster88: I have a question. How can i populate a search form (using bootstrap) in a rails form
[15:27:40] siddart: has joined #RubyOnRails
[15:27:54] dseitz: has joined #RubyOnRails
[15:28:29] hamster88: so that if a user search that form can get results
[15:28:47] s2013: has joined #RubyOnRails
[15:28:49] hamster88: by tags or keywords or title or something.
[15:30:28] feens: has joined #RubyOnRails
[15:31:53] bogdanchilianu: has joined #RubyOnRails
[15:32:06] maximski: has joined #RubyOnRails
[15:32:06] maximski: can anyone explain me what exactly is meant here and when i want to do this? https://github.com/plataformatec/devise/wiki/How-To:-redirect-to-a-specific-page-on-successful-sign-in#redirect-back-to-current-page-without-oauth-signin
[15:32:47] maximski: https://github.com/plataformatec/devise/wiki/How-To:-redirect-to-a-specific-page-on-successful-sign-in#redirect-back-to-current-page-without-oauth-signin
[15:32:56] maximski: can anyone explain me what exactly is meant here and when i want to do this?
[15:33:18] ych_: has joined #RubyOnRails
[15:33:36] hamster88: maximski, it explains as it will redirect to current page or a specific page if you will use this
[15:34:35] maximski: yes but whats the difference to the solution above then?
[15:35:01] hamster88: can you elaborate your question?
[15:35:41] maximski: i basically don't understand the part "without oauth signin?"
[15:36:08] maximski: both solutions show how you can redirect somewhere specific
[15:36:11] maximski: after sign in
[15:36:19] maximski: or maybe without signin for the latter
[15:36:24] maximski: that's unclear for me
[15:36:49] smathy: maximski, what do you mean "both solutions"? You've given two URLs to the same thing.
[15:37:30] hamster88: what you are referring to a gem called devise where as oauth is different from what it is
[15:37:35] fedexo: has joined #RubyOnRails
[15:37:59] Fire-Dragon-DoL: has joined #RubyOnRails
[15:38:08] yoongkang: has joined #RubyOnRails
[15:38:19] maximski: there is "redirect back to current page after oauth signin?" and "redirect back to current page without oauth signin?" and the latter one i cant get what it does concretely and when i would use it in practice
[15:38:39] smathy: maximski, ah ok, you only linked twice to the latter.
[15:38:58] alho: has joined #RubyOnRails
[15:39:07] umgrosscol: has joined #RubyOnRails
[15:39:13] smathy: maximski, so basically the latter includes the `request.referer` for the "back" option because when there's no oauth signin then request.env['omniauth.origin'] isn't set.
[15:40:28] asheinfeld: has joined #RubyOnRails
[15:40:31] smathy: Un-fortunate.
[15:40:57] maximski: so the only purpose of it is to still redirect to the original page of my app after a signin failed, is that right somehow?
[15:41:01] balr0g: has joined #RubyOnRails
[15:41:49] jstanton: has joined #RubyOnRails
[15:42:21] Anakat: has joined #RubyOnRails
[15:46:28] aarkerio: has joined #RubyOnRails
[15:47:30] smathy: maximski, I don't know what "the original page of my app" means.
[15:47:40] smathy: maximski, but probably, no, that's obviously not its only purpose.
[15:47:56] maximski: the page on which the user sent clicked the login button :P
[15:48:53] edwinvdgraaf: has joined #RubyOnRails
[15:48:57] intinig: has joined #RubyOnRails
[15:49:33] smathy: maximski, as the code shows, it will also fall back to root_path if no referer is set.
[15:49:52] smathy: maximski, but basically yeah, the title is accurate, this is the code for "redirect back to current page..."
[15:50:57] smathy: maximski, so you asked when you want to do this, it depends on your app but many apps will want to do this. It's a fairly expected user experience to request a certain page, be redirected to login, and once you've logged in to be redirected back to the page you initially requested.
[15:52:06] edwinvdg_: has joined #RubyOnRails
[15:52:34] Anakat: has joined #RubyOnRails
[15:53:33] givanse_: has joined #RubyOnRails
[15:55:00] commondream: has joined #RubyOnRails
[15:56:17] philcrissman: has joined #RubyOnRails
[15:56:27] cmisenas: has joined #RubyOnRails
[15:57:06] Rubie: has joined #RubyOnRails
[15:58:34] towski_: has joined #RubyOnRails
[15:59:25] ErfanBs: has joined #RubyOnRails
[16:00:14] s2013: has joined #RubyOnRails
[16:00:18] pixelhandler: has joined #RubyOnRails
[16:01:07] erich: has joined #RubyOnRails
[16:02:22] s2013: has joined #RubyOnRails
[16:02:46] renews: has joined #RubyOnRails
[16:02:51] snockerton: has joined #RubyOnRails
[16:02:51] annlewis: has joined #RubyOnRails
[16:04:53] cmisenas: has joined #RubyOnRails
[16:05:03] SteenJobs: has joined #RubyOnRails
[16:05:08] ogpastaling: has joined #RubyOnRails
[16:05:57] maximski: that makes perfectly sense
[16:06:11] maximski: now understood it, ty very much
[16:07:26] francoi__: has joined #RubyOnRails
[16:08:04] smathy: maximski, you're welcome.
[16:10:43] starfox_sf: has joined #RubyOnRails
[16:10:51] Maletor: has joined #RubyOnRails
[16:12:50] arup_r: has joined #RubyOnRails
[16:13:15] bogdanchilianu: has joined #RubyOnRails
[16:17:35] zendrix: has joined #RubyOnRails
[16:18:47] platosha__: has joined #RubyOnRails
[16:19:58] pixelhan_: has joined #RubyOnRails
[16:20:45] s2013: has joined #RubyOnRails
[16:22:15] djdarkbeat: has joined #RubyOnRails
[16:23:32] __butch__: has joined #RubyOnRails
[16:24:23] tannerj: has joined #RubyOnRails
[16:25:41] simplyianm: has joined #RubyOnRails
[16:29:04] freezevee: has joined #RubyOnRails
[16:29:07] endorphine_: has joined #RubyOnRails
[16:29:24] sonofdirt: has joined #RubyOnRails
[16:29:38] freezevee: has anyone experience with middleman
[16:29:44] DigitallyBorn: Is there a way to ignore an existing table error during a db migrate?
[16:29:47] ruv: Hey I am using nested attributes and I am seeing something strange. when doing a put I see a select with a foreign key, then an update with the fk =nil, then an insert with the same fk. is there away to change the behavior?
[16:29:53] bricker: has joined #RubyOnRails
[16:29:57] waseem_: DigitallyBorn: What are you trying to do?
[16:31:37] waseem_: DigitallyBorn: That means your database already has that table and you're trying to create it again. If you're in development environment, just comment out the change method in the migration and run db:migrate.
[16:31:56] DigitallyBorn: waseem_: I grabbed a copy of production db.
[16:32:11] smathy: freezevee, you should just ask your question.
[16:32:20] waseem_: DigitallyBorn: Yeah, you can comment out that migration and run the migrations again.
[16:32:24] DigitallyBorn: waseem_: Ok. We're commonly moving between branches, so run into this quite a bit.
[16:32:44] DigitallyBorn: waseem_: ... and have people who forget to rollback before switching and they make a mess of things.
[16:32:54] paulcsmith: has joined #RubyOnRails
[16:32:59] freezevee: smathy: I don't know how to upload my website after middleman deploy
[16:33:03] waseem_: DigitallyBorn: If you have production database, why are you running migrations again?
[16:33:15] smathy: ruv, !gist and include the log output you're seeing
[16:33:15] helpa: ruv: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[16:33:29] waseem_: DigitallyBorn: Do you have some migrations pending that were not run on production database?
[16:33:37] DigitallyBorn: waseem_: Exactly
[16:34:00] waseem_: DigitallyBorn: They easy way will be to do what I said.
[16:34:13] DigitallyBorn: waseem_: Yeah, heading that way. Thanks.
[16:35:46] smathy: freezevee, have you read https://github.com/middleman-contrib/middleman-deploy ?
[16:37:07] ruv: here is the gist
[16:37:07] ruv: https://gist.github.com/jlstanton/53cdf5cd63dc12f6f14a
[16:40:27] francoi__: has joined #RubyOnRails
[16:40:32] ruv: hmm update_only: true may have fixed it
[16:41:46] ruv: yup it did
[16:42:37] djbkd: has joined #RubyOnRails
[16:42:49] edwinvdgraaf: has joined #RubyOnRails
[16:43:57] fragamus: has joined #RubyOnRails
[16:45:09] edwinvdg_: has joined #RubyOnRails
[16:45:25] qwertme: has joined #RubyOnRails
[16:46:31] wpp: has joined #RubyOnRails
[16:47:22] edwinvdg_: has joined #RubyOnRails
[16:47:46] feens: has left #RubyOnRails: ()
[16:47:51] drale2k: has joined #RubyOnRails
[16:47:58] Pazician: has joined #RubyOnRails
[16:48:29] IFrank00: How can I use Devise Login with multiple User Type
[16:49:24] n008f4g_: has joined #RubyOnRails
[16:49:25] bronson_: has joined #RubyOnRails
[16:49:29] smathy: IFrank00, what does "multiple User Type" mean?
[16:49:36] s2013: like roles?
[16:49:40] IFrank00: I have CompanyMember, Admin and Client
[16:49:49] s2013: or do you mean you have different devise models
[16:49:57] s2013: well you just route it to the path
[16:50:10] s2013: so if its admin model it would be like /admins/sign_in or whatever
[16:51:14] IFrank00: yes I want to use this site.com/login for CompanyMember and Client as they are end user and site.com/admin/login
[16:51:15] ogpastaling: has joined #RubyOnRails
[16:52:09] IFrank00: Admin just have 3 areas dashboard, user list and company
[16:52:28] IFrank00: Clients has the reports and complaint area
[16:52:46] intinig: has joined #RubyOnRails
[16:52:55] mrbubbles: has joined #RubyOnRails
[16:53:07] borodin: anybody know how to use devise without authentication? i.e. I already have authentication from a proxy using basic auth and ldap - it passes a HTTP_AUTHORIZATION header to my rails app, I can parse it and see the username - I need to tell devise to consider this user to be current_user
[16:53:32] borodin: or I could rip out devise but then I'd have to build a current_user/session
[16:54:34] IFrank00: and the Company member has employees list, projects, task and many more
[16:55:31] jmignault: has joined #RubyOnRails
[16:55:55] IFrank00: s2013, How can I log the Client and member from the same form
[16:56:10] rubyonra_: has joined #RubyOnRails
[16:56:13] snockerton: has joined #RubyOnRails
[16:56:55] renews: has joined #RubyOnRails
[16:57:36] charliesome: has joined #RubyOnRails
[16:58:01] baweaver: has joined #RubyOnRails
[16:58:28] asheinfeld: has joined #RubyOnRails
[16:59:30] zcreative: has joined #RubyOnRails
[17:00:11] garrypolley: has joined #RubyOnRails
[17:00:17] baweaver: has joined #RubyOnRails
[17:01:26] SirCmpwn: has joined #RubyOnRails
[17:01:50] nonparfumee: has joined #RubyOnRails
[17:02:03] DoctorMonocular: has joined #RubyOnRails
[17:04:33] Valien: has joined #RubyOnRails
[17:04:36] erich: has joined #RubyOnRails
[17:05:21] michaeldeol: has joined #RubyOnRails
[17:05:35] waseem_: borodin: Rip it out.
[17:06:18] borodin: waseem_: you don't like devise? FWIW it does seem to support this: https://github.com/plataformatec/devise/wiki/How-To:-Use-HTTP-Basic-Authentication
[17:08:04] waseem_: borodin: The way you've worded your question, it gives me the impression that you aint gonna need it.
[17:08:20] qwertme: has joined #RubyOnRails
[17:08:22] waseem_: borodin: You write the things that you miss pretty easily.
[17:08:30] waseem_: borodin: I don't like devise. :)
[17:09:00] Filete: has joined #RubyOnRails
[17:09:32] surrealanalysis: has joined #RubyOnRails
[17:11:11] zendrix: has joined #RubyOnRails
[17:12:58] SteenJobs: has joined #RubyOnRails
[17:13:15] daneo: has joined #RubyOnRails
[17:13:16] ur5us: has joined #RubyOnRails
[17:13:21] joelataylor_: has joined #RubyOnRails
[17:13:42] joaomdmoura: has joined #RubyOnRails
[17:15:40] x1337807x: has joined #RubyOnRails
[17:16:51] x1337807x: has joined #RubyOnRails
[17:17:39] x1337807x: has joined #RubyOnRails
[17:18:06] ararog: has joined #RubyOnRails
[17:18:32] x1337807x: has joined #RubyOnRails
[17:19:09] ogpastaling: has joined #RubyOnRails
[17:20:04] jstanton: has joined #RubyOnRails
[17:22:23] ErfanBs: has joined #RubyOnRails
[17:25:05] krisquigley: has joined #RubyOnRails
[17:25:06] ErfanBs1: has joined #RubyOnRails
[17:25:16] alho: has joined #RubyOnRails
[17:25:32] simplyianm: has joined #RubyOnRails
[17:25:45] simplyianm: has joined #RubyOnRails
[17:26:30] Spami: has joined #RubyOnRails
[17:28:24] surrealanalysis: has joined #RubyOnRails
[17:28:27] Spami: has joined #RubyOnRails
[17:30:09] bhorn1: has joined #RubyOnRails
[17:30:10] ErfanBs: has joined #RubyOnRails
[17:32:47] leex: Hi, if I want to do this a.map {|a| a.b.map {|b| b.c.id}} this will be really slow, I know that I can run: a.joins(:b) but how do I just twice? joins(:b).joins(:c) doesn't work because a only knows b
[17:32:49] garrypolley: has joined #RubyOnRails
[17:35:18] annlewis_: has joined #RubyOnRails
[17:35:29] haz111: has joined #RubyOnRails
[17:36:46] philcris_: has joined #RubyOnRails
[17:37:16] qejk: has joined #RubyOnRails
[17:38:27] metalic: has joined #RubyOnRails
[17:38:55] tannerj: has joined #RubyOnRails
[17:39:37] ndrei_: has joined #RubyOnRails
[17:40:07] bobbobbins: has joined #RubyOnRails
[17:41:47] hamster88: has joined #RubyOnRails
[17:41:51] Axsuul: has joined #RubyOnRails
[17:42:40] tubbo: has joined #RubyOnRails
[17:42:42] weaksauce: leex what are you trying to accomplish?
[17:42:45] weaksauce: not the low level stuff.. the higher level thing
[17:44:59] leex: weaksauce: a.joins(b: :c).pluck('c.id') exactly this :)
[17:45:14] commondream: has joined #RubyOnRails
[17:45:29] chouhoulis: has joined #RubyOnRails
[17:45:55] leex: weaksauce: I just wasn't sure on how to build the query in rails but the sql query looks good
[17:46:13] Senjai: leex: a.joins(b: :c).pluck(c.arel_table[:id])
[17:46:48] leex: Senjai: what does the arel_table do?
[17:47:32] Senjai: leex: It gets a reference to the database table
[17:47:52] endorphine_: has joined #RubyOnRails
[17:47:54] leex: Senjai: but I need to install the arel gem, right?
[17:47:56] Senjai: leex: Allows you to make explicit references to the table when you're joining multiple tables (as id is ambigious)
[17:48:02] x44x45x41x4E: has joined #RubyOnRails
[17:48:02] Senjai: leex: No, active record is built on arel
[17:48:17] arthurcolle: has joined #RubyOnRails
[17:48:19] leex: Senjai: ok cool, let me try
[17:48:36] arthurcolle: Hey is anyone here familiar with the geokit gem?
[17:48:39] Senjai: leex: It's similar to .joins(b: :c).pluck("#{c.table_name}.id")
[17:48:41] Senjai: but cleaner imo
[17:48:44] Axsuul: has joined #RubyOnRails
[17:49:04] sshuff: has joined #RubyOnRails
[17:49:09] waseem_: arthurcolle: !used
[17:49:09] helpa: arthurcolle: 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.
[17:50:40] sshuff: has joined #RubyOnRails
[17:51:07] renews: has joined #RubyOnRails
[17:51:08] leex: Senjai: do I need to do something with C.arel_table[:id] ? because like this it puts the Arel Struct into the select, which obviously doesn't work
[17:51:30] ProLoser: has joined #RubyOnRails
[17:51:33] iamjarvo: has joined #RubyOnRails
[17:51:39] Senjai: leex: If thats the case, just call .to_sql on it
[17:52:23] iamjarvo: has joined #RubyOnRails
[17:52:25] arooni-mobile: has joined #RubyOnRails
[17:52:32] Senjai: Huh.. you may not be able to use that in a pluck
[17:52:52] arthurcolle: Sorry about that. after specifying "acts_as_mappable" on your model, you can do cool geo queries like User.within(1, :origin => current_user), to get all users within 1 mile/km of the current_user. I am adding a feature to my application where even if you aren't logged in, it gets your IP, sends it off to some API and then gets a lat/long. When I write "User.within(1, :origin => loc)" where loc is an array [-39,77] for e
[17:52:53] arthurcolle: correctly prints out all the names of the users on my server logs, but the view doesn't render and says: undefined method `lat_f' for nil:NilClass
[17:53:44] asheinfeld: has joined #RubyOnRails
[17:54:01] leex: Senjai: yeah, I can't really get it to work properly, but the pluck('c.id') works and is way faster than the map.map I had in there for "just getting it to work" purposes
[17:54:11] waseem_: arthurcolle: Can you gist the view code and thw whole error trace with exception?
[17:54:35] asheinfeld: has joined #RubyOnRails
[17:54:38] Senjai: leex: at the least id use the table name approach
[17:55:10] hakunin: has joined #RubyOnRails
[17:56:09] leex: Senjai: yeah, that also works fine :)
[17:56:18] ErfanBs1: has joined #RubyOnRails
[17:57:04] cac: has joined #RubyOnRails
[17:57:05] Senjai: leex: Generally, when dealing the the datbase, anything that can be resolved dynamically, should.
[17:57:17] ndrei: has joined #RubyOnRails
[17:58:01] arthurcolle: https://gist.github.com/arthurcolle/0af0e99aa14c07a11fce
[17:58:03] commondream: has joined #RubyOnRails
[17:58:11] arthurcolle: waseem_: there ya go
[17:58:16] philcrissman: has joined #RubyOnRails
[17:58:21] leex: Senjai: ok, didn't know about table name, always just wrote 'cs.id'
[17:59:25] waseem_: arthurcolle: !gist-usage
[17:59:25] helpa: arthurcolle: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[17:59:31] waseem_: arthurcolle: Read on that sometime.
[18:00:19] bruno-: has joined #RubyOnRails
[18:00:35] disKounted: has joined #RubyOnRails
[18:02:02] waseem_: arthurcolle: The error does not lie. One of your users has nil lat_f. Try that query in console and try to figure out which user has nil lat_f.
[18:02:17] arthurcolle: Okay thank you waseem
[18:02:38] waseem_: arthurcolle: You'll also have to find a way to handle that situation. It will depend mostly upon how you want your application to behave in case lat_f is nil for a user.
[18:02:56] waseem_: arthurcolle: Maybe you will have to write some kind of validation when user is created so that lat_f is never nil.
[18:03:37] [SaM]: has joined #RubyOnRails
[18:03:44] arthurcolle: It's quite strange that the users display on the logs though but you are right
[18:03:49] doodlehaus: has joined #RubyOnRails
[18:03:51] ivanskie: has joined #RubyOnRails
[18:04:08] [SaM]: has joined #RubyOnRails
[18:04:39] mcr-credil: has joined #RubyOnRails
[18:04:52] erich: has joined #RubyOnRails
[18:05:03] edwinvdgraaf: has joined #RubyOnRails
[18:05:07] arthurcolle: Just to be clear, if you have some get request whose response you want to persist, is it OK to post it to a controller? How can I persist a value through a session without saving it to a record in the database
[18:06:24] erich: has joined #RubyOnRails
[18:06:44] arthurcolle: By "OK" I mean is that the proper/best practice, not whether its technically possible because indeed it is (just clarifying)
[18:07:59] hahuang65: has joined #RubyOnRails
[18:08:16] nonparfumee: has joined #RubyOnRails
[18:08:30] arthurcolle: has joined #RubyOnRails
[18:08:50] artto: has joined #RubyOnRails
[18:09:28] nym: has joined #RubyOnRails
[18:09:28] jenrzzz: has joined #RubyOnRails
[18:09:49] rhizome: not sure i understand
[18:10:23] The_Phoenix: has joined #RubyOnRails
[18:11:39] The_Phoenix: has joined #RubyOnRails
[18:12:16] jstanton: has joined #RubyOnRails
[18:12:28] war_pigs: has joined #RubyOnRails
[18:12:31] asheinfeld: has joined #RubyOnRails
[18:13:18] The_Phoenix: has joined #RubyOnRails
[18:13:21] RandyT: has joined #RubyOnRails
[18:13:42] mary5030: has joined #RubyOnRails
[18:13:51] srinidhi: has joined #RubyOnRails
[18:14:21] The_Phoenix: has joined #RubyOnRails
[18:14:51] RandyT_: has joined #RubyOnRails
[18:15:33] The_Phoenix: has joined #RubyOnRails
[18:16:26] tubbo: arthurcolle: you can store stuff in the session by doing `session[:whatever_key] = "whatever-value"`
[18:16:30] SeanLazer: has joined #RubyOnRails
[18:16:41] tubbo: arthurcolle: the best practice is to use your database :D
[18:17:02] arthurcolle: super weird. I printed out every single user and they all have lat_f/long_f values
[18:17:06] The_Phoenix: has joined #RubyOnRails
[18:17:20] arthurcolle: tubbo: Idk if I really want to save every incoming ip haha
[18:17:49] tubbo: arthurcolle: !xy
[18:17:49] helpa: arthurcolle: http://mywiki.wooledge.org/XyProblem
[18:18:13] tubbo: arthurcolle: anyway, your issue is *not* that lat_f doesn't exist, it's that the User doesn't exist
[18:18:19] tubbo: you're trying to call lat_f on nil
[18:18:22] The_Phoenix: has joined #RubyOnRails
[18:18:50] qwertme: has joined #RubyOnRails
[18:18:55] tubbo: the problem is in User.within i guess
[18:19:14] tubbo: mapping over a collection and trying to call to_f? :)
[18:19:29] The_Phoenix: has joined #RubyOnRails
[18:20:01] arthurcolle: So I have a User that is nil?
[18:20:24] The_Phoenix: has joined #RubyOnRails
[18:20:39] weaksauce: arthurcolle can you gist the full stack trace from the console?
[18:20:43] tubbo: arthurcolle: not really, why don't you add the definition of User.within to your Gist so I can take a look? i think what's going on is you're adding `nil` to the collection and you aren't meaning to :)
[18:21:47] waseem_: I need some sleep. I misread that error. :(
[18:22:04] The_Phoenix: has joined #RubyOnRails
[18:22:29] arthurcolle: I didn't define User.within, it is part of the geokit-rails gem, but basically there are two ways to call it. You can specify User.within(x, :origin => y) where x is a number (miles/km) and y is either something that "acts_as_mappable" (defined in geokit) or where y is an array, (with lat/long). Let me find it on github
[18:22:49] garrypolley: has joined #RubyOnRails
[18:22:53] arthurcolle: I believe this is the definition: https://github.com/geokit/geokit-rails/blob/master/lib/geokit-rails/acts_as_mappable.rb
[18:23:04] The_Phoenix: has joined #RubyOnRails
[18:23:15] tubbo: i've never used geokit
[18:23:40] arthurcolle: What's super weird is that my server logs show all the correct users, even within the iteration (Users.each { |users| ... }), but the error is thrown before it gets there, so I'm just confused about how that can be
[18:23:46] solars: has joined #RubyOnRails
[18:24:07] The_Phoenix: has joined #RubyOnRails
[18:24:47] mrbubbles: has joined #RubyOnRails
[18:24:51] tubbo: arthurcolle: yeah might be useful to add the full trace to that gist
[18:24:55] weaksauce: arthurcolle can you update the gist with the full stack trace?
[18:25:21] x1337807x: has joined #RubyOnRails
[18:25:57] The_Phoenix: has joined #RubyOnRails
[18:26:07] erich: has joined #RubyOnRails
[18:26:15] Cache_Money: has joined #RubyOnRails
[18:27:02] The_Phoenix: has joined #RubyOnRails
[18:27:13] DEA7TH: has joined #RubyOnRails
[18:27:44] nobitanobi: has joined #RubyOnRails
[18:28:32] The_Phoenix: has joined #RubyOnRails
[18:28:36] RegulationD: has joined #RubyOnRails
[18:28:37] arthurcolle: weaksauce: Sure thing, https://gist.github.com/arthurcolle/0af0e99aa14c07a11fce
[18:29:05] arthurcolle: Sorry about lack of syntax highlighting I am going to try and fix it really quick, the dropdown isnt opening for some reason
[18:29:27] weaksauce: you can type a file ext and it will auto select arthurcolle
[18:29:33] Cache_Money: I'm using Rails 4 and Postgres as the DB. I just added a new column to a model that has existing rows. I didn't add a defautl: param to the change_column method in my migration, so all the previous records have `nil` for the new column. If I rollback and add the default: param will that affect previous records or do I need to do that another way?
[18:29:42] podman: has joined #RubyOnRails
[18:29:53] arthurcolle: weaksauce: fixed, thanks
[18:30:47] tubbo: Cache_Money: if you rollback it will first delete the column, then re-add the column based on your now changed migration. so yeah it should affect the previous records.
[18:31:06] tubbo: that is, if postgres even affects previous records for default values in the first place...i'm not 100% on whether that's true or not
[18:31:31] jenrzzz_: has joined #RubyOnRails
[18:31:40] Cache_Money: tubbo: this SO answer says it doesn't but it's from 2011 http://stackoverflow.com/a/7098712/899904
[18:31:45] Cache_Money: i'll give it a try
[18:32:16] weaksauce: arthurcolle it's failing on origin.send(":#{lat_column_name.}")
[18:32:31] adimircolen: has joined #RubyOnRails
[18:32:34] tubbo: Cache_Money: worst thing that can happen is you need to write an additional rake task to update existing row.s
[18:32:43] iamjarvo: has joined #RubyOnRails
[18:32:50] mikecmpbll: has joined #RubyOnRails
[18:32:56] weaksauce: restart everything arthurcolle it could be a spring issue
[18:33:41] weaksauce: you could also check to see if User.first.lat_f returns anything.
[18:33:44] iamjarvo: has joined #RubyOnRails
[18:33:52] tobobo: has joined #RubyOnRails
[18:34:39] arthurcolle: When I run the same command on rails c, `x = User.within(1, :origin => "39.0526,-77.1210")`, it correctly returns the same values as shown on the server logs
[18:34:47] arthurcolle: All the Users do indeed have a lat_f, long_f
[18:35:07] Cache_Money: tubbo: looks like the default: parameter does affect the previous rows -- at least it did on my laptop
[18:35:25] iamjarvo: has joined #RubyOnRails
[18:35:39] Frem: has joined #RubyOnRails
[18:36:15] Zadrel: has joined #RubyOnRails
[18:36:18] fontas: has joined #RubyOnRails
[18:37:08] mcr-credil: has joined #RubyOnRails
[18:38:20] tobobo: has joined #RubyOnRails
[18:38:38] jenrzzz: has joined #RubyOnRails
[18:38:53] Zadrel: hello there, i'm using jquery tablesorter and the js script is in layouts/appication.x and i cant take it from there, ther's a table in specific that needs to have differente options for tablesorter. anione could help me? a tryed this already: https://gist.github.com/rmatuoka/1ba94ec84ce8d30d5811
[18:39:14] rhizome: what's "layouts/application.x"?
[18:39:31] Zadrel: coud be .html.erb or html.haml
[18:40:01] bin_005: has joined #RubyOnRails
[18:40:36] tannerj: has joined #RubyOnRails
[18:40:45] cmisenas: has joined #RubyOnRails
[18:40:52] Zadrel: rhizome: i'm working with rails and in the folder layouts i have the application.html.erb
[18:41:19] Zadrel: rhizome: th ".x" was an attempt to illustrate that could be either erb or haml
[18:41:26] sdwrage: has joined #RubyOnRails
[18:43:00] intinig: has joined #RubyOnRails
[18:43:03] Tashi: has joined #RubyOnRails
[18:44:12] surrealanalysis: has joined #RubyOnRails
[18:44:54] nertzy: has joined #RubyOnRails
[18:44:56] Guest23220: has joined #RubyOnRails
[18:45:15] renews: has joined #RubyOnRails
[18:45:45] weaksauce: arthurcolle it's because @location is nil
[18:46:00] tubbo: Cache_Money: cool!
[18:46:23] sye: has joined #RubyOnRails
[18:46:47] Cache_Money: tubbo: unfortunately, it didn't work on my prod box
[18:47:03] tubbo: could be a configuration thing
[18:47:12] tubbo: makes sense, you don't want to mutate old data unless explicitly saying so
[18:47:37] tubbo: Cache_Money: most people run a single rake task that they just keep up-to-date with data changes (not schema changes)
[18:47:48] tubbo: or, they make db/seeds.rb idempotent and keep running db:seeds
[18:48:22] Cache_Money: tubbo: since my dev box already had correct value for the new columns I just logged into the Prod box's rails console and updated the values that way. Do you see a problem with that?
[18:49:20] tubbo: Cache_Money: try not to do that if you can help it...you can't always roll back from prod changes. unless, of course, you remember to wrap your SQL queries in a transaction...
[18:49:23] Zadrel: hello there, i'm using jquery tablesorter and the js script is in ../layouts/appication.html.erb and i cant take it from there, ther's a table in specific that needs to have differente options for tablesorter. anione could help me? a tryed this already: https://gist.github.com/rmatuoka/1ba94ec84ce8d30d5811
[18:49:41] tubbo: Cache_Money: but even so, it's better to have a record that it was done. the only two people who know that you had to change data on prod to get this change to work was you and me.
[18:49:55] tubbo: anyway i got a meeting now, later guys
[18:49:59] tubbo: Zadrel: !repost
[18:50:07] tubbo: Zadrel: yeah don't repost if people don't hear you
[18:50:10] choke: has joined #RubyOnRails
[18:51:12] x1337807x: has joined #RubyOnRails
[18:51:56] arthurcolle: weaksauce: should this be able to work? https://gist.github.com/arthurcolle/31368cfc308d2d094017 It doesn't, but I read in the documentation that I can render partials in that way.
[18:52:00] Zadrel: 2 days ago i wans instructed otherwise
[18:52:09] Zadrel: sory about that
[18:52:50] JakFrist: has joined #RubyOnRails
[18:53:20] duderonomy: has joined #RubyOnRails
[18:53:57] zendrix: has joined #RubyOnRails
[18:54:42] pipework: Everything tubbo says is a repost.
[18:55:17] weaksauce: arthurcolle can you gist the log for a request?
[18:55:33] arthurcolle: Which request?
[18:55:47] weaksauce: whatever request is failing.
[18:56:06] arthurcolle: It doesn't reach the partial from the controller
[18:56:17] arthurcolle: It's about to do that puts @location but then never gets to the partial
[18:56:18] chipotle: has joined #RubyOnRails
[18:56:52] l0oky: Is it just me or is http://irssi.org down?
[18:56:59] arthurcolle: https://gist.github.com/arthurcolle/fc2f7238e6ef2c0adf0f
[18:57:21] smathy: Zadrel, you can re-post if it's been like an hour or more, and feel free to do a "anyone else got any ideas?" if your issue goes stale.
[18:58:22] sinkensabe: has joined #RubyOnRails
[18:58:38] arthurcolle: smathy: it says in the rules that the "anyone else got any ideas" isn't allowed iirc
[18:58:56] smathy: Zadrel, your syntax error is because you don't have the closing } for your function.
[19:00:32] Zadrel: smathy: thx, and sry again
[19:00:42] cmisenas: has joined #RubyOnRails
[19:01:02] smathy: arthurcolle, probably in the begging rule, it just means don't ask that immediately after you've asked your question.
[19:01:35] weaksauce: arthurcolle the more information you gist the better. logs, controllers, what the url you are using to get there, rake routes, etc...
[19:01:51] smathy: arthurcolle, if your question goes stale, like Zadrel's did the first time where rhizome asked about it and then no further response - then by all means you can re-ping the channel. Just better to do it assuming the above context, than re-posting the same question over again.
[19:02:02] yaymukund: has joined #RubyOnRails
[19:03:24] nonparfumee: has joined #RubyOnRails
[19:03:41] arthurcolle: smathy: thanks, appreciate the clarification.
[19:04:34] Anakat: has joined #RubyOnRails
[19:05:29] smathy: The rules here could really be summarized as: "pretend you're at a geek meeting in someone's lounge room"
[19:05:33] arthurcolle: weaksauce: is the usage of render 'pages/map2' ok in the first gist? https://gist.github.com/arthurcolle/31368cfc308d2d094017
[19:05:42] tannerj: has left #RubyOnRails: ()
[19:05:44] bronson_: has joined #RubyOnRails
[19:05:45] sinkensabe: has joined #RubyOnRails
[19:05:58] smathy: You wouldn't just repeat the same question over and over if you were in that situation.
[19:06:53] netzfisch: has joined #RubyOnRails
[19:07:10] arthurcolle: Or beg for help... well maybe if you're in a crunch. But then people would look at you funny anyways
[19:07:18] garrypolley: has joined #RubyOnRails
[19:08:56] krisquigley: has joined #RubyOnRails
[19:09:05] adavia: has joined #RubyOnRails
[19:09:59] smathy: Yeah exactly, same as here, we all look at people who beg funny.
[19:10:06] foucist: has joined #RubyOnRails
[19:10:23] adavia: how can i pass an object to javascript, maybe something like this $("#new_user").html("<%= escape_javascript(render('fields_new', form: f)) %>");
[19:10:39] smathy: ...and honestly, once someone starts begging people are LESS likely to help them
[19:11:40] smathy: adavia, have you read this? http://guides.rubyonrails.org/working_with_javascript_in_rails.html#server-side-concerns
[19:12:42] cnk: has joined #RubyOnRails
[19:14:08] adavia: smathy: basically not possible
[19:14:23] adavia: need to use json and render each error
[19:14:29] smathy: adavia, not possible for you to read the guide?
[19:14:41] adavia: im reading it
[19:14:52] Pazician: has joined #RubyOnRails
[19:15:21] baweaver: has joined #RubyOnRails
[19:15:24] diegoviola: has joined #RubyOnRails
[19:16:34] qwertme: has joined #RubyOnRails
[19:17:00] mary5030_: has joined #RubyOnRails
[19:17:30] adavia: is it the same render action: "new" than render "new"
[19:17:53] sinkensabe: has joined #RubyOnRails
[19:18:51] ndrei: has joined #RubyOnRails
[19:20:16] cac_: has joined #RubyOnRails
[19:20:19] arthurcolle: I have a dumb question. If you have a partial that has "puts something" where something is a variable, and you can see the values on your server logs as a result of the puts call, but your partial isn't actually rendering, why might that be happening?
[19:20:23] SteenJobs: has joined #RubyOnRails
[19:20:28] djbkd: has joined #RubyOnRails
[19:21:26] ciree: are you sure its not rendering?
[19:21:36] Depili: <% vs <%=
[19:21:52] arthurcolle: <%= render :partial => 'pages/map2', :locals => {:location => @location, :ip => @ip} %>
[19:22:26] arthurcolle: the locals are getting passed correctly, and I even included a <script>alert("Check")</script> in the partial to see if it was getting rendered and its not happening
[19:22:40] arthurcolle: but, my "puts x" in the partial are getting printed to the logs
[19:23:10] cmisenas: has joined #RubyOnRails
[19:24:01] lessless: has joined #RubyOnRails
[19:24:31] momomomomo: has joined #RubyOnRails
[19:27:26] weaksauce: add a `puts "=" * 50` and a puts "\n"*20 as the first thing in the page to make sure it's actually the right page rendering arthurcolle
[19:27:53] endorphine_: has joined #RubyOnRails
[19:27:56] choke: has joined #RubyOnRails
[19:28:24] arthurcolle: yup just did that
[19:28:32] arthurcolle: puts "CHECKPOINT"*100 haha
[19:28:33] eggoez: has joined #RubyOnRails
[19:28:41] kadoppe: has joined #RubyOnRails
[19:30:45] hazelux: has joined #RubyOnRails
[19:30:57] weaksauce: arthurcolle is this something that you could put on github? it's tough to diagnose things in a piecemeal fashion
[19:32:42] arthurcolle: yeah its on github but its a private repo, mind if I add you as a contributor? are you @weaksauce on gh?
[19:32:48] hazelux: I just managed to get sunspot search running for my app. Now, factory_girl is throwing an error of connection refused whenever I try to create a new user. Do I have to configure something?
[19:32:57] sinkensabe: has joined #RubyOnRails
[19:33:17] weaksauce: yeah arthurcolle
[19:34:18] pontiki: has joined #RubyOnRails
[19:34:35] whoisjake: has joined #RubyOnRails
[19:34:44] jenrzzz: has joined #RubyOnRails
[19:36:18] arthurcolle: weaksauce just pushed latest stuff
[19:37:35] sshuff: has joined #RubyOnRails
[19:37:44] mary5030: has joined #RubyOnRails
[19:38:28] Zadrel: anyone knows how do i find a given id of a table in a jquery's if statement?
[19:38:33] weaksauce: alright. i'll take a look arthurcolle
[19:39:14] ciree: Zadrel: what are you asking?
[19:39:18] arthurcolle: thanks very much weaksauce
[19:39:28] renews: has joined #RubyOnRails
[19:39:28] ciree: $('#tableId')?
[19:40:48] arooni-mobile: has joined #RubyOnRails
[19:41:09] smathy: adavia, yes, those two are the same (render vs render action:)
[19:41:26] adavia: cool thanks
[19:42:17] rhizome: what does it mean to find something in an if statement?
[19:42:43] sinkensabe: has joined #RubyOnRails
[19:43:14] commondream: has joined #RubyOnRails
[19:44:15] yaymukund: has joined #RubyOnRails
[19:45:04] yfeldblum: has joined #RubyOnRails
[19:45:26] leex: Hi, I got another active records question, I am trying to speed up all my queries, so what I have been doing for development purposes is this: Group.all.map{ |group| [group.id, group.members.ids] } which is slow because of the map, is there a way to get somthing like this working with AR to return this [[1, [14, 12, 1]], [2, [2, 7, 5]], [3, [8]]] where the first element of the inner array is the group id
[19:45:32] leex: followed by the ids of the members.
[19:45:41] asheinfeld: has joined #RubyOnRails
[19:45:54] simplyianm: has joined #RubyOnRails
[19:46:32] garrypolley: has joined #RubyOnRails
[19:47:18] ciree: leex, not exactly the answer your looking for, but you could speed that up with Group.includes(:members).all
[19:47:56] momomomomo: has joined #RubyOnRails
[19:48:17] SteenJobs: has joined #RubyOnRails
[19:49:55] platosha__: has joined #RubyOnRails
[19:52:03] Spami: has joined #RubyOnRails
[19:53:16] simplyianm: has joined #RubyOnRails
[19:53:18] jenrzzz: has joined #RubyOnRails
[19:54:54] leex: ciree: :)
[19:54:56] DigitallyBorn: has joined #RubyOnRails
[19:59:39] asheinfeld: has joined #RubyOnRails
[20:01:51] workmad3: has joined #RubyOnRails
[20:02:49] rhizome: also .select(:id)
[20:04:07] Zadrel: has joined #RubyOnRails
[20:04:20] snockerton: has joined #RubyOnRails
[20:04:32] Zadrel: can anyone tell me why this function is falling on else clause when the last line executes correctly? https://gist.github.com/rmatuoka/2d7215907ee0a09f4328
[20:04:43] [SaM]: has joined #RubyOnRails
[20:04:57] ProLoser: has joined #RubyOnRails
[20:05:33] moeabdol: has joined #RubyOnRails
[20:05:39] Zadrel: tried without the "#" from "#taglist" too and got the same
[20:06:09] michaeldeol: has joined #RubyOnRails
[20:06:47] rhizome: pretty sure you can just use: if $('table#taglist'); sort=...
[20:07:08] blackmesa: has joined #RubyOnRails
[20:07:36] Trefex: has joined #RubyOnRails
[20:07:47] willharrison: has joined #RubyOnRails
[20:07:54] gambl0re: has joined #RubyOnRails
[20:07:56] tsvenson|afk: has joined #RubyOnRails
[20:08:13] erichu: has joined #RubyOnRails
[20:08:23] Fire-Dragon-DoL: has joined #RubyOnRails
[20:08:58] endorphine_: has joined #RubyOnRails
[20:09:05] LBRapid: has joined #RubyOnRails
[20:09:09] ebryn: has joined #RubyOnRails
[20:09:12] edwinvdgraaf: has joined #RubyOnRails
[20:10:10] Zadrel: rhizome: haven't tryed that yet, brb :)
[20:10:26] n3b: has joined #RubyOnRails
[20:11:40] simplyianm: has joined #RubyOnRails
[20:12:00] toretore: has joined #RubyOnRails
[20:12:06] Zadrel: got unexpected identifier in $("table#taglist")
[20:12:44] sinkensabe: has joined #RubyOnRails
[20:12:46] zekriad: has joined #RubyOnRails
[20:14:58] smathy: Zadrel, wouldn't work anyway, if it doesn't match then $('table#taglist') will still return [] which in JS is still true /cc rhizome
[20:15:30] djbkd: has joined #RubyOnRails
[20:15:45] i: has joined #RubyOnRails
[20:15:55] djbkd: has joined #RubyOnRails
[20:16:03] i: has left #RubyOnRails: ()
[20:16:16] x-light: has joined #RubyOnRails
[20:16:21] smathy: Zadrel, you definitely want it without the "#" though, ie. if( $('table').attr('id') == 'taglist' )
[20:16:31] grp066: has joined #RubyOnRails
[20:16:36] dopie: has joined #RubyOnRails
[20:16:42] smathy: Zadrel, BUT, are you sure there's no other table?
[20:16:54] smathy: It'll always be false unless your taglist table is the first table.
[20:17:12] Pupeno: has joined #RubyOnRails
[20:17:38] smathy: Zadrel, you're better off doing: if( $('table#taglist').length > 0 )
[20:17:39] rhizome: fine. $('table#taglist').length() > 0
[20:18:04] smathy: Almost :) Just `.length` (no parens) it's a property.
[20:18:20] rhizome: javascript is lame
[20:18:27] sdwrage: has joined #RubyOnRails
[20:18:28] dopie: question in rails 3.2 I'm trying to access a file that is in vendor/assets/javascripts/libphonenumber/utils.js
[20:18:36] dopie: how do i call that asset
[20:18:38] workmad3: has joined #RubyOnRails
[20:18:43] dopie: https://gist.github.com/staycreativedesign/7e8c5f848cad98505429
[20:19:38] nightsh: has joined #RubyOnRails
[20:20:48] garrypolley: has joined #RubyOnRails
[20:21:18] siddart: has joined #RubyOnRails
[20:21:37] siaw23: has joined #RubyOnRails
[20:22:03] simplyianm: has joined #RubyOnRails
[20:22:41] choke: has joined #RubyOnRails
[20:23:21] meoblast001: has joined #RubyOnRails
[20:23:26] commondream: has joined #RubyOnRails
[20:24:45] zendrix: has joined #RubyOnRails
[20:25:05] sinkensabe: has joined #RubyOnRails
[20:25:14] bronson_: has joined #RubyOnRails
[20:25:46] griffindy: has joined #RubyOnRails
[20:26:33] bendangelo: has joined #RubyOnRails
[20:28:15] Zadrel: smathy: does number is not a function is related to the "0"?
[20:30:48] bricker: has joined #RubyOnRails
[20:31:25] simplyianm: has joined #RubyOnRails
[20:31:34] x1337807x: has joined #RubyOnRails
[20:32:36] siaw23: has left #RubyOnRails: ()
[20:33:23] alho: has joined #RubyOnRails
[20:33:42] renews: has joined #RubyOnRails
[20:33:47] nvll: has left #RubyOnRails: ("WeeChat 1.1.1")
[20:34:09] uris: has joined #RubyOnRails
[20:34:38] ProLoser_: has joined #RubyOnRails
[20:34:42] siaw23: has joined #RubyOnRails
[20:34:48] sinkensabe: has joined #RubyOnRails
[20:35:59] ratmav: has joined #RubyOnRails
[20:36:07] gaussblurinc1: has joined #RubyOnRails
[20:36:27] ratmav: i have a controller that is calling a model method and update some records. pretty standard.
[20:37:01] ratmav: i'm trying to test the action with minitest, but the test fails. when i check the record
[20:37:25] Scriptonaut: hey guys, I defined: def sender=(person) in a class I have. It's not triggered when I mass assign though: Message.new person: some_dude
[20:37:26] ratmav: is there something i missing with state?
[20:37:50] ratmav: the model method tests pass
[20:38:41] bricker: ratmav: please show your test and the failure
[20:38:42] ratmav: action just grabs parameters from params, calls the model method, renders nothing
[20:38:49] bricker: ratmav: and any relevant controller or model code
[20:39:15] bricker: Scriptonaut: "sender" and "person" are two different words
[20:40:48] givanse_: has joined #RubyOnRails
[20:41:17] ratmav: bricker: https://gist.github.com/ratmav/380b2ed4112341ef566a
[20:42:14] bricker: ratmav: please show your controller code and the failure
[20:42:47] simplyianm: has joined #RubyOnRails
[20:43:10] Zadrel: just for disengage of consciousness if ($ ( 'table' ) . attr ( 'id' ) == ' taglist ' ) doesn't find any "<table id="taglist"> it will return false, right
[20:43:18] workmad3: has joined #RubyOnRails
[20:44:21] ratmav: updated gist
[20:44:24] ratmav: will copy in failure
[20:44:37] victorkohl: has joined #RubyOnRails
[20:44:51] bricker: Zadrel: yes but that's not a very efficient way to check that
[20:45:50] Zadrel: bricker: if i use if ($("table#taglist").length() > 0) it says to me that "number is not a function"
[20:46:23] ratmav: bricker: updated. my ruby version is old. already on that.
[20:46:27] bricker: ratmav: a few problems: params[:resolutions].alert_ids shoudl be params[:resolution][:alert_ids], same with [:message]
[20:46:39] bricker: ratmav: but more likely it's not authorizing correctly
[20:46:42] bricker: otherwise you'd get an error
[20:46:45] jkamenik: has joined #RubyOnRails
[20:46:51] bricker: Zadrel: length() isn't a function, it's an attribute
[20:46:56] bricker: #('table#taglist').lenght
[20:47:02] michael_mbp: has joined #RubyOnRails
[20:47:06] Zadrel: bricker: thx
[20:47:07] rubyonrailed: has joined #RubyOnRails
[20:48:36] ratmav: bricker: i ran into something with devise, so i added a block to my test_helper to add devise auth helpers
[20:48:46] ratmav: i'll correct that syntax
[20:49:01] ratmav: been doing lots of js lately
[20:49:03] bricker: ratmav: try commenting out the authorize part in your controller and see if the test passes (after you fix the syntax)
[20:49:07] momomomomo: has joined #RubyOnRails
[20:51:05] rubyonra_: has joined #RubyOnRails
[20:51:08] simplyianm: has joined #RubyOnRails
[20:53:05] ratmav: bricker: i think it is auth related
[20:53:05] ivanskie: has joined #RubyOnRails
[20:53:10] jenrzzz: has joined #RubyOnRails
[20:53:13] bricker: I think so too
[20:53:16] bricker: it usually is
[20:53:17] ratmav: removing that authorize call got some breakage
[20:53:20] fcp14: has joined #RubyOnRails
[20:53:27] ratmav: current_user.id blows up
[20:53:42] garrypolley: has joined #RubyOnRails
[20:54:24] choke: has joined #RubyOnRails
[20:54:37] simplyianm: has joined #RubyOnRails
[20:54:40] ratmav: bricker: i updated the gist. at the head of the file, i added the block i put in my test helper to try and get devise to play nice
[20:54:51] ratmav: is there something else i should be doing here?
[20:55:00] DoctorMonocular: has joined #RubyOnRails
[20:55:01] ruv: I am using a one to many association with nested params. I dont want new entries to be added to the db everytime this is run. Would the best way to just do an update or noting at all be a callback?
[20:55:04] siaw23: has joined #RubyOnRails
[20:55:41] ratmav: bricker: UserSession.create(user)?
[20:55:54] pontiki: has joined #RubyOnRails
[20:57:03] Zadrel: bricker: worked :) thx
[20:57:57] krisquigley: has joined #RubyOnRails
[21:00:14] simplyia_: has joined #RubyOnRails
[21:01:15] hazelux_: has joined #RubyOnRails
[21:03:12] jcaho: has joined #RubyOnRails
[21:03:25] yfeldblum: has joined #RubyOnRails
[21:03:27] beingjohnm: has joined #RubyOnRails
[21:03:44] beingjohnm: has joined #RubyOnRails
[21:03:50] ratmav: bricker: thanks for your help
[21:05:23] dented42_: has joined #RubyOnRails
[21:06:21] Coldblackice: has joined #RubyOnRails
[21:07:12] x1337807x: has joined #RubyOnRails
[21:08:12] centrx: has joined #RubyOnRails
[21:09:03] baweaver: has joined #RubyOnRails
[21:09:28] dented42: has joined #RubyOnRails
[21:11:03] FCser: has joined #RubyOnRails
[21:11:32] annlewis: has joined #RubyOnRails
[21:12:13] Peg-leg: has joined #RubyOnRails
[21:13:01] snockerton: has joined #RubyOnRails
[21:14:36] dstarh: when a certain condition is met in one of my tests i need to stop the rest of he tests from running. Is there an easy way to cause the test to stop all together?
[21:14:36] moeabdol: has joined #RubyOnRails
[21:14:49] ohhmaar: so i created a model in rails using the 'rails generate model' command
[21:14:51] momomomomo: has joined #RubyOnRails
[21:14:58] ohhmaar: how can i add more attributes to my model?
[21:15:18] zeknox: ohhmaar: you can create a seperate migration to add an attribute, or attributes to the model
[21:15:48] dopie: question in rails 3.2 I'm trying to access a file that is in vendor/assets/javascripts/libphonenumber/utils.js
[21:15:54] dopie: how do i call that asset
[21:15:55] zeknox: ohhmaar: otherwise you need to run rake db:rollback STEP=1 or something to rollback your db, then modify the model attributes in the existing migration, and re-migrate the db
[21:15:58] dopie: https://gist.github.com/staycreativedesign/7e8c5f848cad98505429
[21:16:09] bin_005: has joined #RubyOnRails
[21:16:43] ohhmaar: i can't go into the model.rb file and programatically add my attribute?
[21:17:24] zeknox: ohhmaar: negative, you need to modify migrations, and then update the db accordingly... ideally you create new migrations to add in the attribute to ensure agile and not breaking stuff
[21:17:42] ohhmaar: so run another rails generate model command?
[21:17:51] zeknox: ohhmaar: either new migration, or rollback db, and modify existing migration, and migrate db again
[21:17:58] dented42: has joined #RubyOnRails
[21:18:12] zeknox: ohhmaar: rails g migration add_attribute_to_model attribute:string
[21:18:34] dstarh: ohhmaar models are just reflections of the whats in the table, want new attributes to your model you need to add new columns to the tble
[21:18:47] dstarh: s/tble/table
[21:20:05] nahtnam: has joined #RubyOnRails
[21:20:55] nahtnam: Hey! I have a slight problem. I have a model called Server, and a gem I am using has a module name Server. The gem is interfering with my app controllers, but I really need the gem. Is there any way around this, short of renaming my model?
[21:21:20] dstarh: dopie var someAssetPath = "<%= asset_path('foo/bar.js') %>";
[21:21:53] zeknox: dstarh: you can perofrm erb right in the js files?
[21:21:56] ProLoser: has joined #RubyOnRails
[21:22:02] dstarh: you really want to use the asset_path helper to get it especially in production
[21:22:15] dstarh: no, that needs to go in the page somewhere before your js
[21:22:30] dstarh: in production that will be a908a7s0d9f8as709a8dfsa.js
[21:22:38] dstarh: you won't know the name
[21:22:39] zeknox: dstarh: like in the html view as a data-source attribute perhaps?
[21:23:10] ruv: I am using a one to many association with nested params. I dont want new entries to be added to the db everytime this is run. Would the best way to just do an update or noting at all be a callback?
[21:23:21] dstarh: perhaps, or as a namespaced global variable
[21:24:30] dstarh: ruv "every time this is run", what is run?
[21:24:43] ruv: sorry a put
[21:25:04] dstarh: still going to need more info than that
[21:25:38] centrx: has joined #RubyOnRails
[21:25:55] ChargedLight: has joined #RubyOnRails
[21:26:16] ohhmaar: zeknox do i run rake db:migrate after that?
[21:26:28] GPrime: has joined #RubyOnRails
[21:26:30] ruv: ok, so I am making an api, right now i have a has_many :networks so everytime i do a put it adds new entries to the networks tables with a foreign key. I want to do an update or skip instead of an insert everytime.
[21:26:39] zeknox: ohhmaar: run rake db:migrate:status to see where your at
[21:26:50] zeknox: ohhmaar: then if any are down you can run rake db:migrate to bring them all up
[21:27:44] renews: has joined #RubyOnRails
[21:27:57] Encapsulation: has joined #RubyOnRails
[21:28:28] GPrime: How does do you make a helper function that can be called on an instance of a Class (in viewer)?
[21:28:38] GPrime: How do you*
[21:28:49] ProLoser: has joined #RubyOnRails
[21:30:02] sinkensabe: has joined #RubyOnRails
[21:30:16] ogpastal_: has joined #RubyOnRails
[21:31:15] yaymukun1: has joined #RubyOnRails
[21:32:29] ohhmaar: zeknox http://cl.ly/bcLm?t=1434058327214
[21:32:55] ohhmaar: what did i do wrong
[21:33:27] zeknox: ohhmaar: ok, so the problem is that you litterally typed in add_attribute_to_model when it should be something like add_address_to_user or whatever the model name is
[21:33:56] zeknox: ohhmaar: this helps create the actual migration, but ultimately you should double check the migration file in db/* to see the details of what its trying to define for your db schema
[21:34:23] zeknox: ohhmaar: all the migration command does is create a migration file located in db/*
[21:34:57] ohhmaar: ok this is kinda confusing for some reason but let me try doing it properly
[21:35:05] sinkensa_: has joined #RubyOnRails
[21:35:09] hahuang61: has joined #RubyOnRails
[21:35:25] zeknox: ohhmaar: you probably want to navigate to db/ folder, grab the last migration file you created, delete it and run a new migraiton command properly
[21:35:37] centrx: has joined #RubyOnRails
[21:35:41] ohhmaar: ok so the model name can be anything?
[21:35:58] zeknox: ohhmaar: model name should be whatever model your trying to add the attribute to
[21:36:40] qwertme: has joined #RubyOnRails
[21:40:08] baweaver: has joined #RubyOnRails
[21:40:40] philcrissman: ohhmaar: the filename doesn't matter so much, it's the :models symbol in the migration. That needs to be the name of the table you're adding the column for.
[21:40:47] dopie: hmmm i got question concerning git rofl :) if i do a git -A and would like to undo that how would i do that
[21:41:34] pipework: dopie: A git what -A?
[21:41:41] pipework: git add -A?
[21:41:54] nonparfumee: has joined #RubyOnRails
[21:42:07] creature: has joined #RubyOnRails
[21:42:16] nfk: has joined #RubyOnRails
[21:42:35] dopie: how can i undo the -A
[21:43:15] philcrissman: dopie: if you type `git status` what do you see?
[21:43:25] dopie: a plethora of files
[21:43:45] philcrissman: Changes to be committed:
[21:43:45] philcrissman: (use "git reset HEAD <file>..." to unstage)
[21:43:47] pipework: dopie: git reset. Don't pass hard or you'll lose it.
[21:43:48] philcrissman: Preceded by the words:
[21:43:51] pipework: philcrissman: head is implicit
[21:44:08] ohhmaar: zeknox why did it do this, http://cl.ly/bcAd
[21:44:15] philcrissman: I'm just saying, git might be telling what needs to be done to unstage files already
[21:44:59] emilkarl: has joined #RubyOnRails
[21:45:02] philcrissman: pipework: but yes, git reset if there are a lot and all of them need unstaging.
[21:45:05] nobitanobi: has joined #RubyOnRails
[21:45:20] pipework: philcrissman: you can pass a path to it...
[21:45:25] pipework: Or multiple
[21:46:02] zeknox: ohhmaar: because it uses the add_attribute_to_model to auto populate all that stuff for you
[21:46:18] philcrissman: pipework: nice. I usually don't need to think about that; I guess mostly my commits are smaller, I usually only find myself unstaging a few files; or, if I've already committed, git reset --soft or --hard, depending...
[21:46:22] zeknox: ohhmaar: its a rails convention that automatically assumes what attribute and model based on the name
[21:46:24] ohhmaar: yea but what is :users
[21:46:38] Trefex: has joined #RubyOnRails
[21:46:42] zeknox: ohhmaar: users is the name of the model
[21:46:47] philcrissman: ohhmaar: .... do you have a User model? What are you using to sort of guide you along, here?
[21:46:52] pipework: philcrissman: soft is implicit, so is head.
[21:46:55] pipework: just pass paths.
[21:46:56] zeknox: ohhmaar: so that migration is trying to add an address attibute to the user model
[21:47:21] ohhmaar: ok and how do i refer to this new attribute that i made
[21:47:29] philcrissman: pipework: d'oh. I should learn that. I've gotten into the habit of being explicit about everything with git. Mostly to make sure it's going to do exactly what I expect.
[21:47:55] pipework: philcrissman: `git reset -- path/here/bruh`
[21:48:36] siaw23: has joined #RubyOnRails
[21:48:51] centrx: has joined #RubyOnRails
[21:49:35] siaw23: has left #RubyOnRails: ()
[21:49:45] ohhmaar: here's where im stuck guys. i created a model named patient and gave it a name and age attribute
[21:50:11] zeknox: ohhmaar: rails g migration add_address_to_patient
[21:50:11] ohhmaar: i was able to call it and store data there, perfect.
[21:50:26] ohhmaar: ok let me try that
[21:50:42] nizmow: has joined #RubyOnRails
[21:50:53] siaw23: has joined #RubyOnRails
[21:51:06] michael_mbp: how you been jlee
[21:51:13] l0oky: has joined #RubyOnRails
[21:51:13] ohhmaar: zeknox before i try that, it's giving me a undefined method 'address'
[21:51:21] pipework: michael_mbp: hello.
[21:51:24] ohhmaar: it's probably cause i'm not calling it properly?
[21:51:41] zeknox: ohhmaar: rails g migration add_address_to_patient address:string
[21:53:29] ohhmaar: ok this is super weird but it works... i guess i need more practice
[21:53:55] zeknox: ohhmaar: http://edgeguides.rubyonrails.org/active_record_migrations.html
[21:54:12] wethu: has joined #RubyOnRails
[21:54:18] blackmesa: has joined #RubyOnRails
[21:54:51] siaw23: hi, i???m struggling with a CSS framework called Gumby. i created a button but only the text of the button shows. the CSS around the button signifying it???s a button doesn???t show
[21:54:54] siaw23: what could be wrong?
[21:55:39] siaw23: i created a thread on stackoverflow here for more details http://stackoverflow.com/questions/30787514/css-framework-wont-work?noredirect=1#comment49631729_30787514
[21:55:45] Pupeno_: has joined #RubyOnRails
[21:55:46] rhizome: a lot of things, but i would look at your usage of the framework
[21:56:36] siaw23: i did follow step by step the instructions on their github https://github.com/jorgecoca/gumby-framework
[21:57:13] FernandoBasso: has joined #RubyOnRails
[21:58:04] bin_005_q: has joined #RubyOnRails
[21:58:14] siaw23: it???s driving me nuts and i don???t know what to do now
[21:58:25] rhizome: sorry but that was built over like a month two years ago and hasn't been touched since
[21:58:27] baweaver: has joined #RubyOnRails
[21:59:05] rhizome: use something that's more than someone's class project
[21:59:46] hing-sf: has joined #RubyOnRails
[22:00:01] siaw23: ah ok. thanks for the rhizome :D. apart from bootstrap twitter what would you recommend?
[22:00:44] freezevee: has joined #RubyOnRails
[22:00:51] DogHackit: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[22:01:03] pothibo: has joined #RubyOnRails
[22:01:36] freezevee: anyone with experience in middleman ?
[22:02:07] freezevee: I have middleman-deployed my site but the link username.github.io doesn't work
[22:02:23] nobitanobi: has joined #RubyOnRails
[22:02:23] freezevee: says page not found
[22:02:25] edwinrozario: has joined #RubyOnRails
[22:04:06] x1337807x: has joined #RubyOnRails
[22:06:10] mary5030_: has joined #RubyOnRails
[22:06:10] momomomomo_: has joined #RubyOnRails
[22:06:24] creature: has joined #RubyOnRails
[22:07:22] edwinvdg_: has joined #RubyOnRails
[22:08:54] Pupeno: has joined #RubyOnRails
[22:11:11] shinnya: has joined #RubyOnRails
[22:11:46] bronson: has joined #RubyOnRails
[22:12:22] yaymukun1: has left #RubyOnRails: ()
[22:17:17] jenrzzz: has joined #RubyOnRails
[22:17:24] yfeldblum: has joined #RubyOnRails
[22:17:42] Axy: has joined #RubyOnRails
[22:17:42] Axy: has joined #RubyOnRails
[22:18:06] symbol: has joined #RubyOnRails
[22:18:15] Honeycomb: has joined #RubyOnRails
[22:18:53] JoshL: has joined #RubyOnRails
[22:19:39] zorak8: has joined #RubyOnRails
[22:21:55] renews: has joined #RubyOnRails
[22:22:46] FCser: has joined #RubyOnRails
[22:23:12] ogpastaling: has joined #RubyOnRails
[22:24:24] passionincode: has joined #RubyOnRails
[22:26:13] pothibo: has joined #RubyOnRails
[22:26:28] creature: has joined #RubyOnRails
[22:27:02] jscheel: has joined #RubyOnRails
[22:28:34] yfeldblum: has joined #RubyOnRails
[22:30:39] yfeldblum: has joined #RubyOnRails
[22:31:27] commondream: has joined #RubyOnRails
[22:31:30] armyriad: has joined #RubyOnRails
[22:32:09] endorphine_: has joined #RubyOnRails
[22:32:50] x-light: has joined #RubyOnRails
[22:37:18] momomomomo: has joined #RubyOnRails
[22:43:05] qwertme: has joined #RubyOnRails
[22:43:32] pothibo: has joined #RubyOnRails
[22:44:46] GnuYawk: has joined #RubyOnRails
[22:45:31] ivanskie: has joined #RubyOnRails
[22:45:31] Dreamer3: has joined #RubyOnRails
[22:46:44] michaeldeol: has joined #RubyOnRails
[22:46:57] krisquigley: has joined #RubyOnRails
[22:47:34] arthurcolle: has joined #RubyOnRails
[22:48:03] fgo: has joined #RubyOnRails
[22:49:27] bmurt: has joined #RubyOnRails
[22:50:08] hakunin: has joined #RubyOnRails
[22:51:49] starfox_sf: has joined #RubyOnRails
[22:51:56] Synthead: If I do MyModel.new(...), is that object a model? Or is MyModel the model?
[22:52:14] dented42: has joined #RubyOnRails
[22:52:46] pipework: Synthead: One's probably a class, which is the model class, the instance is an instance of the model class and is the 'model object'.
[22:52:54] rubyonrailed: has joined #RubyOnRails
[22:54:40] Ropeney: has joined #RubyOnRails
[22:55:03] diegoviola: has joined #RubyOnRails
[22:56:19] Radar: GOOD MORNING
[22:57:09] Synthead: pipework: thanks! just making sure my commit messages make sense :)
[22:57:28] rhizome: Synthead: it's a little counterintuitive, but the object is the model, MyModel is the class from which the models derive, like a prototype in javascript iiuc
[22:58:24] Synthead: rhizome: right on, yeah, it seems a little ambiguous
[22:59:05] blackhuey: has joined #RubyOnRails
[23:02:37] jkamenik: has joined #RubyOnRails
[23:02:48] nonparfumee: has joined #RubyOnRails
[23:07:18] JoshL: has joined #RubyOnRails
[23:08:47] Pumukel: has joined #RubyOnRails
[23:10:10] bricker1: has joined #RubyOnRails
[23:12:47] willharrison: has joined #RubyOnRails
[23:15:55] choke: has joined #RubyOnRails
[23:15:57] doodlehaus: has joined #RubyOnRails
[23:16:06] renews: has joined #RubyOnRails
[23:17:31] jenrzzz: has joined #RubyOnRails
[23:18:51] momomomomo: has joined #RubyOnRails
[23:19:04] choke: has joined #RubyOnRails
[23:19:38] asheinfeld: has joined #RubyOnRails
[23:19:55] SteenJobs: has joined #RubyOnRails
[23:21:45] SteenJobs: has joined #RubyOnRails
[23:25:02] choke: has joined #RubyOnRails
[23:26:30] ivanskie: has joined #RubyOnRails
[23:26:33] hahuang65: has joined #RubyOnRails
[23:27:47] justintv90: has joined #RubyOnRails
[23:28:00] chintanparikh: has joined #RubyOnRails
[23:28:42] FCser: has joined #RubyOnRails
[23:28:58] chintanparikh: I have a superclass called Card with a bunch of children (example here: https://gist.github.com/chintanparikh/3663b1905347a01bdb93). Every child is going to have that begin/rescue/end block in process_data, is there a way I can make it more DRY?
[23:29:19] chintanparikh: Ideally by inheriting the begin/rescue block from Card
[23:33:38] asheinfeld: has joined #RubyOnRails
[23:33:45] nobitanobi: has joined #RubyOnRails
[23:34:33] ProLoser: has joined #RubyOnRails
[23:34:53] nobitanobi: has joined #RubyOnRails
[23:35:55] Xiti: has joined #RubyOnRails
[23:38:09] white_magic: has joined #RubyOnRails
[23:38:11] white_magic: I just installed Ruby 2.2 on my windows machine and I'm trying to install Rails from commandline (ruby.exe).. but whatever I enter in the Ruby prompt, it just keeps asking for more input. How can I get it to evaluate the input for once?
[23:38:45] x1337807x: has joined #RubyOnRails
[23:39:26] x1337807x: has joined #RubyOnRails
[23:41:21] x1337807x: has joined #RubyOnRails
[23:41:29] LicHacker: has joined #RubyOnRails
[23:41:30] weaksauce: ruby is an interpreter. you want to use irb for interactive mode
[23:41:47] chipotle: has joined #RubyOnRails
[23:45:31] fgo: has joined #RubyOnRails
[23:46:42] Seich: white_magic: What you want is to make sure gem is in your PATH
[23:46:53] Seich: white_magic: and then use gem install rails
[23:47:00] Seich: white_magic: from your command prompt
[23:47:38] white_magic: ok i'm stupid.. i'm supposed to run "gem(.EXE) install rails"
[23:47:41] Seich: white_magic ruby.exe is only the interpreter so that's what you'd use to run your ruby scripts.
[23:48:17] workmad3: has joined #RubyOnRails
[23:50:14] drale2k_: has joined #RubyOnRails
[23:50:18] ProLoser: has joined #RubyOnRails
[23:50:36] chipotle: has joined #RubyOnRails
[23:50:43] Seich: white_magic: How did it go? Installing?
[23:51:17] white_magic: it's installing the documentation right now and that seems to be the slowest part of the installation
[23:51:58] Seich: oh, yeah that usually take a while and it's useless 99% of the time.
[23:52:27] Seich: You use ???no-ri ???no-rdoc flags to prevent that when installing gems.
[23:52:45] choke: has joined #RubyOnRails
[23:54:02] commondream: has joined #RubyOnRails
[23:55:04] dstarh: has joined #RubyOnRails
[23:55:16] nobitanobi: has joined #RubyOnRails
[23:56:50] quazimodo: has joined #RubyOnRails
[23:57:44] confact: has joined #RubyOnRails