« Back to channel list

#RubyOnRails - 02 June 2017

« Back 1 day Forward 1 day »
[00:12:19] rakm: has joined #RubyOnRails
[00:14:50] Aherin: has joined #RubyOnRails
[00:44:48] Radar: tfitts: What is the exact error you're seeing?
[00:44:56] Radar: tfitts: And what are the versions of the gems from that repo that you're using?
[00:46:06] sevenseacat: has joined #RubyOnRails
[00:51:25] urkle: has joined #RubyOnRails
[00:51:48] quazimodo: has joined #RubyOnRails
[00:55:20] apparition: has joined #RubyOnRails
[00:57:24] mostlybadfly: has joined #RubyOnRails
[01:05:11] juggler: has joined #RubyOnRails
[01:15:07] gusrub: has joined #RubyOnRails
[01:27:49] SilentNinja1: has joined #RubyOnRails
[01:31:01] SilentNinja1: has joined #RubyOnRails
[01:31:26] SilentNinja1: Hi is there a one line to convert Date to UTC, maybe DateTime.current.utc ?
[01:40:36] baweaver: SilentNinja1: did you ask that same question earlier in #ruby? Pretty sure you got answers there.
[01:41:30] baweaver: http://logs.ryanbigg.com/ruby?date=2017-06-02#6292267 - that specifically
[01:53:01] urkle: has joined #RubyOnRails
[02:00:28] irishfromua: has joined #RubyOnRails
[02:21:04] Jameser: has joined #RubyOnRails
[02:24:25] bkulbida: has joined #RubyOnRails
[02:28:08] bkulbida: has joined #RubyOnRails
[02:30:33] Technodrome: has joined #RubyOnRails
[02:31:04] urkle: has joined #RubyOnRails
[02:44:51] nickjj_: has joined #RubyOnRails
[02:46:18] luckyruby: has joined #RubyOnRails
[02:47:39] workmad3: has joined #RubyOnRails
[02:48:25] luckyruby: has joined #RubyOnRails
[03:00:22] sandstrom: has joined #RubyOnRails
[03:15:46] xall: has joined #RubyOnRails
[03:50:31] luckyruby: has joined #RubyOnRails
[03:58:43] Kneecaps: has joined #RubyOnRails
[04:01:10] username: has joined #RubyOnRails
[04:03:28] Technodrome: has joined #RubyOnRails
[04:04:16] cerulean: how do i do a custom validator for carrierwave?
[04:08:42] kies: has joined #RubyOnRails
[04:15:49] rakm: has joined #RubyOnRails
[04:22:15] ascarter: has joined #RubyOnRails
[04:22:43] irishfromua: has joined #RubyOnRails
[04:29:06] Jameser: has joined #RubyOnRails
[04:29:37] xx00__: has joined #RubyOnRails
[04:32:32] ascarter: has joined #RubyOnRails
[04:39:41] patarr: has joined #RubyOnRails
[04:51:26] nahtnam: has joined #RubyOnRails
[04:57:24] xx00__: has joined #RubyOnRails
[05:15:33] Cache_Money: has joined #RubyOnRails
[05:18:30] rgr: has joined #RubyOnRails
[05:20:01] Kneecaps: has left #RubyOnRails: ()
[05:24:39] username: has joined #RubyOnRails
[05:42:40] Jameser: has joined #RubyOnRails
[05:46:42] spectra: has joined #RubyOnRails
[05:50:54] mtkd: has joined #RubyOnRails
[05:51:58] luckyruby: has joined #RubyOnRails
[05:56:12] agent_white: has joined #RubyOnRails
[06:07:26] mtkd: has joined #RubyOnRails
[06:10:42] spectra: has joined #RubyOnRails
[06:12:28] quazimodo: has joined #RubyOnRails
[06:14:11] ^mtkd: has joined #RubyOnRails
[06:20:00] roshanavand: has joined #RubyOnRails
[06:23:45] srinidhi: has joined #RubyOnRails
[06:40:41] patarr: has joined #RubyOnRails
[06:45:52] conta: has joined #RubyOnRails
[06:46:19] kies: has joined #RubyOnRails
[06:58:35] ascarter: has joined #RubyOnRails
[07:02:07] AzaToth: has joined #RubyOnRails
[07:06:20] workmad3_: has joined #RubyOnRails
[07:08:26] normie1: has joined #RubyOnRails
[07:12:55] xall: has joined #RubyOnRails
[07:46:45] roshanavand1: has joined #RubyOnRails
[07:51:08] KeyJoo: has joined #RubyOnRails
[07:53:29] luckyruby: has joined #RubyOnRails
[08:02:49] sandstrom: has joined #RubyOnRails
[08:08:31] mikecmpbll: has joined #RubyOnRails
[08:27:28] conta: rails 4.2.0: why doing render head: 200 gives me ActionView::MissingTemplate ?
[08:32:06] brent__: has joined #RubyOnRails
[08:32:14] defsdoor: has joined #RubyOnRails
[08:33:59] Cork: conta: you most likely want "head :ok" not render head: :ok
[08:34:14] Cork: and i think render always sends a body
[08:35:18] conta: Cork: thanks, you are right
[08:37:01] dionysus69: has joined #RubyOnRails
[08:41:31] patarr: has joined #RubyOnRails
[08:43:44] roshanavand: has joined #RubyOnRails
[08:49:36] jane_booty_doe: has joined #RubyOnRails
[08:55:09] luckyruby: has joined #RubyOnRails
[08:56:58] mahloun: has joined #RubyOnRails
[09:05:44] lxsameer: has joined #RubyOnRails
[09:08:32] rgr: has joined #RubyOnRails
[09:10:11] liquid-silence: has joined #RubyOnRails
[09:12:51] Cork: anyone know how to get bundler 1.15 accepting system wide github gems?
[09:13:34] Cork: when i run rails as a different user it keeps requiring that i run bundle install first
[09:17:17] Fernando-Basso: has joined #RubyOnRails
[09:19:34] marr: has joined #RubyOnRails
[09:34:50] dionysus69: ok, here I go starting up on my big project. first question, i have is that I want to use phone number instead of email, in devise. do I just rename db field from :email to :tel? what else do I might need? I also removed validatable devise module
[09:35:34] mikecmpbll: dionysus69 : maybe have a go and find out ;)
[09:35:49] dionysus69: I will be keeping validatable module, but I won't be sending email but sending sms with a code
[09:36:08] dionysus69: haha I have to ))
[09:36:09] urkle: has joined #RubyOnRails
[09:40:05] ar1a_: has joined #RubyOnRails
[09:40:56] dminuoso: See this is why I think you are Russian, dionysus69.
[09:41:28] dionysus69: no I am Georgian, problem solved
[09:41:36] dminuoso: Close enough.
[09:41:39] dionysus69: Russia is occupying third of my country
[09:41:40] gil_: has joined #RubyOnRails
[09:41:53] srinidhi: has joined #RubyOnRails
[09:41:56] dminuoso: dionysus69: I just found that in particular Russians seem to use the "))" smiley
[09:41:57] dionysus69: lol but I don't why would you think that :P
[09:42:18] dionysus69: I haven't noticed such pattern, I have no contact with russians whatsoever
[09:42:22] dminuoso: dionysus69: And mostly that seems to be a pretty good indicator.
[09:42:35] dionysus69: especially online, I try avoid rusnet
[09:49:50] roshanavand: has joined #RubyOnRails
[09:52:10] urkle: has joined #RubyOnRails
[10:02:58] ferr1: has joined #RubyOnRails
[10:14:21] elomatreb: has joined #RubyOnRails
[10:17:12] urkle: has joined #RubyOnRails
[10:20:24] psylone: has joined #RubyOnRails
[10:20:26] dionysus69: how do I modify what devise modules do at least?
[10:23:54] psylone: has joined #RubyOnRails
[10:33:43] luckyruby: has joined #RubyOnRails
[10:39:25] psylone: has joined #RubyOnRails
[10:41:12] psylone: has joined #RubyOnRails
[10:42:24] patarr: has joined #RubyOnRails
[10:46:26] xall: has joined #RubyOnRails
[10:46:39] dminuoso: dionysus69: Add your own strategy.
[10:51:00] psylone: has joined #RubyOnRails
[10:51:39] psylone: has left #RubyOnRails: ()
[10:54:55] psylone: has joined #RubyOnRails
[11:00:53] brent__: has joined #RubyOnRails
[11:02:48] psylone: has joined #RubyOnRails
[11:03:05] patarr: has joined #RubyOnRails
[11:04:58] psylone: has joined #RubyOnRails
[11:08:56] psylone: has joined #RubyOnRails
[11:10:08] Ergo: has joined #RubyOnRails
[11:10:53] psylone: has left #RubyOnRails: ()
[11:11:29] psylone: has joined #RubyOnRails
[11:12:20] arBmind: has joined #RubyOnRails
[11:14:16] psylone: has joined #RubyOnRails
[11:16:40] psylone: has left #RubyOnRails: ()
[11:16:45] bhams: has joined #RubyOnRails
[11:17:04] psylone: has joined #RubyOnRails
[11:19:42] bhams: hi folks, how do i get this div_for line to embed the id of the objects i'm iterating through?
[11:19:43] bhams: <%= div_for q.answers, data: {id: q.answers.id} do |ans| %>
[11:20:39] bhams: right now q.answers.ids works but q.answers.id does not. is there a work around or will i have to write a loop that generates the div id tags manually?
[11:21:22] ar1a: has joined #RubyOnRails
[11:22:54] quazimodo: has joined #RubyOnRails
[11:27:43] chouhoulis: has joined #RubyOnRails
[11:28:15] psylone: has joined #RubyOnRails
[11:28:58] psylone: has joined #RubyOnRails
[11:34:00] psylone: has joined #RubyOnRails
[11:36:48] urkle: has joined #RubyOnRails
[11:56:32] chouhoulis: has joined #RubyOnRails
[11:58:06] dminuoso: What does "embed" mean
[11:58:54] dminuoso: bhams: div_for already generates id attributes.
[12:01:32] psylone: has joined #RubyOnRails
[12:02:50] urkle: has joined #RubyOnRails
[12:05:54] HoierM: has joined #RubyOnRails
[12:09:22] psylone: has joined #RubyOnRails
[12:18:52] urkle: has joined #RubyOnRails
[12:22:51] psylone: has left #RubyOnRails: ()
[12:23:37] xall: has joined #RubyOnRails
[12:26:15] dionysus69: has joined #RubyOnRails
[12:28:55] psylone: has joined #RubyOnRails
[12:30:21] psylone: has joined #RubyOnRails
[12:31:38] bruce_lee: has joined #RubyOnRails
[12:36:04] mtkd: has joined #RubyOnRails
[12:37:06] deur-_: has joined #RubyOnRails
[12:38:10] psylone: has joined #RubyOnRails
[12:38:55] psylone: has joined #RubyOnRails
[12:39:53] urkle: has joined #RubyOnRails
[12:40:54] edgr: has joined #RubyOnRails
[12:41:44] Jameser: has joined #RubyOnRails
[12:43:02] psylone: has joined #RubyOnRails
[12:43:21] xx00__: has joined #RubyOnRails
[12:48:28] centrx: has joined #RubyOnRails
[12:48:55] fschuindt2: has joined #RubyOnRails
[12:51:34] psylone: has joined #RubyOnRails
[12:56:49] chouhoulis: has joined #RubyOnRails
[13:01:53] Jameser: has joined #RubyOnRails
[13:05:22] mikecmpb_: has joined #RubyOnRails
[13:19:55] pupsicle: has joined #RubyOnRails
[13:24:46] mikecmpbll: has joined #RubyOnRails
[13:28:20] Technodrome: has joined #RubyOnRails
[13:32:19] mikecmpbll: has joined #RubyOnRails
[13:38:00] srinidhi: has joined #RubyOnRails
[13:40:45] arBmind: has joined #RubyOnRails
[13:46:44] mikecmpbll: has joined #RubyOnRails
[13:51:01] Frem: has joined #RubyOnRails
[13:55:16] jonno112: has joined #RubyOnRails
[14:06:56] mikecmpbll: has joined #RubyOnRails
[14:08:23] neruda: has joined #RubyOnRails
[14:08:23] kKzs: has joined #RubyOnRails
[14:11:18] arup_r: has joined #RubyOnRails
[14:12:41] xx00__: has joined #RubyOnRails
[14:15:41] luckyruby: has joined #RubyOnRails
[14:17:01] mikecmpbll: has joined #RubyOnRails
[14:34:22] fmcgeough: has joined #RubyOnRails
[14:37:43] dblessing: has joined #RubyOnRails
[14:38:16] ResidentBiscuit: has joined #RubyOnRails
[14:39:38] Jameser: has joined #RubyOnRails
[14:41:07] mtkd: has joined #RubyOnRails
[14:42:14] Technodrome: has joined #RubyOnRails
[14:42:27] elouisyoung: has joined #RubyOnRails
[14:43:13] elouisyoung: my actioncable connection (in production mode), is not having any cookies from the originating session... any ideas?
[14:43:36] elouisyoung: newest rails/ruby. nginx in front of puma..
[14:43:50] mikecmpbll: has joined #RubyOnRails
[14:43:57] elouisyoung: all the rest of the websocket stuff is working... just no cookie access
[14:45:07] mahloun: has joined #RubyOnRails
[14:49:27] Jameser: has joined #RubyOnRails
[14:52:59] elouisyoung: nevermind, i think i got it :)
[14:55:43] mwlang: has joined #RubyOnRails
[14:56:14] Jameser: has joined #RubyOnRails
[14:56:58] Jameser: has joined #RubyOnRails
[15:00:50] Jameser: has joined #RubyOnRails
[15:06:09] pupsicle: has joined #RubyOnRails
[15:08:08] Cache_Money: has joined #RubyOnRails
[15:11:40] mauro1254: has joined #RubyOnRails
[15:17:59] [Butch]: has joined #RubyOnRails
[15:21:35] Technodrome: has joined #RubyOnRails
[15:25:02] Jameser: has joined #RubyOnRails
[15:37:44] noob_on_rails: has joined #RubyOnRails
[15:39:06] psylone: has joined #RubyOnRails
[15:43:20] somerandomteen: has joined #RubyOnRails
[15:43:39] patarr: has joined #RubyOnRails
[15:44:11] psylone: has joined #RubyOnRails
[15:48:06] brent__: has joined #RubyOnRails
[15:51:08] username1: has joined #RubyOnRails
[15:51:12] gil_: has joined #RubyOnRails
[15:52:19] kaiks: has joined #RubyOnRails
[15:52:32] kaiks: hi, why can't i access a non-persisted model's association? i.e. model = Model.new(association_id: 123); model.association #=> nil
[15:56:11] mwlang: kaiks: does Association.find(123) => nil?
[15:56:43] apeiros: that should work
[15:56:50] apeiros: and it does work in my test
[15:56:59] kaiks: what rails version are you using?
[15:57:01] apeiros: so I'd say either that's not really what you're doing, or something else is going on
[15:57:12] mwlang: then I would expect Model.new(association_id: 123) to work
[15:57:17] apeiros: rails 5, but I have been using rails since 2.1 and that worked since then iirc.
[15:57:49] centrx: has joined #RubyOnRails
[15:58:06] apeiros: AR will allow you to use associations on unpersisted models as long as it has any means of knowing they're associated. and the case as presented by you is such a case.
[15:58:25] apeiros: though, there's one assumption in it: it's Model.belongs_to :association, yes?
[15:58:53] Jameser: has joined #RubyOnRails
[15:58:54] kaiks: ah sure enough, that does work outside byebug
[15:59:23] kaiks: well, my problem lies elsewhere, I'm trying to get STI to work with associations and weird stuff keeps happening
[16:00:35] tfitts: I have kind of a weird one. I just changed ruby versions so I'm not sure if it's related to that but I'm in pry and I have a User model and a Timeclock model. when I do Timeclock.last I get #<Timeclock id: 29750, user_id: 3, in_at: "2017-06-02 15:31:50", out_at: nil, created_at: "2017-06-02 15:31:50", updated_at: "2017-06-02 15:31:50"> but if I do User.last I just get #<User:0x3fdadc7c83e0> It doesn't show any
[16:00:35] tfitts: attributes for the model now.
[16:00:50] noob_on_rails: how can i update a many to many (through) middle table in an edit action?
[16:01:20] noob_on_rails: i have an Album model , with a multi select that selects artists, when i go to edit this and Update , and let's say i delete an artist
[16:01:28] noob_on_rails: how can i make this persist correctly ?
[16:02:07] eckesicle: has joined #RubyOnRails
[16:02:17] tfitts: I also upgraded devise, I guess it could possibly be related to that.
[16:03:18] tfitts: ah, it's devise
[16:03:54] psylone: has joined #RubyOnRails
[16:05:20] DrYockel: has joined #RubyOnRails
[16:07:14] Cache_Money: has joined #RubyOnRails
[16:08:20] Jameser: has joined #RubyOnRails
[16:13:05] Jameser: has joined #RubyOnRails
[16:15:55] gusrub: has joined #RubyOnRails
[16:18:22] djuls: has joined #RubyOnRails
[16:21:28] Jameser: has joined #RubyOnRails
[16:25:38] ascarter: has joined #RubyOnRails
[16:27:14] arup_r: has joined #RubyOnRails
[16:28:39] muhlisbc: has joined #RubyOnRails
[16:43:52] troys: has joined #RubyOnRails
[16:53:01] djuls: has left #RubyOnRails: ()
[16:55:15] Technodrome: has joined #RubyOnRails
[16:56:45] barhum2013: has joined #RubyOnRails
[17:11:36] crankharder: has joined #RubyOnRails
[17:17:56] pupsicle: has joined #RubyOnRails
[17:27:14] sandstrom: has joined #RubyOnRails
[17:28:42] defsdoor: has joined #RubyOnRails
[17:29:46] arup_r: has joined #RubyOnRails
[17:36:33] xall: has joined #RubyOnRails
[17:39:38] duderonomy: has joined #RubyOnRails
[17:49:26] dblessing: has joined #RubyOnRails
[17:54:49] gusrub: has joined #RubyOnRails
[18:04:29] cerulean: has joined #RubyOnRails
[18:04:50] cerulean: is it possible to analyze a file immediate after its uploaded with carrierwave?
[18:04:55] cerulean: i want to run some commands on it
[18:06:19] fcser_: has joined #RubyOnRails
[18:10:17] chouhoulis: has joined #RubyOnRails
[18:10:21] pLaTo0n: has joined #RubyOnRails
[18:12:48] KeyJoo: has joined #RubyOnRails
[18:15:53] roshanavand: has joined #RubyOnRails
[18:21:36] mustmodify: has joined #RubyOnRails
[18:22:37] mustmodify: I have webpack running ReactOnRails. I see they are using rspec features to do tests... what's an easy way to add js unit tests to that mix?
[18:27:03] mahloun: has joined #RubyOnRails
[18:27:09] barhum2013: has joined #RubyOnRails
[18:37:04] Aherin: has joined #RubyOnRails
[18:40:40] quazimodo: mustmodify: hey, when you break yoru js
[18:40:52] quazimodo: does react on rails give you back meaningful stack trace?
[18:41:17] quazimodo: atm my server side renderer doesn't really gie me a nice stack trace back... my code is minified though
[18:53:30] mustmodify: Yes. There's a ReactOnRails plugin for Chrome and I think that's digging in to the JS and doing some magic.
[18:53:37] mustmodify: quazimodo: ^
[18:53:53] quazimodo: mustmodify: i actually meant on server side
[18:54:03] quazimodo: when it breaks on the server, it can't possibly render anything to the front
[18:54:34] mustmodify: if you run webpack in a window
[18:54:39] quazimodo: so do you get a nice stack trace showing you which file and line cause d the issue?
[18:54:46] mustmodify: when you save js that doesn't compile, it'll show you where that is.
[18:55:01] quazimodo: yep, but what about js that compiles fine then breaks
[18:55:03] DLSteve: has joined #RubyOnRails
[18:55:26] quazimodo: foo =() => { bar() }; export default foo
[18:55:28] quazimodo: that'll export
[18:55:37] mustmodify: if it compiles fine then I am able to load the browser. And it's broken and nothing show up. But in the console, there's a cryptic error.
[18:55:39] quazimodo: and when you call it in servers ide it'll break
[18:55:54] mustmodify: And I click on it and this ReactOnRails plugin somehow gives me a stack trace.
[18:56:05] quazimodo: realllllllyyyy
[18:56:08] quazimodo: interesting
[18:56:25] mustmodify: Let me see...
[18:56:27] mustmodify: could be this?
[18:56:28] mustmodify: https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi
[18:56:45] xall: has joined #RubyOnRails
[18:56:52] mustmodify: yep, I guess that's what does it.
[18:57:13] dionysus69: has joined #RubyOnRails
[18:58:23] quazimodo: i guess i'd need to see it in action
[18:59:16] mustmodify: unfortunately I'm about to jump on a conf. call or I'd show you.
[18:59:32] quazimodo: i'll make a react on rails app later and see myself :D
[19:03:00] mustmodify: Well, just for clarification, it doesn't look like it's ReactOnRails specific.
[19:10:28] mustmodify: has left #RubyOnRails: ()
[19:28:58] srinidhi: has joined #RubyOnRails
[19:32:39] ur5us: has joined #RubyOnRails
[19:40:39] arBmind: has joined #RubyOnRails
[19:42:01] zacts: has joined #RubyOnRails
[19:45:40] cpruitt: has joined #RubyOnRails
[19:49:37] mtkd: has joined #RubyOnRails
[19:55:48] zacts: has joined #RubyOnRails
[20:08:18] username: has joined #RubyOnRails
[20:25:05] arup_r: has joined #RubyOnRails
[20:25:09] kies: has joined #RubyOnRails
[20:26:29] centrx: has joined #RubyOnRails
[20:29:59] lxsameer: has joined #RubyOnRails
[20:39:05] psylone: has joined #RubyOnRails
[20:43:32] ^mtkd: has joined #RubyOnRails
[20:50:14] gusrub: has joined #RubyOnRails
[20:50:54] benlieb: has joined #RubyOnRails
[20:52:04] benlieb: Are array lookups in ruby constant time? Just curious after reading this comment, probably meaning to refer to Java or C: Array is collection of similar types of data. So all the elements will take same amount of memory.Therefore if you know the base address of array and type of data it holds you can easily get element Array[i] in constant time. (cross-posted to #ruby)
[20:52:22] cerulean: has joined #RubyOnRails
[20:52:33] cerulean: what do you guys recommend for rails 5 search (like of records)
[20:59:37] chouhoulis: has joined #RubyOnRails
[21:01:48] jordila: has joined #RubyOnRails
[21:02:37] jordila: has left #RubyOnRails: ()
[21:03:19] patarr: has joined #RubyOnRails
[21:09:16] defsdoor: has joined #RubyOnRails
[21:18:44] centrx: cerulean: I use ransack, very easy to use
[21:18:46] psylone_: has joined #RubyOnRails
[21:19:05] centrx: benlieb: That's correct, array lookups are constant time
[21:19:40] benlieb: centrx: I did some research and they seem not to be in Ruby
[21:20:05] benlieb: See answer w 87 votes here: https://stackoverflow.com/questions/5551168/performance-of-arrays-and-hashes-in-ruby
[21:22:54] centrx: benlieb: There's a comment that says include?(x) is O(n)
[21:23:06] centrx: benlieb: that's different from simply accessing the array at index y
[21:23:33] benlieb: centrx: true
[21:23:35] centrx: Maybe I misinterpreted what you meant by lookup
[21:23:44] benlieb: I just wasn't very clear
[21:23:53] benlieb: I mean not a search like include? would do
[21:23:58] benlieb: just access
[21:24:21] benlieb: so how does ruby have O(1) with mixed data type values?
[21:24:34] benlieb: for array access...
[21:25:02] fmcgeough: has joined #RubyOnRails
[21:25:57] centrx: the source for the main part of Array#[] is here: https://github.com/ruby/ruby/blame/d0015e4ac6b812ea1681b1f5fa86fbab52a58960/array.c
[21:26:00] centrx: benlieb: rb_ary_entry
[21:26:56] centrx: benlieb: It looks like it's just getting a pointer to the location of the entry
[21:27:20] centrx: benlieb: Maybe certain entries could be slower, but that's still O(1) constant time (over n entries)
[21:27:39] centrx: benlieb: The constant could be different for different arrays, for example
[21:28:37] desnudopenguino: has joined #RubyOnRails
[21:28:47] centrx: benlieb: In general, even if you had a basic C array where you somehow got values of different memory sizes, you would just have to do the arithmetic properly, it's just arithmetic on memory addresses
[21:31:38] Technodrome: has joined #RubyOnRails
[21:31:57] benlieb: centrx: I'm not too good with C, I guess there's some kind of storage of array keys to memory locations
[21:32:48] benlieb: either way, I'll just try to remember that array acces is basically O(1)
[21:32:53] cerulean: centrx ransack just returns all rows. what am i doing wrong?
[21:33:26] centrx: benlieb: yes my educated guess/assumption is that Ruby array is a list of pointers to memory locations
[21:33:57] centrx: cerulean: Did you set up a little form with something to enter for the search?
[21:34:48] benlieb: centrx: that makes sense. Maybe in Java it would store the actual data in the alotted memory for the array at declaration time?
[21:36:22] ProofTechnique: has left #RubyOnRails: ("ERC (IRC client for Emacs 25.2.1)")
[21:37:01] centrx: benlieb: Probably not Java, but that's what C does
[21:37:55] centrx: benlieb: Each entry has a specified (e.g. an integer), then the the array access is simply multiplying startpoint + index*datasize to get to the right memory location
[21:38:31] centrx: cerulean: I'd have to see your view and controller
[21:38:59] cerulean: i switched to raw sql LIKE
[21:46:26] desnudopenguino: so i'm working on a select field (using collection for a form, trying to figure out how to get the key as the value
[21:46:41] desnudopenguino: using collection_select that is
[21:59:48] Kneecaps: has joined #RubyOnRails
[22:01:42] HoierM: has joined #RubyOnRails
[22:01:59] enderby: has joined #RubyOnRails
[22:02:07] enderby: has left #RubyOnRails: ()
[22:06:36] srinidhi: has joined #RubyOnRails
[22:06:50] pupsicle: has joined #RubyOnRails
[22:06:56] psylone: has joined #RubyOnRails
[22:12:25] desnudopenguino: figured it out in a roundabout way
[22:16:24] benlieb: has joined #RubyOnRails
[22:18:17] psylone_: has joined #RubyOnRails
[22:25:19] mahloun: has joined #RubyOnRails
[22:29:00] watersoul: has joined #RubyOnRails
[22:30:31] cgfbee: has joined #RubyOnRails
[22:31:56] cjohnson_: has joined #RubyOnRails
[22:31:58] gs: has joined #RubyOnRails
[22:32:21] unreal_: has joined #RubyOnRails
[22:37:15] gil_: has joined #RubyOnRails
[22:40:25] blitz_: has joined #RubyOnRails
[22:40:28] tanuki: has joined #RubyOnRails
[22:40:40] uksio: has joined #RubyOnRails
[22:40:41] FastJack: has joined #RubyOnRails
[22:41:36] psylone: has joined #RubyOnRails
[22:41:51] sunrunner20: has joined #RubyOnRails
[22:42:38] wethu: has joined #RubyOnRails
[22:43:03] gheegh: has joined #RubyOnRails
[22:44:31] spheric: has joined #RubyOnRails
[22:48:17] gheegh: Having a heck of a time getting the Has many through working correctly with a polymorphic in the middle.. here's a gist..https://gist.github.com/wflanagan/96a4b4cf30340309b8b5e8bf6056444f
[22:48:21] gheegh: https://gist.github.com/wflanagan/96a4b4cf30340309b8b5e8bf6056444f
[22:48:33] gheegh: it works one way, but not the other..
[22:48:38] ur5us: has joined #RubyOnRails
[22:55:28] LightStalker: has joined #RubyOnRails
[23:04:09] patarr: has joined #RubyOnRails
[23:05:48] chare: has joined #RubyOnRails
[23:28:17] brent__: has joined #RubyOnRails
[23:28:38] brent__: I have a factorygirl that fails due to the associatio not being generated in time for an after_save callback
[23:29:39] brent__: i'm trying to generate a factorygirl(:user_profile) which includes 'association :user', the after_save callback does user_profile.user.method, however breaks as user_profile.user returns nil
[23:29:47] brent__: any thoughts on how to get around this?
[23:32:42] ar1a: has joined #RubyOnRails
[23:40:02] Kestrel-029: has joined #RubyOnRails
[23:42:52] Brent___: has joined #RubyOnRails
[23:48:13] choke: has joined #RubyOnRails
[23:49:27] chare: has joined #RubyOnRails
[23:53:02] roychri: has joined #RubyOnRails