« Back to channel list

#RubyOnRails - 19 July 2017

« Back 1 day Forward 1 day »
[00:00:47] gusrub: has joined #RubyOnRails
[00:00:52] cagomez: has joined #RubyOnRails
[00:11:15] cam27: has joined #RubyOnRails
[00:12:30] quazimodo: has joined #RubyOnRails
[00:22:46] jhfisc: has joined #RubyOnRails
[00:30:46] lessless: has joined #RubyOnRails
[00:34:52] hahuang65: has joined #RubyOnRails
[00:37:50] bruno-: has joined #RubyOnRails
[00:47:54] aajjbb: has joined #RubyOnRails
[00:49:43] jhfisc: has joined #RubyOnRails
[00:52:10] umaaji: has joined #RubyOnRails
[00:52:39] hotpancakes: has joined #RubyOnRails
[00:54:27] brycesenz: has joined #RubyOnRails
[00:55:25] sevenseacat: has joined #RubyOnRails
[01:03:41] jhfisc: has joined #RubyOnRails
[01:09:20] jhfisc: has joined #RubyOnRails
[01:11:31] rfoust: has joined #RubyOnRails
[01:12:58] patarr: has joined #RubyOnRails
[01:16:30] ascarter: has joined #RubyOnRails
[01:25:56] jhfisc: has joined #RubyOnRails
[01:26:17] emocakes: has joined #RubyOnRails
[01:26:17] ChanServ: +b emocakes*!*@*
[01:26:18] ChanServ: ChanServ kicked emocakes: is banned from this channel
[01:32:17] jhfisc: has joined #RubyOnRails
[01:35:36] hahuang65: has joined #RubyOnRails
[01:43:32] jhfisc: has joined #RubyOnRails
[01:50:18] lacuna: has joined #RubyOnRails
[01:50:53] jhfisc: has joined #RubyOnRails
[01:55:21] jhfisc: has joined #RubyOnRails
[01:56:28] bronson: has joined #RubyOnRails
[02:07:55] irishfromua: has joined #RubyOnRails
[02:09:40] rakm: has joined #RubyOnRails
[02:11:34] ElFerna: has joined #RubyOnRails
[02:19:05] hotpancakes: has joined #RubyOnRails
[02:27:03] hotpancakes: has joined #RubyOnRails
[02:36:35] hahuang65: has joined #RubyOnRails
[02:44:08] s2013: has joined #RubyOnRails
[02:44:19] akshat: has joined #RubyOnRails
[02:50:36] Jameser: has joined #RubyOnRails
[02:50:38] jhfisc: has joined #RubyOnRails
[02:53:43] Jameser: has joined #RubyOnRails
[02:54:03] jhfisc: has joined #RubyOnRails
[03:03:42] s2013: has joined #RubyOnRails
[03:07:28] jhfisc: has joined #RubyOnRails
[03:08:45] SteenJobs: has joined #RubyOnRails
[03:16:53] brycesenz: has joined #RubyOnRails
[03:18:36] kies: has joined #RubyOnRails
[03:20:16] cam27: I’m like 10/10 right now in solving things
[03:20:25] cam27: Today was a good day
[03:20:55] cam27: I pulled up something that never worked off of a tutorial and got it working
[03:21:11] cam27: from 10 months ago when I didn’t know much.
[03:22:39] cam27: Now to figure out why items only get added to my cart in development, but not in production. Might have to migrate the production schema?
[03:29:51] cam27: sevenseacat: I think I have an issue pushing to Heroku cause of deadlock. Is this common? SELECT pg_advisory_unlock
[03:30:06] sevenseacat: i wouldnt say so.
[03:34:44] jhfisc: has joined #RubyOnRails
[03:34:47] hotpancakes: has joined #RubyOnRails
[03:35:43] cam27: I don’t like Heroku, but it’s free hosting
[03:35:56] cam27: for my tinkering needs
[03:35:59] sevenseacat: i quite like it
[03:36:15] sevenseacat: the price doesnt scale too well, but you get a lot of power for free/cheap
[03:38:30] jhfisc: has joined #RubyOnRails
[03:42:29] jhfisc: has joined #RubyOnRails
[03:57:22] bronson: has joined #RubyOnRails
[04:05:14] jhfisc: has joined #RubyOnRails
[04:11:19] jhfisc: has joined #RubyOnRails
[04:14:45] hotpancakes: has joined #RubyOnRails
[04:23:20] jhfisc: has joined #RubyOnRails
[04:29:21] jhfisc: has joined #RubyOnRails
[04:35:19] jhfisc: has joined #RubyOnRails
[04:36:44] cam27: I’d rather have spun up a server on digital ocean
[04:37:27] hahuang65: has joined #RubyOnRails
[04:39:39] Radar: Can't "git push origin master" to Digital Ocean within 5 mins of setting up the server :)
[04:41:30] jhfisc: has joined #RubyOnRails
[04:49:29] cam27: I’m calling it a day though, I can’t get my db migration on Heroku, I forget what I used to have to do with this thing all of the time. THen I have to get the seed data on to it as well and hopefully I can get on to writing some new code tomorrow
[04:55:18] hotpancakes: has joined #RubyOnRails
[04:57:48] jhfisc: has joined #RubyOnRails
[05:02:40] ariedler: has joined #RubyOnRails
[05:05:45] brent__: has joined #RubyOnRails
[05:10:44] jhfisc: has joined #RubyOnRails
[05:10:52] jphase: has joined #RubyOnRails
[05:21:03] jhfisc: has joined #RubyOnRails
[05:24:47] TheMonster_: has joined #RubyOnRails
[05:25:25] Radar: cam27: did you not run "heroku run rake db:migrate"? and if you did, are you sure that you committed your migration in the first place?
[05:25:32] Radar: Those are the two most common things that people don't do.
[05:27:19] jhfisc: has joined #RubyOnRails
[05:29:50] TheMonster_: I have a request body as a string... Something like body = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name="test"\r\nteeeeest------WebKitFormBoundary7MA4YWxkTrZu0gW--". I'd like to extract the parameters in this body. How can I do that?
[05:32:25] hotpancakes: has joined #RubyOnRails
[05:33:21] jhfisc: has joined #RubyOnRails
[05:38:15] jhfisc: has joined #RubyOnRails
[05:42:31] jhfisc: has joined #RubyOnRails
[05:43:48] Radar: TheMonster_: truly monstrous. Good job.
[05:43:59] Radar: TheMonster_: You can't read it out of params?
[05:44:14] TheMonster_: Radar: It's not a request
[05:44:20] TheMonster_: It's saved in a file
[05:44:26] Radar: Lord help us all.
[05:44:31] TheMonster_: and I want to deal with it as if it was a request
[05:44:39] Radar: Good question tho
[05:44:41] Abhijit: has joined #RubyOnRails
[05:45:32] armyriad: has joined #RubyOnRails
[05:45:36] Abhijit: my git structure is -> myapp is root folder. myapp/.git and myapp/.gitignore and inside this there is actual rails app as myapp/railsapp what i need to do differently so that I wont get capistrano could not locate Gemfile error?
[05:46:02] Abhijit: shall i copy myapp/railsapp/Gemfile to myapp/Gemfile ??
[05:46:43] TheMonster_: I kinda want to construct a request object if that's possible or just extract the parameters if that'd be easier
[05:51:47] Radar: TheMonster_: I'm looking at spec_multipart.rb in the Rack source and trying to reverse engineer what that's doing.
[05:56:25] armyriad: has joined #RubyOnRails
[06:08:30] rakm: has joined #RubyOnRails
[06:13:18] jhfisc: has joined #RubyOnRails
[06:13:25] TheMonster_: Radar: Thanks for the pointer... I guessed that I should do Rack::MockRequest.env_for and pass my string in place of the file then use Rack::Multipart.parse_multipart(env) but it returns nil
[06:13:35] Radar: TheMonster_: Yeah that's as far as I've gotten too. I can't figute it out.
[06:13:43] Radar: TheMonster_: How are you generating this file in the first place?
[06:14:05] TheMonster_: taking the request through another language then saving it as a file
[06:19:49] jhfisc: has joined #RubyOnRails
[06:24:33] Radar: yay I win
[06:25:00] Radar: TheMonster_: Your output isn't quite valid according to the Rack multipart spec. You're missing an extra \r\n after the field name
[06:25:15] Radar: This: name=\"test\"\r\nteeeeest Should be: name=\"test\"\r\n\r\nteeeeest
[06:25:19] hotpancakes: has joined #RubyOnRails
[06:25:32] Radar: Then: https://gist.github.com/radar/14e7e6006d6f927e5dfafaab7eb1e1b2
[06:26:44] Radar: ps my paypal is paypal.me/ryanbigg
[06:31:37] Radar: I should probably mention why it needs to be two EOLs before I head off for the night.;
[06:32:03] Radar: The parser looks for these here: https://github.com/rack/rack/blob/cace56c92562ef7edf2115959d94a0f88581b54a/lib/rack/multipart/parser.rb#L240. If they're not present then it will never get into the MIME_BODY state.
[06:32:16] Radar: Go ahead and play around with my script and you'll see what I mean.
[06:32:23] Radar: And now I have to go home. BYE.
[06:32:54] Abhijit: how to ignore database.yml env vars set for test env, while running app in dev mode?
[06:33:18] jhfisc: has joined #RubyOnRails
[06:35:34] TheMonster_: Thanks a lot Radar :)
[06:36:04] Jameser: has joined #RubyOnRails
[06:37:23] roshanavand: has joined #RubyOnRails
[06:37:59] jhfisc: has joined #RubyOnRails
[06:38:15] hahuang65: has joined #RubyOnRails
[06:40:47] jhfisc: has joined #RubyOnRails
[06:53:11] jhfisc: has joined #RubyOnRails
[06:56:05] ayonkhan: has joined #RubyOnRails
[06:59:02] rakm: has joined #RubyOnRails
[06:59:47] bronson: has joined #RubyOnRails
[07:00:12] rakm: has joined #RubyOnRails
[07:00:52] rakm: has joined #RubyOnRails
[07:01:06] jhfisc: has joined #RubyOnRails
[07:01:49] rakm: has joined #RubyOnRails
[07:02:25] rakm: has joined #RubyOnRails
[07:04:38] ariedler: has joined #RubyOnRails
[07:10:05] jhfisc: has joined #RubyOnRails
[07:15:31] jhfisc: has joined #RubyOnRails
[07:26:37] hotpancakes: has joined #RubyOnRails
[07:27:05] Chernobuk: has joined #RubyOnRails
[07:32:17] agent_white: has joined #RubyOnRails
[07:38:36] one_zero: has joined #RubyOnRails
[07:42:52] jhfisc: has joined #RubyOnRails
[07:53:21] AzaToth: has joined #RubyOnRails
[08:00:20] bronson: has joined #RubyOnRails
[08:00:42] Jameser: has joined #RubyOnRails
[08:01:22] ur5us: has joined #RubyOnRails
[08:04:44] dionysus69: has joined #RubyOnRails
[08:09:46] mikecmpbll: has joined #RubyOnRails
[08:15:38] umaaji: has joined #RubyOnRails
[08:16:07] jhfisc: has joined #RubyOnRails
[08:27:17] jhfisc: has joined #RubyOnRails
[08:32:49] jhfisc: has joined #RubyOnRails
[08:39:09] hahuang65: has joined #RubyOnRails
[08:42:52] hotpancakes: has joined #RubyOnRails
[08:50:45] jhfisc: has joined #RubyOnRails
[08:55:57] jhfisc: has joined #RubyOnRails
[08:57:05] lxsameer: has joined #RubyOnRails
[08:59:17] jhfisc: has joined #RubyOnRails
[09:01:10] bronson: has joined #RubyOnRails
[09:03:38] jhfisc: has joined #RubyOnRails
[09:06:43] ariedler: has joined #RubyOnRails
[09:08:50] jhfisc: has joined #RubyOnRails
[09:16:08] jhfisc: has joined #RubyOnRails
[09:19:30] marr: has joined #RubyOnRails
[09:22:21] krmela: has joined #RubyOnRails
[09:22:35] jhfisc: has joined #RubyOnRails
[09:26:27] jhfisc: has joined #RubyOnRails
[09:26:33] krmela: Good Day there
[09:30:10] krmela: i have question i have in form array of checkboxes week_day[food_ids][] and i dont know how to save it to weekday.food_ids= (source https://gist.github.com/netmoleCBA/59019465cc9b53cc3d956bccba60b376)
[09:33:55] tbuehlmann_: krmela: I remember the case. so I would have checkboxes representing dayoffers instead of foods. I would have WeekDay.accepts_nested_attributes_for :dayoffers and use fields_for in the form to display one checkbox per dayoffer. and I would reject the ones not being selected
[09:34:12] Radar: TheMonster_: I haven't seen anything come through on paypal yet. Just wondering where that's at.
[09:38:32] krmela: tbuehlmann_: hello there can you check this https://gist.github.com/netmoleCBA/59019465cc9b53cc3d956bccba60b376#file-_form-L20 it is it is bad or not food is typically food.all
[09:39:24] jhfisc: has joined #RubyOnRails
[09:40:36] tbuehlmann_: I wouldn't do it that way
[09:41:13] stamina: has joined #RubyOnRails
[09:41:49] krmela: tbuehlmann_: well but if i am use dayoffers how to generate it if you can poke me a little more
[09:43:28] krmela: tbuehlmann_: do you mean use nested atributes i am still new in rails ty for any advices
[09:45:17] tbuehlmann_: I would create an array of dayoffers for each food. if there's a dayoffer already existing for a food for the week_day, use that. if not, build a new one. so you end up having one array with n dayoffers (when there are n foods)
[09:46:12] jhfisc: has joined #RubyOnRails
[09:46:25] tbuehlmann_: when using accepts_nested_attributes_for, you can create/update a week_day like week_day.update(dayoffers_attributes: {…})
[09:46:46] tbuehlmann_: see http://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html#method-i-accepts_nested_attributes_for
[09:46:58] tbuehlmann_: and http://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html#method-i-fields_for
[09:48:35] AzaToth: has joined #RubyOnRails
[09:51:03] krmela: tbuehlmann_: my first idea was week_day[food_ids][] where checked boxes sends back array of food id and i am somehow send it to weekday.food_ids=
[09:51:32] tbuehlmann_: if that's easier for you, sure
[09:52:11] krmela: tbuehlmann_: well i am looking for working solution at firts as easier as possible
[09:52:58] krmela: tbuehlmann_: as i am in this part pretty unexperienced i am never programmed in rails N-N relations as now is first
[09:53:20] tbuehlmann_: what's not working with your idea?
[09:54:19] hotpancakes: has joined #RubyOnRails
[09:54:26] dionysus69: has joined #RubyOnRails
[09:54:28] krmela: tbuehlmann_: well acutally with my code i dont know how to save it and second i dont know how it works with validation (every weekday must have choosed at least one food ))
[09:54:58] workmad3: has joined #RubyOnRails
[09:55:13] tbuehlmann_: week_day.food_ids = […] should work actually
[09:57:00] ych: has joined #RubyOnRails
[09:58:13] krmela: tbuehlmann_: actually validation failed that week day must exist but strange i am on existing record
[09:59:05] tbuehlmann_: what is the exact error?
[10:01:54] Rodya_: has joined #RubyOnRails
[10:02:21] bronson: has joined #RubyOnRails
[10:04:54] krmela: tbuehlmann_: error added to https://gist.github.com/netmoleCBA/59019465cc9b53cc3d956bccba60b376
[10:06:42] quazimodo: has joined #RubyOnRails
[10:07:17] tbuehlmann_: no idea. setup pry and debug it
[10:08:31] srinidhi: has joined #RubyOnRails
[10:15:30] jhfisc: has joined #RubyOnRails
[10:24:15] jhfisc: has joined #RubyOnRails
[10:27:18] jhfisc: has joined #RubyOnRails
[10:32:45] ferr: has joined #RubyOnRails
[10:40:14] hahuang65: has joined #RubyOnRails
[10:41:50] jhfisc: has joined #RubyOnRails
[10:59:55] jhfisc: has joined #RubyOnRails
[11:00:41] hotpancakes: has joined #RubyOnRails
[11:03:12] bronson: has joined #RubyOnRails
[11:04:53] doublemalt_: has joined #RubyOnRails
[11:05:17] jhfisc: has joined #RubyOnRails
[11:09:25] tvon: has joined #RubyOnRails
[11:11:20] jhfisc: has joined #RubyOnRails
[11:18:00] quazimodo: has joined #RubyOnRails
[11:18:25] Terens: I send large files through rails
[11:18:46] Terens: Should I use X-Accel-Redirect or not
[11:21:18] jhfisc: has joined #RubyOnRails
[11:25:04] Jameser: has joined #RubyOnRails
[11:37:35] jhfisc: has joined #RubyOnRails
[11:42:56] jhfisc: has joined #RubyOnRails
[11:44:06] Rodya_: has joined #RubyOnRails
[11:47:02] Rodya_: has joined #RubyOnRails
[11:54:36] jhfisc: has joined #RubyOnRails
[11:58:05] Ergo: has joined #RubyOnRails
[12:03:21] jhfisc: has joined #RubyOnRails
[12:04:02] bronson: has joined #RubyOnRails
[12:07:19] hotpancakes: has joined #RubyOnRails
[12:08:45] apparition: has joined #RubyOnRails
[12:09:17] jhfisc: has joined #RubyOnRails
[12:09:37] ariedler: has joined #RubyOnRails
[12:14:08] jhfisc: has joined #RubyOnRails
[12:26:12] GodFather: has joined #RubyOnRails
[12:27:30] apparition47: has joined #RubyOnRails
[12:33:17] jhfisc: has joined #RubyOnRails
[12:33:17] DylanJ: has joined #RubyOnRails
[12:39:17] jhfisc: has joined #RubyOnRails
[12:41:03] hahuang65: has joined #RubyOnRails
[12:44:07] shiru: has joined #RubyOnRails
[12:45:17] jhfisc: has joined #RubyOnRails
[12:50:04] apparition47: has joined #RubyOnRails
[12:54:02] jhfisc: has joined #RubyOnRails
[12:54:13] ych: has joined #RubyOnRails
[12:59:30] jhfisc: has joined #RubyOnRails
[13:04:52] bronson: has joined #RubyOnRails
[13:08:36] dviola: has joined #RubyOnRails
[13:09:13] jhfisc: has joined #RubyOnRails
[13:12:47] diegorv: has joined #RubyOnRails
[13:14:43] hotpancakes: has joined #RubyOnRails
[13:15:16] jhfisc: has joined #RubyOnRails
[13:18:14] jhfisc: has joined #RubyOnRails
[13:23:22] LyndsySimon: TIL: camelize and underscore are not compliments of each other.
[13:23:22] ar1a_: has joined #RubyOnRails
[13:23:41] LyndsySimon: Example: `'create_90_day'.camelize != 'create_90_day'.camelize.underscore`
[13:24:46] ElFerna: has joined #RubyOnRails
[13:28:01] rfoust: has joined #RubyOnRails
[13:28:01] ule: Hey guys.. I have multiple versions of rails installed here.. how can I create a new project using a specific version?
[13:28:16] ule: I've been trying: rails _4.2.0_ new foo
[13:28:19] ule: but doesn't work
[13:30:09] jhfisc: has joined #RubyOnRails
[13:30:26] sevenseacat: what version of rubygems are you using?
[13:30:33] sevenseacat: you might need to update it.
[13:32:47] ule: gem --version shows 2.5.2
[13:33:00] sevenseacat: yeah, upgrade it with `gem update --system`
[13:33:29] jhfisc: has joined #RubyOnRails
[13:34:46] ule: ok.. 2.6.12 now.. Trying again..
[13:35:36] ule: still installing the latest rails version
[13:35:59] matthewd: You need to regenerate the executable after installing the new version
[13:36:06] matthewd: gem pristine --executables or something?
[13:37:14] ule: gem list | grep '^rails [(]'
[13:37:15] ule: rails (5.1.2, 5.1.1, 5.0.4, 4.2.0)
[13:37:21] ule: I want to use just 4.2.0 :/
[13:38:40] matthewd: gem pristine --all --only-executables
[13:38:41] ule: gem pristine --executables
[13:38:41] ule: ERROR: While executing gem ... (OptionParser::InvalidOption)
[13:38:42] ule: invalid option: --executables
[13:38:50] matthewd: http://sevenseacat.net/posts/2017/rubygems-gem-versioning-bugs/ :)
[13:39:11] sevenseacat: hey good thing I documented this shit eh
[13:39:11] ule: restoring
[13:39:15] ule: trying again
[13:40:09] ule: worked!!
[13:41:12] ule: awesome
[13:41:27] ule: matthewd: sevenseacat thank you very much
[13:42:46] truenito: has joined #RubyOnRails
[13:43:27] ule: you guys had a blog post for that
[13:50:42] chouhoulis: has joined #RubyOnRails
[13:56:54] NoGodDamnIdea: has joined #RubyOnRails
[13:59:28] cam27: has joined #RubyOnRails
[14:00:19] brycesenz: has joined #RubyOnRails
[14:01:32] chouhoulis: has joined #RubyOnRails
[14:01:34] aajjbb: has joined #RubyOnRails
[14:02:47] Sylario: has joined #RubyOnRails
[14:03:05] jhfisc: has joined #RubyOnRails
[14:05:43] bronson: has joined #RubyOnRails
[14:05:54] Sylario: It's the summer, nobody is bothering me and I am working on my tests. The following rails spec test (3.6) works, but I feel like I am missing something in the execution : https://gist.github.com/bsylvain/61b158693f7e798dd3a56bc347b9b46b
[14:07:40] matthewd: sylario: It's always a good idea to see a test fail after you write it
[14:08:25] Sylario: I have a lot of other case, it's just one test
[14:09:10] jhfisc: has joined #RubyOnRails
[14:11:06] ariedler: has joined #RubyOnRails
[14:13:34] matthewd: sylario: But have you seen this test fail?
[14:14:15] jhfisc: has joined #RubyOnRails
[14:14:24] Sylario: a few minutes ago when i was editing the coden and it was borked because I was in the middle of a broken query
[14:17:24] matthewd: Oh, sorry, I was going up a wrong path on syntax
[14:18:02] nebiros: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[14:18:40] matthewd: As a general note, you rarely want to use #assert -- it does a bad job of communicating what's wrong
[14:20:10] matthewd: This would be better as assert_equal for a small change.. for a larger rearrangement, consider assert_difference
[14:20:17] hotpancakes: has joined #RubyOnRails
[14:25:59] mtkd: has joined #RubyOnRails
[14:29:21] apparition47: has joined #RubyOnRails
[14:36:57] bruno-: has joined #RubyOnRails
[14:40:01] xiljin: has joined #RubyOnRails
[14:41:54] hahuang65: has joined #RubyOnRails
[14:45:00] jhfisc: has joined #RubyOnRails
[14:45:35] Obi_one_k: has joined #RubyOnRails
[14:48:22] brycesenz: has joined #RubyOnRails
[14:50:57] Sylario: I always used assert on all of my tests
[14:52:03] Sylario: I think I just opened a Pandora box
[14:52:44] havenwood: sylario: luckily there aren't that many types of asserts, so the few there are are worth knowing
[14:52:58] havenwood: sylario: using the one specific to your situation gives for nice error messages
[14:52:59] Sylario: I have a lot of test
[14:53:04] Sylario: i only ever used assert
[14:53:04] jhfisc: has joined #RubyOnRails
[14:53:24] havenwood: sylario: do you usually provide a failure message?
[14:53:49] Sylario: Isn't that the job of the It description?
[14:54:11] Sylario: I mean, I usually have one assert by test
[14:54:58] havenwood: sylario: you can do like: assert 42, 'expected the meaning of the universe to be truthy'
[14:55:14] Sylario: did not knew that
[14:55:43] havenwood: sylario: assert_equal, etc, give a nice message out of the box
[14:57:01] Sylario: I think all of my tests ends up with a assert something == that or assert foo!= bar
[14:57:07] Sylario: In fact, it's all my tests
[14:57:39] Sylario: ho no, i have include? too
[14:58:25] havenwood: assert_includes
[14:58:53] dviola: I'm trying to write tests for my controllers but I have devise, what do I use to simulate a user login?
[14:59:06] dviola: I'm using minitest
[14:59:26] Sylario: dviola: there is some Devise stuff to configure in Rspec to have access to Devise helpers for tests
[14:59:32] Sylario: from memory
[14:59:50] Sylario: and i Guess there is something similar to do in Minitest
[15:00:14] dviola: ok, I'll check that out, thanks
[15:01:21] Sylario: config.include Devise::Test::ControllerHelpers, :type => :controller
[15:01:32] Sylario: config.include RSpec::Rails::RequestExampleGroup, type: :feature
[15:01:41] Sylario: I have this in my rspec helper
[15:03:12] jhfisc: has joined #RubyOnRails
[15:04:42] hotpancakes: has joined #RubyOnRails
[15:06:33] bronson: has joined #RubyOnRails
[15:09:25] roshanavand: has joined #RubyOnRails
[15:13:02] Sylario: thx havenwood , I get the rspec stuff
[15:16:37] jhfisc: has joined #RubyOnRails
[15:20:19] jhfisc: has joined #RubyOnRails
[15:20:31] irishfromua: has joined #RubyOnRails
[15:21:39] kies: has joined #RubyOnRails
[15:26:20] jhfisc: has joined #RubyOnRails
[15:29:54] Obi_one_k: Im trying to change the way my model is showing associated errors. Is there something cleaner than this https://gist.github.com/adavia/4208c0d71b28bc942f254c4e02ca6b63
[15:32:16] jhfisc: has joined #RubyOnRails
[15:35:55] ariedler: has joined #RubyOnRails
[15:37:13] hotpancakes: has joined #RubyOnRails
[15:37:32] brent__: has joined #RubyOnRails
[15:39:17] jhfisc: has joined #RubyOnRails
[15:45:53] truenito: has joined #RubyOnRails
[15:53:12] mikecmpb_: has joined #RubyOnRails
[15:54:52] bruno-: has joined #RubyOnRails
[16:08:29] bronson: has joined #RubyOnRails
[16:13:54] npgm: has joined #RubyOnRails
[16:17:54] googleplex: has joined #RubyOnRails
[16:18:39] truenito: has joined #RubyOnRails
[16:20:07] irishfromua: has joined #RubyOnRails
[16:25:07] nebiros: has joined #RubyOnRails
[16:25:14] nebiros: has left #RubyOnRails: ("Be back later...")
[16:27:15] ElFerna: has joined #RubyOnRails
[16:28:20] timdotrb: has joined #RubyOnRails
[16:28:32] roshanavand: has joined #RubyOnRails
[16:36:56] jhfisc: has joined #RubyOnRails
[16:38:01] sekmo: has joined #RubyOnRails
[16:38:29] sekmo: HI guys! Do I need database_cleaner when working with rspec?
[16:38:47] sekmo: What's your setup? :-)
[16:39:17] tbuehlmann_: you don't _need_ it
[16:39:22] tbuehlmann_: my setup is rspec with database_rewinder
[16:40:08] Obi_one_k: Im trying to change the way my model is showing associated errors. Is there something cleaner than this https://gist.github.com/adavia/4208c0d71b28bc942f254c4e02ca6b63
[16:42:11] cagomez: has joined #RubyOnRails
[16:42:16] SteenJobs: has joined #RubyOnRails
[16:43:37] hahuang65: has joined #RubyOnRails
[16:43:42] sekmo: thanks tbuehlmann_ , will try it! :-)
[16:46:23] ariedler: has joined #RubyOnRails
[16:47:14] hotpancakes: has joined #RubyOnRails
[16:49:17] jhfisc: has joined #RubyOnRails
[16:53:17] jhfisc: has joined #RubyOnRails
[16:55:49] cagomez: has joined #RubyOnRails
[16:58:11] jhfisc: has joined #RubyOnRails
[16:59:04] cagomez: has joined #RubyOnRails
[17:00:18] defsdoor: has joined #RubyOnRails
[17:00:37] one_zero: has joined #RubyOnRails
[17:01:17] jhfisc: has joined #RubyOnRails
[17:07:16] jhfisc: has joined #RubyOnRails
[17:08:55] rakm: has joined #RubyOnRails
[17:09:37] bronson: has joined #RubyOnRails
[17:10:11] rakm_: has joined #RubyOnRails
[17:10:20] cagomez: has joined #RubyOnRails
[17:16:00] jhfisc: has joined #RubyOnRails
[17:17:07] cschneid_: has joined #RubyOnRails
[17:17:39] cschneid_: Does anybody know what config setting makes the db migration generator make sequentially counted migrations instead of the datetime ones? I have 50_xxx, 51_xxx, 52_xxx and want date ones back
[17:18:14] mikecmpbll: has joined #RubyOnRails
[17:19:40] gusrub: has joined #RubyOnRails
[17:20:08] hahuang65: has joined #RubyOnRails
[17:20:19] kies: has joined #RubyOnRails
[17:25:44] cagomez: has joined #RubyOnRails
[17:28:42] jhfisc: has joined #RubyOnRails
[17:31:09] ariedler: has joined #RubyOnRails
[17:31:27] Aherin: has joined #RubyOnRails
[17:31:38] jphase: has joined #RubyOnRails
[17:32:35] cschneid_: hmm, it's config.active_record.timestamped_migrations = true if anybody was curious
[17:34:00] jhfisc: has joined #RubyOnRails
[17:36:45] jhfisc: has joined #RubyOnRails
[17:37:53] duderonomy: has joined #RubyOnRails
[17:40:54] SteenJobs: has joined #RubyOnRails
[17:41:08] rakm_: hello. what's the difference between the `headers` method that's available in a controller and request.headers? I can see that the former returns a hash, and the latter returns a different object with much more information, but when i make a request, i'm seeing that request headers are not available in the `headers` method
[17:41:26] rakm_: i tried looking around in source, but couldn't find the right place with these methods
[17:47:10] jhfisc: has joined #RubyOnRails
[17:51:05] cam27: has joined #RubyOnRails
[17:54:08] dblessing: has joined #RubyOnRails
[17:56:23] SteenJobs: has joined #RubyOnRails
[17:59:15] cagomez: has joined #RubyOnRails
[17:59:59] Papierkorb: has joined #RubyOnRails
[18:02:21] jhfisc: has joined #RubyOnRails
[18:06:11] chouhoulis: has joined #RubyOnRails
[18:06:30] lxsameer: has joined #RubyOnRails
[18:07:17] jhfisc: has joined #RubyOnRails
[18:09:37] Intii: has joined #RubyOnRails
[18:10:03] Intii: Has anyone experienced an issue with remote: true on forms with returning a 403 response code if the data is too large? One paragraph of lorem ipsum text works fine, 2 paragraphs returns 403
[18:10:07] bronson: has joined #RubyOnRails
[18:10:17] hotpancakes: has joined #RubyOnRails
[18:16:09] roshanavand: has joined #RubyOnRails
[18:19:51] jhfisc: has joined #RubyOnRails
[18:23:17] jhfisc: has joined #RubyOnRails
[18:28:28] jhfisc: has joined #RubyOnRails
[18:36:10] chouhoulis: has joined #RubyOnRails
[18:40:43] jhfisc: has joined #RubyOnRails
[18:42:12] hotpancakes: has joined #RubyOnRails
[18:50:43] dionysus69: has joined #RubyOnRails
[18:51:26] dopie: has joined #RubyOnRails
[18:51:42] dopie: the joy of getting guard,live reload,rspec,zeus working together
[18:51:43] |PiP|: has joined #RubyOnRails
[18:51:46] dopie: its magical :)
[18:53:08] jhfisc: has joined #RubyOnRails
[18:54:11] theunraveler: has joined #RubyOnRails
[18:56:32] |PiP|: Can anyone help me with this? https://pastebin.com/GWhzCmWC
[18:59:18] jhfisc: has joined #RubyOnRails
[19:00:22] Jason: what is the naming scheme for new rail projects?
[19:00:35] Jason: `rails new TodoList`? `rails new todolist`?
[19:01:23] havenwood: Jason: rails new todo_list
[19:02:12] havenwood: Jason: From the docs: rails new app_name
[19:02:34] Jason: havenwood: thanks :-)
[19:02:37] havenwood: http://guides.rubyonrails.org/command_line.html#command-line-basics
[19:02:39] havenwood: Jason: no prob
[19:05:20] jhfisc: has joined #RubyOnRails
[19:05:57] Jason: havenwood: added to my own notes, https://gist.github.com/jasonharrison/606da10fad6f40335fc34552fa163b7b/revisions#diff-8a2718e4aa22e4b51b74a52010e8c754
[19:05:59] Jason: thanks again :-)
[19:08:26] boykoc: has joined #RubyOnRails
[19:10:13] cagomez: has joined #RubyOnRails
[19:11:00] bronson: has joined #RubyOnRails
[19:11:12] jhfisc: has joined #RubyOnRails
[19:12:45] ascarter: has joined #RubyOnRails
[19:19:51] adlerdias: has joined #RubyOnRails
[19:20:39] gusrub: has joined #RubyOnRails
[19:26:29] netzfisch: has joined #RubyOnRails
[19:26:58] cagomez: has joined #RubyOnRails
[19:27:13] jhfisc: has joined #RubyOnRails
[19:33:51] jhfisc: has joined #RubyOnRails
[19:41:55] cagomez: has joined #RubyOnRails
[19:42:27] ascarter_: has joined #RubyOnRails
[19:43:33] hahuang65: has joined #RubyOnRails
[19:43:45] cagomez: has joined #RubyOnRails
[19:45:04] adlerdias_: has joined #RubyOnRails
[19:48:08] gambl0re: has joined #RubyOnRails
[19:54:44] gusrub: has joined #RubyOnRails
[19:54:53] ascarter: has joined #RubyOnRails
[19:55:04] ahrs: has joined #RubyOnRails
[19:55:07] cam27: has joined #RubyOnRails
[19:58:33] workmad3: has joined #RubyOnRails
[20:00:46] ascarter: has joined #RubyOnRails
[20:03:35] ascarter: has joined #RubyOnRails
[20:08:17] cagomez: has joined #RubyOnRails
[20:12:01] bronson: has joined #RubyOnRails
[20:16:13] aajjbb: has joined #RubyOnRails
[20:16:37] rakm: has joined #RubyOnRails
[20:22:22] hotpancakes: has joined #RubyOnRails
[20:22:54] jhfisc: has joined #RubyOnRails
[20:26:14] jhfisc: has joined #RubyOnRails
[20:29:02] cagomez: has joined #RubyOnRails
[20:31:17] jhfisc: has joined #RubyOnRails
[20:36:37] jhfisc: has joined #RubyOnRails
[20:40:51] mikecmpbll: has joined #RubyOnRails
[20:41:20] netzfisch: has joined #RubyOnRails
[20:41:42] jhfisc: has joined #RubyOnRails
[20:42:34] cagomez: has joined #RubyOnRails
[20:43:53] TvL2386: has joined #RubyOnRails
[20:48:16] jhfisc: has joined #RubyOnRails
[20:52:14] DrYockel: has joined #RubyOnRails
[20:53:21] hotpancakes: has joined #RubyOnRails
[21:00:45] DrYockel: has joined #RubyOnRails
[21:05:52] googleplex: so i know this is going to be a total longshot in here but.. is anyone in here fluent enough in ruby on rails to assist me on a project, my coder dropped off the face of the earth. i need a almost complete website made, then more stuff down the line so there will be good work.
[21:13:02] bronson: has joined #RubyOnRails
[21:13:20] srinidhi: has joined #RubyOnRails
[21:14:24] mikecmpbll: has joined #RubyOnRails
[21:19:09] gusrub: has joined #RubyOnRails
[21:23:45] hotpancakes: has joined #RubyOnRails
[21:27:13] mlt-: has joined #RubyOnRails
[21:27:49] mlt-: How would I execute some sql before deletion from a table takes place with minitest?
[21:28:23] mlt-: I have referential integrity set in my DB, that also uses versioning (temporal_tables extension of PG)
[21:30:38] mlt-: I mean I'm getting errors running rake test saying that DB constraint prevents delete from my.table
[21:31:08] fschuindt1: has joined #RubyOnRails
[21:37:31] cagomez: has joined #RubyOnRails
[21:48:02] ascarter: has joined #RubyOnRails
[21:48:56] crankharder: has joined #RubyOnRails
[21:49:50] ElFerna: has joined #RubyOnRails
[21:55:32] mikecmpbll: has joined #RubyOnRails
[21:57:28] username1: has joined #RubyOnRails
[22:04:21] aclark: has joined #RubyOnRails
[22:05:13] high_fiver: has joined #RubyOnRails
[22:07:00] hotpancakes: has joined #RubyOnRails
[22:10:21] cagomez: has joined #RubyOnRails
[22:13:51] bronson: has joined #RubyOnRails
[22:21:19] cam27: has joined #RubyOnRails
[22:24:59] Radar: GOOD MORNING
[22:25:15] Radar: googleplex: how much per hour are you paying?
[22:26:24] mikecmpbll: has joined #RubyOnRails
[22:30:52] Radar: googleplex: also: your request is very vague / non-specific. "complete website" could mean anything from a blog with comments enabled all the way up to super complex apps.
[22:31:05] mtkd: has joined #RubyOnRails
[22:39:17] wethu: has joined #RubyOnRails
[22:39:21] Radar: googleplex: for instance, it would be helpful to know for freelancers out there if you expect this project to take 3 months for the initial part or 3 weeks
[22:39:35] Radar: Guessing that if you'd care you'd reply sooooo whatevs.
[22:43:37] Rodya_: has joined #RubyOnRails
[22:51:23] cam27: has joined #RubyOnRails
[22:56:26] ElFerna: has joined #RubyOnRails
[23:01:52] mikecmpbll: has joined #RubyOnRails
[23:04:47] uksio: has joined #RubyOnRails
[23:14:42] bronson: has joined #RubyOnRails
[23:15:38] aperkins81: has joined #RubyOnRails
[23:21:06] duderonomy: has joined #RubyOnRails
[23:21:47] cam27: has joined #RubyOnRails
[23:23:56] hahuang65: has joined #RubyOnRails
[23:27:06] Rodya_: has joined #RubyOnRails
[23:27:17] hotpancakes: has joined #RubyOnRails
[23:34:38] Radar: Seems like googleplex has dropped off the face of the earth too.
[23:36:51] Papierkorb: They post that every few days
[23:36:59] Papierkorb: Maybe every day, dunno
[23:40:15] googleplex: check your pm
[23:40:25] Radar: I don't see anything.
[23:45:12] havenwood: googleplex: if you paste a gist with a few details you might get more bites
[23:45:26] Radar: [09:45:15] <googleplex> its going to be vague until a NDA would be signed.
[23:45:28] Radar: Yeah nah mate
[23:46:56] Jason: Radar: uhhh, lol
[23:47:01] googleplex: non discloser agreement is a bad thing?
[23:47:03] Jason: Radar: "i have to have you sign a NDA"
[23:47:08] Jason: Radar: "about what?"
[23:47:12] Jason: Radar: "i can't tell you yet"
[23:47:21] googleplex: no i told him it is an auction website
[23:47:36] Jason: googleplex: it's generally taboo to sign one unless the developer has a very good idea of what they're doing
[23:47:44] Jason: googleplex: plus, NDAs are largely unenforcable, btw
[23:48:13] googleplex: jason yeah sign the NDA and ill drop the info
[23:48:16] Radar: googleplex is asking people to give him a quote, but in order to quote you need to know the size + scope of the project... except you can't know that without first signing the NDA. HILARIOUS.
[23:48:19] googleplex: that doesnt mean you have to take on the project
[23:48:28] Radar: I ain't signing shit.
[23:48:32] Jason: googleplex: but why would I sign a NDA if i don't know if i'm going to take on the project or not?
[23:48:36] Radar: ^^^ ^ ^ ^^^
[23:48:42] googleplex: well as i told radar
[23:48:46] Jason: signing things willy-nilly is bad
[23:48:48] Radar: "Simple auction site" LOL
[23:48:58] Radar: Yeah I've taken on contracts like this in the past. "Simple" is crap.
[23:49:06] Jason: googleplex: i understand your perspective, seriously - but i think you should reconsider whether the NDA is even needed, tbh
[23:49:10] googleplex: all i need is a simple auction website at this point to use as a base to show the backers that we have found somone capable
[23:49:11] knight33: has joined #RubyOnRails
[23:49:16] Radar: _starts out_ simple. Then you want more features. Scope creeps up. You get shitty. I get underpaid. No thank you.
[23:49:36] Jason: Radar: not necessarily saying googleplex will become that, but isn't it sad that happens a lot
[23:49:56] Jason: googleplex: my parents were attorneys, the attorney side of me is coming out :-P
[23:50:03] Radar: Jason: Yup. I've been burned by this I reckon more than 5 times so I'm very hesitant to take on anything like this that is underscoped and initally disrepectful.
[23:50:05] Jason: googleplex: one, i think you need to reconsider whether the NDA is really even needed, tbh
[23:50:16] Radar: There is nothing new under the sun.
[23:50:24] googleplex: well this idea has the ability to make alot of money
[23:50:27] Radar: hahahahaha
[23:50:36] Radar: Oh my goodness you're wheeling out all the classic lines! This is so much fun.
[23:50:48] Jason: googleplex: what we're trying to tell you is that the NDA oftentimes scares people off -- especially if the scope isn't defined...
[23:50:49] googleplex: *sigh one minute
[23:51:06] Jason: googleplex: i'm being completely serious: you should reconsider whether a NDA is even warranted
[23:51:15] Radar: I have an idea to make a lot of money too. It's called "work with clients who know what the hell they're on about"
[23:51:17] Jason: googleplex: remember that NDAs can be very difficult to enforce
[23:51:21] Radar: Has worked out pretty well for me so far.
[23:51:23] Jason: so even if there is a breach, yeah...
[23:51:41] Jason: Radar: i don't have a ton of stories about NDAs, but i have had a few lol'zy lawsuits
[23:52:09] googleplex: well this is my first time hiring somone and i dont want to get fucked
[23:52:17] Jason: googleplex: that's all the more reason not to have a NDA tbh
[23:52:18] cam27: has joined #RubyOnRails
[23:52:47] Jason: googleplex: i'm being serious, honestly. you need to reconsider whether a NDA is even needed. remember, NDAs can be hard to enforce
[23:53:02] Jason: googleplex: you want to be more concerned that you're working with an established developer
[23:53:05] Jason: professional, etc
[23:53:26] Jason: the more eager a developer is to enter into a NDA, the less experience they've had
[23:53:30] Jason: not even joking
[23:54:09] Radar: If you share your idea _privately_ with a consultant it's very unlikely that they're just going to run off with it and make the thousands / millions / whatever that you wanted to. It's going to take a lot of work to do that and realistically, the smartest developers won't do work without getting paid for it... I don't mean the "inevitable" payout at the end of the project, I mean something to pay the rent / mortgage monthly.
[23:54:09] googleplex: its an auction website for homes...
[23:54:18] googleplex: so literally
[23:54:34] googleplex: my auction website would work and be tweaked to fit that criteria
[23:54:34] Jason: googleplex: here. let me try to explain what i'm saying
[23:54:55] Jason: what do you have to protect that i couldn't do myself
[23:54:58] jhfisc: has joined #RubyOnRails
[23:55:00] Jason: a developer
[23:55:35] Jason: do you have specific concepts that others don't have
[23:56:24] Jason: and what's the scope of it
[23:56:36] Jason: do you have a specific method of finding houses to list
[23:56:43] Jason: a specific way to identify clients
[23:56:49] googleplex: i got all that
[23:56:52] googleplex: but literally
[23:56:54] Jason: in that case, you actually would want to see an attorney
[23:56:55] googleplex: all i need right now
[23:57:00] googleplex: to get the extra funding
[23:57:06] Jason: so that you have a good contract to protect everyone
[23:57:10] googleplex: is a protoype auction website
[23:57:27] Jason: so why is the NDA needed for that
[23:57:28] googleplex: jason im fully aware ive got an attourney or two
[23:57:47] googleplex: first thing i was told make sure somone would be ok to sign an nda and dont give your entire idea out
[23:57:58] Jason: but you have to identify the scope clearly
[23:58:07] Jason: nobody is just going to sign a vague nda
[23:58:26] Radar: googleplex: most contractors these days won't do upfront quotes because of the tendency of projects to have their scope creep. What the good ones will do is say something like: "my hourly rate is $X per hour, and I can work Y hours a week, for Z weeks, so that would be $X*Y*Z". For instance, my hourly rate is $150/hr and I can work 40hr weeks. I think a prototype of this would take a month, so that's 160hrs, or $24,000.
[23:58:47] Jason: i couldn't have said it better than Radar
[23:58:51] Radar: Although I'm currently employed fulltime so you can't hire me :)
[23:58:53] Jason: the scope needs to be clearly defined
[23:59:05] googleplex: ok also i didnt appreciate you calling me out in public radar, however i do appreciate the info im getting now
[23:59:15] Radar: googleplex: understood
[23:59:28] Radar: And you'd want to check in with the developer about every day or two just to see how they're progressing. Daily "standups" are good like that.
[23:59:45] googleplex: also in my haste i made you this radar http://imgur.com/a/jpSrp