« Back to channel list

#RubyOnRails - 07 October 2015

« Back 1 day Forward 1 day »
[00:00:40] andersoldahl: has joined #RubyOnRails
[00:02:17] w0rd-driven: has joined #RubyOnRails
[00:05:01] superlou: has joined #RubyOnRails
[00:07:11] jellyjellyrobot: has joined #RubyOnRails
[00:08:16] craysiii: okay. can I assign values to the flash in a respond_to before the format declarations, outside of the format blocks?
[00:09:00] jellyjellyrobot: has joined #RubyOnRails
[00:09:40] inanepenguin: has joined #RubyOnRails
[00:09:55] andersoldahl: has joined #RubyOnRails
[00:09:56] zemmihates: has joined #RubyOnRails
[00:11:27] jellyjellyrobot: has joined #RubyOnRails
[00:12:25] calleerlandsson: has joined #RubyOnRails
[00:12:26] helpa: Why don't you try it and find out for yourself?
[00:12:40] smathy: craysiii, yes, although now you can provide flash messages in the redirect_to args.
[00:13:05] craysiii: Radar i should have seen that coming :P
[00:13:10] Radar: craysiii: yup :P
[00:13:40] craysiii: thing is im building my controller before my views, can't try yet! er at least i dont think i can..
[00:14:24] riotjones: has joined #RubyOnRails
[00:15:21] solofounder: has joined #RubyOnRails
[00:15:27] ngscheurich: has joined #RubyOnRails
[00:15:31] Aeyrix: has joined #RubyOnRails
[00:15:36] solofounder: has left #RubyOnRails: ()
[00:17:38] Radar: but you're writing controller specs
[00:17:40] Radar: so you can test in that
[00:18:26] smathy: I can hear Radar's evil laugh from here.
[00:18:39] Radar: MWAHAHAHAHA *cough cough cough* DAMN THIS FLU
[00:18:45] Radar: Plane lurgy == worst lurgy
[00:18:55] sevenseacat: railscamp lurgy = worse
[00:19:02] FailBit: just upgraded production to mongoid 5
[00:19:05] Radar: oh yeah, it was
[00:19:07] FailBit: nothing exploded
[00:19:08] craysiii: ah, i was glancing over controller specs earlier. I'll try to implement them :)
[00:19:14] Radar: sevenseacat: good point
[00:19:26] Radar: I feel like I will recover by the weekend with this one
[00:19:30] slash_nick: metal's the best lurgy
[00:19:34] FailBit: also if you have to eval to make a test
[00:19:40] FailBit: you should probably rethink your test system
[00:19:43] FailBit: because fuck rspec
[00:19:45] stardiviner: has joined #RubyOnRails
[00:19:56] Guest123456666: has joined #RubyOnRails
[00:19:59] Radar: someone has opinions :P
[00:20:15] Radar: I don't care what you use. Just please test with *something* before asking "is X going to do Y?"
[00:20:28] FailBit: I'm taking this codebase to minitest
[00:20:46] ZucchiniZe: has joined #RubyOnRails
[00:20:47] safety_cut: has joined #RubyOnRails
[00:21:17] craysiii: there should be a !isXY
[00:21:32] FailBit: !xyproblem
[00:22:00] smathy: That's a different beast though.
[00:22:12] Radar: A watched build never... oh there it goes
[00:22:15] goobagar: has joined #RubyOnRails
[00:22:16] jglover: has joined #RubyOnRails
[00:22:28] jglover: rails helper code does not seem to be reloading unless i do a full server restart
[00:22:30] jglover: any ideas why?
[00:22:38] Radar: jglover: steps to reproduce in a new app plzkthx
[00:22:51] someguy1010: has joined #RubyOnRails
[00:23:29] smathy: jglover, helper? You said it was assets before no?
[00:23:38] jglover: smathy:both im seeing now
[00:23:43] jglover: but I think helper may narrow it down
[00:23:43] Shoutsid: has joined #RubyOnRails
[00:23:49] jglover: assets could be for a number of reasons
[00:23:50] FailBit: also, not blaming rspec in particular:
[00:23:52] Palsson: has joined #RubyOnRails
[00:23:53] FailBit: if your tests take 10 minutes to run
[00:23:55] FailBit: who is going to run them
[00:24:12] jglover: driving me absolutely insane
[00:24:22] Radar: FailBit: CI
[00:24:25] smathy: jglover, have you killed spring?
[00:24:53] FailBit: that means getting a private CI server, because private codebase etc
[00:24:57] jglover: smathy:not running
[00:25:08] Radar: FailBit: buildkite.com
[00:25:10] iateadonut: has joined #RubyOnRails
[00:25:12] smathy: jglover, and I'm assuming you have a normal development.rb - especially: config.consider_all_requests_local = true
[00:25:13] helpa: Next question, please!
[00:25:41] jglover: smathy: yes
[00:25:44] jglover: Rails 3.2 btw, if that helps
[00:25:46] Radar: jglover: Can you or can you not reproduce this issue in a new Rails application?
[00:26:46] smathy: jglover, gtk - but I don't remember what was different. What's the story of this app, has this always happened?
[00:27:07] jglover: smathy:no, just started happening this morning
[00:27:19] artto: has joined #RubyOnRails
[00:27:23] jglover: must be on master somewhere, i think i merged earlier
[00:27:32] Radar: jglover: git bisect
[00:27:37] jglover: Radar: I don't know. I can try but it takes me a moment.
[00:27:50] jglover: dang it, yeah it's on master
[00:27:57] jglover: im going to see if I can get another dev to repro
[00:28:20] smathy: jglover, yeah, any new gems or config changes?
[00:28:35] smathy: ...and yeah, git bisect is awesome.
[00:28:52] Scriptonaut: has left #RubyOnRails: ()
[00:30:18] nKulo: has joined #RubyOnRails
[00:35:37] Guest123456666: has joined #RubyOnRails
[00:37:13] appcademics: has joined #RubyOnRails
[00:37:19] Lytol: has joined #RubyOnRails
[00:42:14] pydave6367: has joined #RubyOnRails
[00:43:52] rickmasta: has joined #RubyOnRails
[00:44:06] FailBit: https://41.media.tumblr.com/eb02958c7c94483b2a1a580f312a2153/tumblr_nvifyhEZA11t95h1uo1_1280.jpg
[00:44:47] FailBit: it's beautiful
[00:46:10] Seich: has joined #RubyOnRails
[00:47:24] willardg: has joined #RubyOnRails
[00:55:27] Guest123456666: has joined #RubyOnRails
[00:55:30] IFrank00: has joined #RubyOnRails
[00:57:20] yaymukund: has joined #RubyOnRails
[01:02:02] lacuna: has joined #RubyOnRails
[01:03:39] _djbkd: has joined #RubyOnRails
[01:04:54] safety_cut: has joined #RubyOnRails
[01:05:42] andersoldahl: has joined #RubyOnRails
[01:06:35] lacuna_: has joined #RubyOnRails
[01:07:37] inanepenguin: has joined #RubyOnRails
[01:11:45] Maletor: has joined #RubyOnRails
[01:14:05] User458764: has joined #RubyOnRails
[01:15:00] FailBit: https://i.imgur.com/t5pIKl5.jpg
[01:15:14] riotjones: has joined #RubyOnRails
[01:18:40] quazimodo: has joined #RubyOnRails
[01:18:43] quazimod1: has joined #RubyOnRails
[01:20:26] sarink: has joined #RubyOnRails
[01:21:52] sankaber: has joined #RubyOnRails
[01:23:03] _djbkd: has joined #RubyOnRails
[01:24:24] inoter: has joined #RubyOnRails
[01:26:17] ellisTAA: has joined #RubyOnRails
[01:31:13] Limix: has joined #RubyOnRails
[01:31:14] dllama: has joined #RubyOnRails
[01:32:02] craysiii: https://gist.github.com/craysiii/7820f97b3696f39cb9f3 i can't seem to figure out why form keeps trying to POST to a route that i haven't defined and doesn't exist.
[01:32:24] blackmesa: has joined #RubyOnRails
[01:33:08] sevenseacat: craysiii: maybe try specifying the url for the form
[01:33:10] sevenseacat: url: whatever
[01:33:29] craysiii: isn't that what user_apps_path is supposed to do?
[01:34:04] inoter: has joined #RubyOnRails
[01:34:17] sevenseacat: so its just trying to use the current URL
[01:34:24] slash_nick: craysiii: are you confusing form_for with form_tag?
[01:34:29] Technodrome: has joined #RubyOnRails
[01:35:01] hephaestus_rg: has joined #RubyOnRails
[01:35:55] craysiii: in all my other projects i have done it seemingly the same and haven't run into this issue
[01:37:07] slash_nick: form_for takes an object as first argument... you're passing a path to form_for, as if you were used to using "form_tag" on all your other projects
[01:37:23] rakm: has joined #RubyOnRails
[01:37:55] slash_nick: compare http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html / http://apidock.com/rails/ActionView/Helpers/FormTagHelper/form_tag
[01:38:49] craysiii: okay, so you're right, in my prior projects i either passed an object or an array of objects. I changed my form to pass the object, but i'm still running into the same issue
[01:39:06] dstarh: has joined #RubyOnRails
[01:39:50] slash_nick: "rake routes"?
[01:40:04] craysiii: https://gist.github.com/craysiii/7820f97b3696f39cb9f3 updated
[01:40:11] craysiii: i did post it with my question tho :)
[01:41:04] slash_nick: [:users, app]?
[01:41:50] slash_nick: [current_user, app] rather, probably
[01:41:54] craysiii: no different
[01:43:26] SteenJobs: has joined #RubyOnRails
[01:43:37] FCser: has joined #RubyOnRails
[01:43:52] craysiii: i don't get why it's working now and wasn't before when i had previously tried that combination before asking the question -.-
[01:44:11] slash_nick: craysiii: so... what worked... form_for ____?
[01:44:24] craysiii: form_for [current_user, app]
[01:44:46] craysiii: at least i got past that error, now im having an error in my create controller :D
[01:45:06] slash_nick: craysiii: your first gist was just `form_for app`... good news anyway :)
[01:46:00] craysiii: haha that was after bugging around with it for a while before asking, didn't want to have a DOH moment, seems i couldn't avoid it :P
[01:47:04] blowmage: has joined #RubyOnRails
[01:48:37] jenrzzz: has joined #RubyOnRails
[01:54:23] craysiii: https://gist.github.com/craysiii/e879a3bcf0046437f5af im having a little trouble adding a conditional in order to render the correct page, along with using respond_to
[01:56:27] sevenseacat: are you even using the respond_to ?
[01:57:36] craysiii: thats the thing, i don't necessarily know HOW i should be handling this. I want to be able to respond to json, but if its not, i want to differenciate between which view i render depending on whether or not the app saved correctly.
[01:57:44] craysiii: i feel like this is really easy and im just missing it
[01:57:45] hephaestus_rg: has joined #RubyOnRails
[01:57:51] sevenseacat: well you're not responding to json at all
[01:58:28] Guest84846: has joined #RubyOnRails
[01:58:46] craysiii: im also not making json requests (yet)
[01:58:59] sevenseacat: you've got html and js in there - are you using the js at all?
[01:59:10] craysiii: in the future i plan to
[01:59:15] craysiii: which is why im trying to figure it out now
[01:59:27] sevenseacat: KISS, YAGNI, etc.
[01:59:29] Nuck: Is there any way to just permit any nested hash/array for keys in ActionController::Parameters
[01:59:38] craysiii: yeah you're right.
[01:59:40] sevenseacat: Nuck: yes. is it a good idea? no.
[02:00:02] Nuck: sevenseacat: It isn't usually I know
[02:00:16] Nuck: But in this case I need users to be able to edit any titles in any language
[02:00:20] Nuck: And add/remove languages
[02:00:25] Nuck: Which I have in hstore
[02:00:40] sevenseacat: why does that mean they're just submitting arbitrary data
[02:00:44] Nuck: And also add/remove abbreviated titles, which is using an array
[02:00:54] Nuck: The keys in the hstore and array are all but arbitrary
[02:01:02] Nuck: Well, the array *is* arbitrary
[02:01:03] sevenseacat: then you can specify them in your permit method
[02:01:07] Nuck: But the hstore is just ISO8601
[02:01:11] Nuck: Er, not 8601
[02:01:18] Nuck: What's the one for country/language codes
[02:01:44] Nuck: ActionController::Parameters.new({ titles: { ja_en: 'Boku no Pico' } }).permit(:titles)
[02:01:45] sevenseacat: then whats the 'permit any nested hash/array'
[02:01:55] Nuck: Returns {}
[02:02:03] Nuck: And says "Unpermitted parameter: titles"
[02:03:34] Nuck: I want to just mass assign the hstore
[02:03:49] rhizome: permit that parameter
[02:04:00] Nuck: >.permit(:titles)
[02:04:11] Nuck: That's why I'm confused by the output I'm getting
[02:04:29] rhizome: is that what your params looks like?
[02:04:44] Nuck: Yes, I gave the exact line of code I just ran in irb
[02:04:50] Nuck: The reduced test case
[02:06:13] sevenseacat: because title isn't a scalar value, that doesn't work
[02:06:22] sevenseacat: titles, sorry
[02:06:28] Nuck: That's what I'm figuring
[02:06:36] Nuck: But how do I work around it to allow any keys?
[02:06:53] Radar: Nuck: params.permit!
[02:07:07] sevenseacat: http://guides.rubyonrails.org/action_controller_overview.html#strong-parameters also see 'outside the scope'
[02:07:09] Radar: Aim away from face and all the other warnings.
[02:07:34] sevenseacat: I wouldn't do permit! because that allows for nested nasties and other things.
[02:07:41] Pupeno: has joined #RubyOnRails
[02:09:19] Nuck: So basically I have to roll my own?
[02:09:38] sevenseacat: did you read the link?
[02:10:00] sevenseacat: so it tells you what to do
[02:10:04] Nuck: But it doesn't work for my needs
[02:10:06] sevenseacat: you don't have to roll anything
[02:10:19] PhantomS_: has joined #RubyOnRails
[02:10:25] Nuck: I'm using this to wrap a whole declarative deserializer which can rip something from JSONAPI params
[02:10:29] Nuck: And turn it into a mass-assigned instance
[02:10:42] Nuck: I'll just drop from strong parameters to slice anyways
[02:11:13] sevenseacat: every question you've had, we've given you solutions for, and all you have to say is IT DOESNT WORK
[02:11:36] Radar: maybe it doesn't work? :P
[02:11:39] Nuck: Well, because with this I don't know the keys in advance
[02:11:44] Nuck: Which ones will have hashes
[02:11:51] Nuck: So that solution won't work
[02:12:16] sevenseacat: but you can use slice even though you don't know the keys? :D
[02:12:20] Radar: Nuck: I think in this ONE instance you can get away with permitting all the parameters through and then probably having a validation layer further up the chain (be it in the controller, model or otherwise... I don't care) that validates they passed in right languages.
[02:12:32] Nuck: I know the keys, I just don't know which ones will be hashes or scalars
[02:12:45] Nuck: I'm just using it as a glorified slice right now tbh
[02:13:09] ValicekB: has joined #RubyOnRails
[02:13:51] wildlander: has joined #RubyOnRails
[02:14:36] Nuck: Because it doesn't matter, the model validations will ensure valid responses
[02:14:42] Nuck: I just care about the _what_ can be set
[02:14:43] krz: has joined #RubyOnRails
[02:14:48] Nuck: Not the values that are set
[02:15:14] sevenseacat: yeah I'm not going to be responsible for giving dangerous advice.
[02:15:35] jun: has joined #RubyOnRails
[02:15:43] Nuck: I'm not sure I follow what's dangerous? I'm ensuring that only the attributes which are safe to set, are set
[02:16:08] Nuck: If I'm not mistaken this is a heavier-weight equivalent of the old attr_accessible API
[02:16:12] Nuck: pre-strong parameters
[02:16:34] riotjones: has joined #RubyOnRails
[02:17:50] IFrank00: has left #RubyOnRails: ()
[02:17:57] riotjones: has joined #RubyOnRails
[02:18:07] IFrank00: has joined #RubyOnRails
[02:22:52] Shoutsid: has joined #RubyOnRails
[02:22:59] Nuck: Anyways things for the help
[02:25:20] slash_nick: Nuck: we just don't know what you'll do with those parameters :)... and if not you, what the next dev will do... it leaves the door open
[02:25:35] Nuck: The answer is assign_attributes
[02:25:48] Nuck: The process is filter, stuff, validate
[02:26:48] baweaver: has joined #RubyOnRails
[02:26:59] Guest123456666: has joined #RubyOnRails
[02:28:45] raboid: has joined #RubyOnRails
[02:29:05] simkessy: Is there a way to get the reason for a sql rollback in the server logs?
[02:29:58] htmldrum: Anyone know why an instance of activerecord relation gives different results when you send it `#first` versus `#at(0)`?
[02:30:03] darrencauthon: has joined #RubyOnRails
[02:30:05] raboid_: has joined #RubyOnRails
[02:30:35] Lytol: has joined #RubyOnRails
[02:31:44] bruno-: has joined #RubyOnRails
[02:33:34] Radar: htmldrum: yes
[02:34:26] blackmesa: has joined #RubyOnRails
[02:35:02] Radar: htmldrum: hint: look at the query that is executed.
[02:35:45] IFrank00: Hello I need some help with this https://gist.github.com/Frank004/f701db4eff9835f75f5d I need to scope out p.users that dont have Task. Task is another table
[02:36:05] ChadyG: has joined #RubyOnRails
[02:37:47] skyjumper: has left #RubyOnRails: ()
[02:41:12] inanepenguin: has joined #RubyOnRails
[02:42:53] sarink: has joined #RubyOnRails
[02:43:26] stardiviner: has joined #RubyOnRails
[02:43:47] chipotle: has joined #RubyOnRails
[02:44:18] simplyianm: has joined #RubyOnRails
[02:45:20] chipotle: Radar: you da man
[02:45:28] Radar: chipotle: yeah?
[02:45:30] srinidhi: has joined #RubyOnRails
[02:45:52] chipotle: yeah you are
[02:45:54] sevenseacat: apparently so :P
[02:46:09] Radar: YAY I'M THE MAN
[02:46:12] chipotle: i got the number of the cute nurse that took care of me once she saw i was reading your book and asked what it was about and the illustration on the cover
[02:46:20] chipotle: luckily i read the part in the book abuot it
[02:46:50] chipotle: instead of just saying "it's a tech book and ever since the first tech specific publish in the 90s put animals on the cover that don't mean anything, everybody else does too :)
[02:47:25] sevenseacat: I had a feeling it was going to be R4IA-related.
[02:47:52] simplyianm: has joined #RubyOnRails
[02:48:26] Shoutsid: has joined #RubyOnRails
[02:48:41] havenwood: has joined #RubyOnRails
[02:48:52] pydave6367: has joined #RubyOnRails
[02:49:49] simplyianm: has joined #RubyOnRails
[02:50:27] zhkirill: has joined #RubyOnRails
[02:52:24] DmitryBochkarev: has joined #RubyOnRails
[02:52:59] chipotle: Radar: she's a cute asian girl, thank you again
[02:53:11] Radar: Thank Manning, not me
[02:53:12] blowmage: has joined #RubyOnRails
[02:53:44] joshkovach: has joined #RubyOnRails
[02:53:50] chipotle: Radar: well, i also name dropped you say, yeah, my buddy wrote the book
[02:54:38] simkessy: Hey, I'm having trouble with creating a dropdown for time zone selection in my app I put the details here if anyone is willing to take a look http://stackoverflow.com/questions/32983028/time-zone-dropdown-where-select-value-is-index
[02:55:00] Miron_: has joined #RubyOnRails
[02:55:03] marienz: has joined #RubyOnRails
[02:55:57] Radar: you had me up until "rails admin"
[02:56:14] simkessy: rails admin no good?
[02:56:41] helpa: Please do not use active_admin, rails_admin or any other gems to build your admin interfaces. Instead, build it yourself. This will lead you to a safe path of understanding of the code, rather than to the Hell that is those gems.
[02:56:48] Radar: I have opinions :)
[02:57:01] simkessy: wow, that bad eh
[02:58:09] Radar: You're better off storing them as a string in the DB because then Time.zone = "blah" will work
[02:58:13] Radar: I don't think it works with numbers
[02:58:34] dEPy: has joined #RubyOnRails
[02:59:16] simkessy: in console, that command pretty much just returns a number
[02:59:22] simkessy: so not very useful
[03:01:19] Radar: Time.zone= returns a number?
[03:01:38] EminenceHC: has joined #RubyOnRails
[03:02:16] simkessy: My bad User.first.time_zone
[03:02:27] simkessy: since i'm storing them as indexes
[03:02:33] simkessy: Time.zone works fine
[03:02:36] Radar: indexes of an array?
[03:02:38] Radar: of timezones?
[03:02:40] Radar: which change all the time?
[03:03:27] simkessy: I figure this ActiveSupport::TimeZone.us_zones.map { |z| z.name.to_s } would always give the same result
[03:03:56] Radar: until they change the timezones again, sure.
[03:04:41] sevenseacat: everyone working with timezones needs to watch https://www.youtube.com/watch?v=-5wpm-gesOY
[03:05:08] sevenseacat: ACTION gets an iced coffee and watches it again
[03:05:17] simkessy: watching it now
[03:05:28] simkessy: it's become surprisingly really annoying
[03:05:35] simkessy: I thought it would have been the simplest thing to set up and move one
[03:06:08] simkessy: I guess it's mostly just Rails Admin that's complicating things
[03:06:18] andersoldahl: has joined #RubyOnRails
[03:06:45] sevenseacat: all of this guy's videos are awesome
[03:06:46] Aeyrix: yay activeadmin
[03:07:23] rakm: has joined #RubyOnRails
[03:08:26] srinidhi: has joined #RubyOnRails
[03:08:34] lacuna: has joined #RubyOnRails
[03:09:34] gambl0re: when a form has errors i want to render the index page that i put in the else statement. i put -> render "index" but it renders localhost/lists instead of just localhost. why's it doing that. i already set routes so root 'lists#index'
[03:10:13] Radar: gambl0re: !rule0
[03:10:13] helpa: gambl0re: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us.
[03:10:21] Radar: 156 days and still yet getting used to Rule 0.
[03:11:47] sevenseacat: the video gets nutty but I love it.
[03:11:49] Guest123456666: has joined #RubyOnRails
[03:12:02] braincrash: has joined #RubyOnRails
[03:12:35] gambl0re: https://gist.github.com/rickywid/bda8eb288de9733d5112
[03:13:02] Radar: gambl0re: render doesn't change the URL of the request.
[03:13:30] gambl0re: ok so how do i make it so that if the form fails to submit it renders to root url
[03:13:41] gambl0re: i cant do render root_url
[03:13:52] Radar: make it submit to "/"
[03:13:59] Radar: change this: https://gist.github.com/rickywid/bda8eb288de9733d5112#file-gistfile2-txt-L1
[03:14:19] Radar: there surely must be a way to specify a URL for simple_form_for?
[03:14:27] Radar: there's your homework. glhf
[03:14:50] User458764: has joined #RubyOnRails
[03:15:03] simkessy: sevenseacat: Even I'm getting frustrated as it goes along
[03:15:32] dodgepong: has joined #RubyOnRails
[03:15:57] dodgepong: has left #RubyOnRails: ("Leaving")
[03:16:43] dodgepong`mac: has joined #RubyOnRails
[03:17:01] sevenseacat: I think for my plane trip next week I'm just going to queue up every computerphile and numberphile and tom scott video and that'll keep me busy and entertained for hours
[03:17:41] mehwork: that's enough boredom to put you to sleep for hours
[03:18:10] mehwork: maybe put some cspan on in the background
[03:18:11] sevenseacat: its fascinating
[03:18:20] Radar: gambl0re: Do you have any more questions? I've given you the lead towards your answer. It's up to you to find it now.
[03:18:38] gambl0re: what is glhf
[03:18:41] riotjones: has joined #RubyOnRails
[03:18:46] Radar: gambl0re: good luck have fun
[03:19:28] Technodrome: has joined #RubyOnRails
[03:20:31] iliketurtles: has joined #RubyOnRails
[03:20:35] Radar: pretty much
[03:20:35] EminenceHC: has joined #RubyOnRails
[03:21:14] dodgepong`mac: has joined #RubyOnRails
[03:22:04] dodgepong`mac: has joined #RubyOnRails
[03:22:36] simkessy: sevenseacat: great vid, decided to just keep it simple and go back to storing it as a string and forgot about having it work with rails admin
[03:23:00] dodgepong`mac: Hey all, I'm new to Ruby on Rails and I'm having some trouble setting up my first project. I'm getting the following error when running `rails new projectname` and my Googles are failing me a bit: https://gist.githubusercontent.com/dodgepong/d9d357bbdfaf48d327aa/raw/e429498f5b096531cd22dcef36b8549d55de5155/gistfile1.txt
[03:23:28] dodgepong`mac: Anyone have any idea what I'm doing wrong? Sorry if this is a really newbie issue.
[03:23:48] dodgepong`mac: I've been following this guide: http://www.createdbypete.com/articles/ruby-on-rails-development-setup-for-mac-osx/
[03:24:04] dodgepong`mac: Maybe I should have just stuck with the official getting started guide
[03:24:15] Aeyrix: Ruby 2.0.0
[03:24:19] Aeyrix: Paging Radar
[03:24:29] dodgepong`mac: Hmm, I though I updated to 2.2.3
[03:24:47] Aeyrix: ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[03:24:52] Aeyrix: Much cleaner
[03:24:53] Aeyrix: much nicer
[03:24:54] Aeyrix: much easier
[03:25:06] dodgepong`mac: Will do, thanks
[03:25:13] Radar: I wrote it :D
[03:25:33] mehwork: is it better than rbenv? I'm liking rbenv more than rvm but kinda sick of having to rehash everytime i install any command
[03:26:40] xcesariox: has joined #RubyOnRails
[03:26:47] dodgepong`mac: I think the first time I started tinkering with Ruby last year I used ruby-install/chruby and not rbenv
[03:26:50] dodgepong`mac: I can't remember
[03:28:09] _3dwardsharp: has joined #RubyOnRails
[03:30:16] rclanan: has joined #RubyOnRails
[03:31:28] htmldrum: Radar: Thank you :D
[03:32:24] _3dwardsharp: hello, so i'm banging my head. i've got a job that loads seed data, and when i run the job once the seeds load fine, however i'm wanting to run the job multiple times with various arguments, so my problem is that on any subsequent run, the seeds don't actually get run, i've used `load "#{Rails.root}/db/seeds.rb"` and the first run i see the puts statements from my seeds, but on the second or more run i get no puts.
[03:32:33] _3dwardsharp: is this an eager_load thing?
[03:33:12] Radar: _3dwardsharp: where are you running it?
[03:33:25] jerin: has joined #RubyOnRails
[03:33:34] jerin: has joined #RubyOnRails
[03:33:44] _3dwardsharp: running what? calling my job test with rake test test/jobs/load_data_job_test.rb
[03:34:01] Radar: and subsequent runnings of that same command DON'T load the seeds?
[03:34:34] jenrzzz: has joined #RubyOnRails
[03:35:06] _3dwardsharp: right, so like this is my test
[03:35:07] _3dwardsharp: https://gist.github.com/edwardsharp/6bb8aba8a485cf7457e9
[03:35:12] xcv: has joined #RubyOnRails
[03:35:19] blackmesa: has joined #RubyOnRails
[03:35:28] Radar: seeds should be used for loading development data, not test data
[03:35:34] Radar: set up this data in your tests using factories or fixtures.
[03:36:52] _3dwardsharp: but it's not really a fixture. i'm initializing Spree::Countries from Carmen::Country
[03:36:58] _3dwardsharp: amongst other spree seeding...
[03:38:25] _3dwardsharp: pretty much this: https://github.com/spree/spree/blob/master/core/db/seeds.rb
[03:38:56] _djbkd: has joined #RubyOnRails
[03:42:56] Shoutsid: has joined #RubyOnRails
[03:44:23] _3dwardsharp: https://github.com/spree/spree/blob/master/core/spec/fixtures/thinking-cat.jpg lolol
[03:44:56] leslie1: has joined #RubyOnRails
[03:45:50] sevenseacat: good one Radar :P
[03:47:34] jenrzzz: has joined #RubyOnRails
[03:49:33] nya: has joined #RubyOnRails
[03:51:19] _3dwardsharp: ...so i should just fixture-ize all this seed data? i'll use these seeds in production, so that's why i'm aiming to test them...
[03:52:33] _3dwardsharp: hmm, or i just move this seed code out of the "seeds" and into a job...
[04:00:30] kp666: has joined #RubyOnRails
[04:00:39] rhizome: that's pretty much the definition of seeding
[04:01:39] rushed: has joined #RubyOnRails
[04:01:53] FrankD: has joined #RubyOnRails
[04:04:19] dEPy: has joined #RubyOnRails
[04:07:27] johnflux: has joined #RubyOnRails
[04:10:30] moeabdol: has joined #RubyOnRails
[04:11:45] jerin: has joined #RubyOnRails
[04:15:48] moeabdol: has joined #RubyOnRails
[04:19:32] riotjones: has joined #RubyOnRails
[04:19:33] EasyCo: has joined #RubyOnRails
[04:21:03] Joufflu: has joined #RubyOnRails
[04:23:12] solofounder: has joined #RubyOnRails
[04:25:03] braincra-: has joined #RubyOnRails
[04:32:23] darrencauthon: has joined #RubyOnRails
[04:33:28] simkessy: Is this wrong: <%= f.select(:sex, [['Male', 0], ['Female', 1], ['Other', 2], ['Other', 3]) %>
[04:33:54] simkessy: nvm missing clossing bracket, sorry
[04:35:59] blackmesa: has joined #RubyOnRails
[04:37:35] _3dwardsharp: http://goo.gl/As3TcH
[04:38:35] cnk: has joined #RubyOnRails
[04:40:05] simkessy: http://stackoverflow.com/questions/32983918/select-form-helper-display-existing-value
[04:40:24] psk17_: has joined #RubyOnRails
[04:40:33] Radar: Why are you not just storing it as 'Male', 'Female', 'Other'>
[04:43:43] simkessy: because I wanted a dropdown in rails_admin :(
[04:43:55] Radar: what does that have to do with anything?!
[04:44:08] Radar: f.select(:sex, ['Male', 'Female', 'Other'])
[04:44:38] simkessy: I thought you were asking why I was using the enum value
[04:45:27] sami: has joined #RubyOnRails
[04:47:48] CheckYourSix: has joined #RubyOnRails
[04:49:27] Shoutsid: has joined #RubyOnRails
[04:49:47] simkessy: Radar: working, thx
[04:53:34] SteenJobs: has joined #RubyOnRails
[04:54:01] EminenceHC: has joined #RubyOnRails
[04:56:56] EminenceHC: has joined #RubyOnRails
[05:00:00] EminenceHC: has joined #RubyOnRails
[05:02:00] dan0034001: has joined #RubyOnRails
[05:02:02] CheckYourSix: has joined #RubyOnRails
[05:03:20] dan0034001: after rvm update version of ruby, foreman will no longer run app, getting (Gem::LoadError) for all gems, i can see that the paths in the errors are leading to the old version of ruby. "$ rails s" works, but i prefer to use foreman to run sidekiq and puma locally
[05:03:49] fedexo: has joined #RubyOnRails
[05:04:21] _3dwardsharp: need to bundle?
[05:04:34] dan0034001: i did and after doing a rvm update it reinstalled all gems
[05:04:40] dan0034001: like i said rails server works just fine
[05:04:44] dan0034001: foreman wont...
[05:05:23] dan0034001: Could not find 'foreman' (>= 0) among 165 total gem(s) (Gem::LoadError)
[05:05:28] dan0034001: is the first error
[05:05:31] roshanavand: has joined #RubyOnRails
[05:05:34] dan0034001: right before that i ran bundle install
[05:05:35] _3dwardsharp: ...is foreman in yr Gemfile?
[05:06:41] sadaf2606: has joined #RubyOnRails
[05:07:18] dan0034001: but until then i was just fine.
[05:07:28] dan0034001: i must have just installed it via gem last time
[05:07:35] dan0034001: so it was only in that local dir
[05:07:47] dan0034001: and not needed at heroku obviously...
[05:08:07] dan0034001: but now i get: Your Ruby version is 2.1.5, but your Gemfile specified 2.2.
[05:08:38] sevenseacat: seems like an obvious error
[05:08:55] dan0034001: ruby -v returns: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
[05:09:36] dan0034001: Your Ruby version is 2.1.5, but your Gemfile specified 2.2.3 **
[05:09:43] dan0034001: was the error btw
[05:09:53] sevenseacat: so where is 2.1.5 coming from?
[05:10:15] dan0034001: rvm use 2.2.3
[05:10:18] dan0034001: forgot to do that
[05:10:27] rushed: has joined #RubyOnRails
[05:10:27] dan0034001: that was the version i had before updating
[05:10:52] sevenseacat: how can ruby -v give you the right version if that wasnt the version rvm was configured to use? ah, rvm, how i do not love thee
[05:11:33] dan0034001: tell me about it
[05:11:49] dan0034001: i hate server admin
[05:11:56] natevick: has joined #RubyOnRails
[05:12:08] sevenseacat: so dont use rvm?
[05:12:14] sevenseacat: or don't do server admin
[05:12:25] dan0034001: i dont lol except locally
[05:12:29] dan0034001: heroku all day
[05:12:35] chrissonar: has joined #RubyOnRails
[05:13:22] sevenseacat: lol that's hilarious, or something
[05:13:25] _3dwardsharp: if there's a ruby version in the Gemfile or maybe .ruby-version file rvm will try to load that...
[05:14:07] krz: has joined #RubyOnRails
[05:14:49] zpe: has joined #RubyOnRails
[05:15:43] User458764: has joined #RubyOnRails
[05:18:41] mclee_: has joined #RubyOnRails
[05:18:55] jun: has joined #RubyOnRails
[05:20:15] dhjondoh: has joined #RubyOnRails
[05:20:17] riotjones: has joined #RubyOnRails
[05:20:42] dan0034001: has joined #RubyOnRails
[05:26:09] agit0: has joined #RubyOnRails
[05:26:19] zpe_: has joined #RubyOnRails
[05:26:23] SteenJobs: has joined #RubyOnRails
[05:27:05] r0x0rZ: has joined #RubyOnRails
[05:27:23] EminenceHC: has joined #RubyOnRails
[05:33:31] jerin: has joined #RubyOnRails
[05:33:38] sanjayu: has joined #RubyOnRails
[05:34:52] Trynemjoel: has joined #RubyOnRails
[05:35:26] zpe: has joined #RubyOnRails
[05:36:23] aganov: has joined #RubyOnRails
[05:36:53] blackmesa: has joined #RubyOnRails
[05:38:29] rvanlieshout: has joined #RubyOnRails
[05:40:29] Macaveli: has joined #RubyOnRails
[05:40:37] dan0034001: has joined #RubyOnRails
[05:40:56] jerin: How to generate a model referencing two objects of same model type from command line?
[05:41:13] sevenseacat: by the names you want to refer to them by
[05:41:32] jerin: lets say I have an edge (v, u), where v and u are of type node
[05:41:45] sevenseacat: then refer to them as v and u if you cant think of better names
[05:42:28] jerin: rails g model edge v:references u:references will do?
[05:42:46] jerin: but how would I link them with the obj type
[05:42:48] sevenseacat: not everything can and should be done in a single command line command
[05:42:51] jerin: here, vertex
[05:43:03] sevenseacat: you specify the class name of u and v in the model
[05:43:28] jerin: That's all, no migrations required?
[05:43:41] sevenseacat: rails g model will generate a migration for that model
[05:43:52] sevenseacat: which you would have seen if you ran it when I said try it
[05:44:08] jerin: Thanks. :)
[05:46:23] willardg: has joined #RubyOnRails
[05:47:45] tagrudev: has joined #RubyOnRails
[05:48:52] gambl0re: i have a nested resource with a form, if the form fails to save i want to re-render that show page. i dont know what im doing wrong...
[05:48:59] gambl0re: https://gist.github.com/anonymous/88bcfb0da43a848b38d1
[05:49:48] gambl0re: im getting an error msg. "ActionController::UrlGenerationError in Tasks#create line 24" if someone can take a look. thanks
[05:50:15] sevenseacat: which line is that?
[05:50:37] gambl0re: line 24 inside tasks controller
[05:50:57] sevenseacat: the controller that has 11 lines?
[05:51:21] gambl0re: sorry i mean like 24. show.html file
[05:51:39] sevenseacat: because @list is nil, most likely
[05:51:47] sevenseacat: where are you defining it?
[05:52:06] sevenseacat: or task is nil. one of the two.
[05:52:10] gambl0re: task is nil
[05:52:27] sevenseacat: so why is task nil?
[05:53:00] sevenseacat: (task isn't nil)
[05:53:16] gambl0re: No route matches {:action=>"complete", :controller=>"tasks", :id=>nil, :list_id=>"17"} missing required keys: [:id]
[05:53:19] gambl0re: routing issue?
[05:53:27] sevenseacat: ahhhh thats a different issue altogether
[05:53:35] sevenseacat: see what happens when you follow rule 0 :D
[05:53:52] sevenseacat: so task.id is nil, not task
[05:54:06] sevenseacat: why is task.id nil?
[05:54:14] sevenseacat: I know the answer, but I want to see if you can figure it out.
[05:54:31] gambl0re: because there is currenly no task.id in the table
[05:54:46] IFrank00: has joined #RubyOnRails
[05:54:47] gambl0re: i have a table called Tasks
[05:54:51] gambl0re: and its empty
[05:54:59] gambl0re: so of course there is no tasks.id
[05:55:18] gambl0re: ok i dont know why...im just talking
[05:55:24] sevenseacat: you have a Task instance there
[05:55:36] sevenseacat: you asked it if it was completed, it said no
[05:55:56] gambl0re: there is completed attribute with boolean value
[05:56:03] gambl0re: inside Tasks table
[05:56:09] sevenseacat: so why would a Task not have an ID?
[05:56:19] sevenseacat: when does a Task get an ID?
[05:56:37] gambl0re: when a new task data is saved
[05:56:47] sevenseacat: so why would it not have an ID?
[05:57:06] gambl0re: if the form saves it will have an id...
[05:57:22] sevenseacat: and you're re-rendering this page when a Task *doesnt* save, arent you?
[05:57:22] riotjones: has joined #RubyOnRails
[05:57:28] gambl0re: but if it fails i want it to re-render the show page but there id field will still be empty
[05:57:43] gambl0re: thats what im trying to do
[05:57:46] eGGsha: has joined #RubyOnRails
[05:58:08] sevenseacat: so how can you not show this unsaved task on the show page?
[05:58:24] srinidhi: has joined #RubyOnRails
[05:59:05] neanderslob: has joined #RubyOnRails
[05:59:37] sevenseacat: you're already making a choice about what information to display about the task
[05:59:46] sevenseacat: eg. if its not completed, show a link to complete it
[05:59:49] lxsameer: has joined #RubyOnRails
[05:59:59] sevenseacat: how can you adapt that?
[06:00:27] gambl0re: if task.id == nil
[06:00:33] gambl0re: do something like that?
[06:01:18] sevenseacat: something a bit nicer than that, but thats the gist of it
[06:01:34] gambl0re: = link_to complete_list_task_path(@list, task.id), method: :patch do .... i need that line to display the glyphicon
[06:01:37] sevenseacat: you might do something like `if task.persisted?` (show task details)
[06:02:27] neanderslob__: has joined #RubyOnRails
[06:02:59] gambl0re: wow...it worked
[06:03:48] Lytol: has joined #RubyOnRails
[06:04:22] sevenseacat: don't sound so surprised :P
[06:05:10] gambl0re: i gotta write that helper method down...
[06:05:32] Spami: has joined #RubyOnRails
[06:05:41] neanderslob: hi all, I'm trying to get my app to download files off my amazon s3 server with a get method in my controller. I gather that I need a send_file method but can't figure out how to work it in
[06:05:55] neanderslob: my code is here: https://gist.github.com/BigMcLargeHuge/d13f7584fb1270336531
[06:06:22] yardenbar: has joined #RubyOnRails
[06:07:02] sevenseacat: neanderslob: so you're reading the file from s3 and now not sure how to send it?
[06:07:32] giantoctopus: has joined #RubyOnRails
[06:07:54] neanderslob: sevenseacat: yea, that's the idea
[06:07:56] dan0034001: has joined #RubyOnRails
[06:08:19] segy: has joined #RubyOnRails
[06:08:30] sevenseacat: http://api.rubyonrails.org/classes/ActionController/DataStreaming.html#method-i-send_data ?
[06:09:07] sevenseacat: I'm confused, what have you tried that hasn't worked? send_data and send_file are pretty straightforward methods
[06:09:25] User458764: has joined #RubyOnRails
[06:09:27] arup_r: has joined #RubyOnRails
[06:09:43] Pupeno: has joined #RubyOnRails
[06:10:17] erich__: has joined #RubyOnRails
[06:10:55] DoubleMalt: has joined #RubyOnRails
[06:11:36] Shoutsid: has joined #RubyOnRails
[06:12:59] rromanch_: has joined #RubyOnRails
[06:13:06] moei: has joined #RubyOnRails
[06:13:36] qejk: has joined #RubyOnRails
[06:14:55] neanderslob: sevenseacat: (in reference to my code) I would have thought that send_file file.png, type: asset.uploaded_file_content_type would have worked
[06:15:12] sevenseacat: well there's a syntax error there
[06:15:12] IFrank00: I have a Project User and Task. Im making a block Project.all.each |p| then I want to get p.users that have tasks only
[06:15:28] sevenseacat: and how didnt it work?
[06:15:50] IFrank00: in plain text give me the project A users that have tasks
[06:16:23] sevenseacat: p.users.join(:tasks) ?
[06:16:29] neanderslob: sevenseacat: that's the thing, not seeing anything in the error log; it just didn't respond
[06:16:30] IFrank00: I think that I need to do a scope on the user Model to get users with tasks
[06:16:41] neanderslob: sevenseacat: maybe tail isn't working, let me restart that
[06:16:43] sevenseacat: neanderslob: you gotta give me something to work with
[06:17:06] IFrank00: sevenseacat, Ill try that one brb
[06:19:32] Pharaoh2: has joined #RubyOnRails
[06:19:43] neanderslob: sevenseacat: ah, there we go (for whatever reason my terminal wasn't registering changes to my error log) This seems to be the error: "undefined local variable or method `file' "
[06:19:49] herbst: has joined #RubyOnRails
[06:20:17] sevenseacat: yep, thats the syntax error I mentioned.
[06:20:37] sevenseacat: where are you defining a variable called file?
[06:21:06] Cervajz: has joined #RubyOnRails
[06:22:01] neanderslob: sevenseacat: I didn't
[06:22:23] sevenseacat: so how can you call send_file with this file variable?
[06:22:40] dionysus69: has joined #RubyOnRails
[06:23:05] Cervajz_: has joined #RubyOnRails
[06:23:29] IFrank00: sevenseacat, this some of the code https://gist.github.com/Frank004/f701db4eff9835f75f5d if you have time to check it out
[06:24:01] sevenseacat: IFrank00: is it related to anything at all?
[06:24:52] IFrank00: sevenseacat, check the user.rb on line 10
[06:25:10] sevenseacat: yes, you already told us what you wanted to do
[06:25:28] sevenseacat: which is the opposite of what is written there, btw
[06:25:41] sevenseacat: oh no its not, its just differently worded
[06:25:58] sevenseacat: double negatives don't not confuse me
[06:26:08] Or1on: has joined #RubyOnRails
[06:27:30] neanderslob: sevenseacat: right, so clearly I need to be storing something in that get method in a variable and popping that into send_file
[06:27:39] neanderslob: sevenseacat: right?
[06:27:58] sevenseacat: you already *are* storing the data you read from s3
[06:28:26] neanderslob: sevenseacat: ah, alright....
[06:29:24] rushed: neanderslob: using fog?
[06:29:35] safety_cut: has joined #RubyOnRails
[06:30:14] neanderslob: rushed: aws-sdk
[06:30:23] rromanch_: has joined #RubyOnRails
[06:31:01] rushed: neanderslob: streaming via your app important to you? vs redirecting to an authenticated url?
[06:31:28] sevenseacat: the latter is much simpler
[06:31:58] sevenseacat: but I've pretty much given up suggesting alternate paths because people crack the shits when you don't just tell them how to do it
[06:32:20] abracadaniel: has joined #RubyOnRails
[06:32:47] neanderslob: sevenseacat: ok I think I might be seeing what you're getting at; file.open just creates a holding spot on my server for the file to temporarily sit. What I'm after is whatever is inside (again in terms of my code) the variable reap
[06:33:13] sevenseacat: neanderslob: you're seriously overcomplicating one method call in your brain.
[06:33:31] sevenseacat: you're reading from s3 into a file. then send that file.
[06:34:49] sevenseacat: send_file takes the path of a file to send. give it that path.
[06:35:33] rushed: neanderslob: alternately, leave the file on s3 and redirect your user to an authenticated_url for the asset
[06:35:56] rubyonrailed: has joined #RubyOnRails
[06:35:59] moeabdol: has joined #RubyOnRails
[06:36:46] neanderslob: rushed: hah, that's the next thing I want to play with; I just figured that I might as well learn the basic way first
[06:36:59] xcv: has joined #RubyOnRails
[06:37:33] blackmesa: has joined #RubyOnRails
[06:38:06] neanderslob: sevenseacat: so is there a path sitting there in my code that I'm just not recognizing?
[06:38:44] sevenseacat: neanderslob: https://gist.github.com/BigMcLargeHuge/d13f7584fb1270336531#file-assets_controller-rb-L4
[06:40:45] tetraktys: has joined #RubyOnRails
[06:41:25] _djbkd: has joined #RubyOnRails
[06:41:40] neanderslob: sevenseacat: send_file 'file.png', type: asset.uploaded_file_content_type ?
[06:41:47] sevenseacat: did you try it?
[06:41:58] sevenseacat: its always quicker to try it than ask about it
[06:42:20] neanderslob: sevenseacat: I did and it worked (sort of)
[06:43:14] neanderslob: sevenseacat: I did get a file to download but it was completely empty
[06:43:43] rromanch_: has joined #RubyOnRails
[06:44:37] sevenseacat: its taken 45 minutes to get this far. maybe someone else can poke you the rest of the way.
[06:46:32] neanderslob: sevenseacat: and I know that the file in question actually contains an image, so I'm thinking that I'm reading the file on the s3 server but I'm not reading it into the space I've created on the server for it
[06:46:41] jas02: has joined #RubyOnRails
[06:46:58] norc: has joined #RubyOnRails
[06:48:12] rushed: neanderslob: you should switch to carrierwave, fog, and skip streaming the file via your app server... good news is there are plenty of examples because it's common :)
[06:48:22] marr: has joined #RubyOnRails
[06:48:57] IanV0rn2341: has joined #RubyOnRails
[06:49:19] neanderslob: rushed: I might have a look but I feel like I'm dangerously close to learning something here
[06:49:36] rushed: neanderslob: you don't appear to be, but good luck
[06:49:39] neanderslob: rushed: you know how it is
[06:50:54] neanderslob: rushed: thanks for the suggestion though; if I get too stuck I'll give it a shot
[06:52:47] Macaveli: has joined #RubyOnRails
[06:53:25] rushed: I'll just leave this here...
[06:53:26] rushed: redirect_to @asset.cloud_location.file.authenticated_url(query: { 'response-content-disposition' => "attachment; filename*=UTF-8''#{@attachment.filename}" })
[06:54:25] neanderslob: rushed: lol, thanks dude
[06:55:13] rushed: neanderslob: don't thank me, that's not help it's goading~
[06:57:11] norc: Hi. Given these factories; http://pastie.org/10465436 -- how can I create a "Street 1" through "Street 10" for each district, rather than 1-10 for District 1, 11-20 for District 2 and so on?
[06:57:42] eml: has joined #RubyOnRails
[06:58:11] yaymukund: has joined #RubyOnRails
[06:59:38] norc: (I basically want a fresh sequence each time create_list is called)
[07:01:01] comrad: has joined #RubyOnRails
[07:02:10] arBmind: has joined #RubyOnRails
[07:05:53] SteenJobs: has joined #RubyOnRails
[07:14:21] zpe: has joined #RubyOnRails
[07:16:52] nfk|laptop: has joined #RubyOnRails
[07:20:16] hephaestus_rg: has joined #RubyOnRails
[07:21:33] mark3: has joined #RubyOnRails
[07:25:25] xcm: has joined #RubyOnRails
[07:27:11] pawnbox: has joined #RubyOnRails
[07:28:41] roshanavand: has joined #RubyOnRails
[07:29:28] pecpec: has joined #RubyOnRails
[07:30:44] IanV0rn2341: has joined #RubyOnRails
[07:32:30] Trynemjoel: has joined #RubyOnRails
[07:35:59] IanV0rn2341: has joined #RubyOnRails
[07:36:44] jojo__: has joined #RubyOnRails
[07:37:18] MartinElvar: has joined #RubyOnRails
[07:37:58] alienaut: has joined #RubyOnRails
[07:38:13] blackmesa: has joined #RubyOnRails
[07:38:19] Shoutsid: has joined #RubyOnRails
[07:40:02] tagrudev: need a nice wiki plugin for my rails app
[07:40:05] tagrudev: any suggestions ?
[07:40:48] roshanavand: has joined #RubyOnRails
[07:41:09] sevenseacat: uh... good luck
[07:42:03] tagrudev: yeah :D research lead me empty handed
[07:42:28] tagrudev: I was wondering if someone can speak from experience
[07:43:48] rushed: tagrudev: put whatever wiki you want on a subdomain unrelated to your rails app?
[07:44:43] tagrudev: rushed, yeah thought about that, but the requirement is it's integrated in the app
[07:45:08] rushed: tagrudev: in what way?
[07:45:12] xcv: has joined #RubyOnRails
[07:45:21] artto: has joined #RubyOnRails
[07:46:03] tagrudev: app/wiki sharing accounts
[07:46:38] rushed: tagrudev: there are lots of auth sharing options (CAS, OpenID, etc)
[07:47:23] tagrudev: rushed, true where are you going with that ?
[07:47:51] rushed: tagrudev: you just asked for that functionality?
[07:47:54] Rin_: has joined #RubyOnRails
[07:48:04] rushed: tagrudev: or if both sites are rails/warden you can just share cookies
[07:48:18] rushed: *in a subdomain situation
[07:48:20] IanV0rn2341: has joined #RubyOnRails
[07:48:32] tagrudev: you have a stand alone solution
[07:48:46] tagrudev: (for the wiki I mean)
[07:48:54] rushed: tagrudev: you haven't explained what you want
[07:49:12] rushed: tagrudev: "wiki" by itself isn't very specific~
[07:49:19] tagrudev: give me a sec
[07:50:10] Rin_: has joined #RubyOnRails
[07:50:11] tagrudev: rushed, https://github.com/github/git-lfs/wiki
[07:50:13] tagrudev: a tool like this
[07:50:35] tagrudev: creating pages / editing
[07:50:57] rushed: tagrudev: you want to store large files in git using a wiki? I'm lost~
[07:51:16] tagrudev: nah that's an example of a wiki
[07:51:19] tagrudev: for a github repo
[07:51:25] rushed: tagrudev: ...
[07:51:49] rushed: tagrudev: so you could care less what it is you just don't want your users to have to log in again?
[07:51:52] tagrudev: rushed, you're lost in the definition of a wiki
[07:51:54] tagrudev: or what wiki is
[07:51:57] tagrudev: or why I need it
[07:52:09] Macaveli: has joined #RubyOnRails
[07:52:19] tagrudev: I am not sure where you lost the connection
[07:52:37] tagrudev: I need a github wiki like implementation for my rails app
[07:52:53] rushed: tagrudev: what does your rails app do?
[07:52:55] tagrudev: I don't want to use a stand alone
[07:53:10] renegadeandy: has joined #RubyOnRails
[07:53:24] tagrudev: does it matter what my rails app do and how is that connected
[07:54:13] baweaver: yeah, kinda does.
[07:54:26] rushed: tagrudev: presumably what it does informs the integration you're trying to achieve
[07:54:44] baweaver: there's a very simple solution to this
[07:54:50] baweaver: don't reinvent the wheel
[07:55:00] tagrudev: I am creating a puppy store and I want each puppy to get it's own wiki functionality
[07:55:02] drptbl: has joined #RubyOnRails
[07:55:16] tagrudev: baweaver, ^
[07:55:26] baweaver: do you _need_ that level of customization
[07:55:28] it_tard: has joined #RubyOnRails
[07:55:32] baweaver: or just a content management system?
[07:55:46] baweaver: I would strongly suggest stepping back and getting requirements solved first
[07:55:50] it_tard: has joined #RubyOnRails
[07:55:55] tagrudev: well I guess I would wanted a cms
[07:55:57] baweaver: this sounds like you're putting the cart before the horse
[07:56:00] tagrudev: if I needed one
[07:56:18] tagrudev: nvm this leads to no where
[07:56:21] baweaver: Take a step back
[07:56:41] roshanavand: has joined #RubyOnRails
[07:56:45] mlangenberg: has joined #RubyOnRails
[07:56:47] baweaver: we're giving you fair warning this won't end well
[07:57:03] tagrudev: will I die ?
[07:57:35] baweaver: ACTION sighs
[07:57:38] euphoriaa: has joined #RubyOnRails
[07:57:39] euphoriaa: has joined #RubyOnRails
[07:57:49] baweaver: mate, take a step back
[07:57:57] baweaver: and define exactly why you think you need a wiki
[07:58:27] baweaver: chances are you don't and you could save yourself a whole lot of time if all you need is a name, description, and tags
[07:58:53] techsethi: has joined #RubyOnRails
[07:59:44] tagrudev: well I am not searching for architectural advice but thanks
[07:59:57] rushed: tagrudev: you should be~
[08:00:04] sevenseacat: see what I mean, people get shitty when you suggest alternate pathways
[08:00:07] renegadeandy: tagrudev: sometimes its what you get....!
[08:00:44] renegadeandy: I figure although sometimes architectural changes are best, if you answer the specific question, they will learn on their own later why the architecture is wrong
[08:00:44] baweaver: that's because they're stuck on something and put a solution before actually solving the real problem
[08:01:00] baweaver: either way, I'm done with this one.
[08:01:04] tagrudev: are we still speaking for the puppy store
[08:01:10] tagrudev: or life in general
[08:01:14] rushed: tagrudev: https://www.ruby-toolbox.com/categories/wiki_apps
[08:01:23] rushed: tagrudev: there is no puppy store Cptn. Pants on Fire~
[08:01:29] tagrudev: rushed, yeah that was my first bet :) as I said I did some digging
[08:01:31] Cervajz: has joined #RubyOnRails
[08:02:03] brazenbraden: has joined #RubyOnRails
[08:02:13] zpe: has joined #RubyOnRails
[08:02:15] tagrudev: rushed, also yeah I guess I can solve everything with several models and lines of code
[08:02:37] tagrudev: figured out I would ask if anyone has done that before :)
[08:02:42] tagrudev: thanks guys
[08:02:51] tagrudev: and sevenseacat
[08:02:54] roshanavand: has joined #RubyOnRails
[08:03:35] zpe_: has joined #RubyOnRails
[08:03:40] jsrn_: has joined #RubyOnRails
[08:04:32] zpe: has joined #RubyOnRails
[08:07:27] roshanavand: has joined #RubyOnRails
[08:07:30] krisquigley: has joined #RubyOnRails
[08:09:31] alienaut: has joined #RubyOnRails
[08:10:03] linus4: has joined #RubyOnRails
[08:10:57] User458764: has joined #RubyOnRails
[08:11:47] defsdoor: has joined #RubyOnRails
[08:12:04] arup_r: I AM HAPPY TODAY! :D
[08:13:01] ddv: tagrudev: there are also women in here
[08:13:03] tagrudev: arup_r, you would be happier if you buy a puppy and I have the right store for you
[08:13:13] tagrudev: ddv, yeah I said and sevenseacat
[08:13:32] ddv: sounds like sevenseacat is a special case
[08:13:45] tagrudev: or are there more ?
[08:13:51] ddv: of course
[08:13:51] tagrudev: if so and girls
[08:13:57] hephaestus_rg: has joined #RubyOnRails
[08:14:39] User4587_: has joined #RubyOnRails
[08:14:41] AxonetBE1: has joined #RubyOnRails
[08:15:02] AxonetBE1: If I use this function to encrypt my passwords, is there a way to get them back in plain text?
[08:15:02] AxonetBE1: https://gist.github.com/DriesS/eee47c33d023410ead78
[08:15:17] kitsuneyo: has joined #RubyOnRails
[08:15:33] roshanavand: has joined #RubyOnRails
[08:15:45] rushed: AxonetBE_: not easily, but don't build your own crypto
[08:16:17] AxonetBE1: rushed: it's from a very old app, but not easy to get passwords then?
[08:16:28] ddv: AxonetBE_: no
[08:16:33] ddv: AxonetBE_: that is the whole point
[08:16:50] freezevee: has joined #RubyOnRails
[08:16:52] rushed: AxonetBE_: that function doesn't do any encryption
[08:17:08] IFrank00: sevenseacat, thank it works , learn something new
[08:17:09] darutoko: has joined #RubyOnRails
[08:17:51] IanV0rn2341: has joined #RubyOnRails
[08:18:13] arup_r: tagrudev: ok. I will buy one. How are you planning to deliver it to home address ? :D
[08:18:41] linus4: has joined #RubyOnRails
[08:18:53] IFrank00: sevenseacat, a full day looking for that simple code lol
[08:19:06] tagrudev: arup_r, I am writing the wiki atm :D
[08:19:47] rushed: tagrudev: you might have better luck with http://www.squarespace.com ~
[08:20:10] jojo__: arup_r: why are you so happy !!
[08:20:22] stardiviner: has joined #RubyOnRails
[08:20:44] arup_r: tagrudev: ok sure
[08:20:46] roshanavand: has joined #RubyOnRails
[08:20:52] tagrudev: rushed, so now I have not only architectural problem but a business one too
[08:20:54] arup_r: jojo__: hehe don't know
[08:21:21] jojo__: arup_r: lol :D \m/
[08:21:45] arup_r: tagrudev: You get those puppy from Govt. and sell it back ?
[08:21:49] hephaestus_rg: has joined #RubyOnRails
[08:22:34] arup_r: anyway.. good luck with your puppy store..
[08:22:39] tagrudev: arup_r, I haven't figure out where I would get the puppies from yet I wonder if cats would be a better fit :D
[08:23:46] tagrudev: also rushed squarespace don't have wiki and that's a big issue
[08:24:28] nickenchuggets: has joined #RubyOnRails
[08:24:29] nickenchuggets: has joined #RubyOnRails
[08:24:45] freezevee: I am trying to fill_in 'Password confirmation', with: '12345678' and I get a msg ElementNotFound: Unable to find field "Password confirmation"
[08:24:48] freezevee: any ideas ?
[08:25:35] rhizome: check capitalization
[08:25:41] rushed: freezevee: check the html? password_confirmation maybe?
[08:26:02] rushed: freezevee: you likely don't have a label on the confirm so it might not find the pretty text
[08:26:37] arup_r: ACTION want to sell a puppy to tagrudev
[08:26:42] freezevee: rushed: it might be hidden I believe
[08:26:47] roshanavand: has joined #RubyOnRails
[08:26:50] freezevee: rushed: it's devise so it could be hidden
[08:27:05] sevenseacat: it shouldnt be
[08:27:19] freezevee: rushed: in firebug I can see it like that <label for="user_password_confirmation">Password confirmation</label>
[08:27:35] sevenseacat: is that the page your test is on?
[08:27:45] sevenseacat: how did you checl?
[08:28:17] freezevee: I loaded the page in firefox and tracked it with firebug
[08:28:23] sevenseacat: thats not your test
[08:28:29] freezevee: the spec you mean ?
[08:28:53] freezevee: https://gist.github.com/chrisvel/22b87b6de6caa6ead700
[08:29:19] blackmesa: has joined #RubyOnRails
[08:29:40] freezevee: and my form it's a partial
[08:29:50] freezevee: shit, I've done it complicated without a reason
[08:30:11] rushed: said tagrudev never~
[08:30:19] zpe: has joined #RubyOnRails
[08:31:30] arup_r: rushed: I like your `~` ...
[08:31:31] freezevee: and those are my input boxes https://gist.github.com/chrisvel/78959ca191df9634a65c
[08:31:47] roshanavand: has joined #RubyOnRails
[08:32:17] tagrudev: rushed, you're grumpy today
[08:32:24] artto: has joined #RubyOnRails
[08:32:26] tagrudev: once my store is up I will send you a puppy :D
[08:32:34] tagrudev: and a wiki page attached
[08:32:46] franzip: has joined #RubyOnRails
[08:32:58] sevenseacat: freezevee: theres somethin wrong with this line https://gist.github.com/chrisvel/78959ca191df9634a65c#file-gistfile1-txt-L4
[08:33:15] freezevee: sevenseacat: ok fixed it
[08:33:18] roshanavand: has joined #RubyOnRails
[08:33:48] roshanavand: has joined #RubyOnRails
[08:33:52] yfeldblum: has joined #RubyOnRails
[08:35:17] freezevee: changed username with password
[08:35:24] freezevee: but the error in rspec remains Unable to find field "Password confirmation"
[08:35:43] freezevee: I mean I changed the wrong symbol in the line you sent me
[08:36:15] wethu: has joined #RubyOnRails
[08:37:08] sevenseacat: freezevee: why do you have visible: true in your spec
[08:37:21] sevenseacat: can you gist the generated HTML for the form
[08:37:32] freezevee: I am trying things to see what will happen
[08:38:51] sevenseacat: well you know what happens now, the test breaks
[08:39:00] tvw: has joined #RubyOnRails
[08:39:26] freezevee: https://gist.github.com/chrisvel/6ec7030ff1b6eed58194
[08:40:59] nickenchuggets: has joined #RubyOnRails
[08:41:17] sevenseacat: freezevee: your /users/new is "Add a new ticket " ?
[08:41:49] pawnbox: has joined #RubyOnRails
[08:42:28] sevenseacat: /users/new is the registration page - you won't be able to see it if you're logged in, which that HTML says you are
[08:42:30] sevenseacat: i asked you for the html from the test
[08:42:40] sevenseacat: you know, the thing you're trying to fix
[08:42:43] sevenseacat: not some unrelated HTML page
[08:43:14] freezevee: ah you saw the title
[08:43:28] freezevee: well I copied and pasted so I missed that
[08:43:31] freezevee: this is the html
[08:43:36] quazimodo: has joined #RubyOnRails
[08:43:37] freezevee: and this is my test https://github.com/chrisvel/ticketbox/blob/master/spec/features/user_spec.rb
[08:43:39] quazimod1: has joined #RubyOnRails
[08:43:51] sevenseacat: where is the HTML for the page your test is on, /users/new ?
[08:44:40] freezevee: it's the one I sent you
[08:44:58] arup_r: lunch time..
[08:45:14] sevenseacat: that HTML is already signed in as a user
[08:45:28] sevenseacat: you cannot register with devise if you're already signed in
[08:45:54] kitsuneyo: has joined #RubyOnRails
[08:46:00] freezevee: yes exactly
[08:46:05] freezevee: that's what I am trying to do
[08:46:11] freezevee: register other users
[08:46:17] freezevee: sign them up
[08:46:20] sevenseacat: thats not what devise is for.
[08:46:37] freezevee: it doesn't mean it can't be done
[08:46:38] sevenseacat: so you can't use devise for that
[08:46:53] freezevee: do you suggest to create a separate table ?
[08:47:33] freezevee: create a class that inherits from User ?
[08:47:44] sevenseacat: you appear to have no idea what devise is for
[08:47:52] sevenseacat: and no idea how to answer a simple question like 'show me the html'
[08:48:03] sevenseacat: so good luck. I hope you solve your problem.
[08:48:40] zpe_: has joined #RubyOnRails
[08:48:46] freezevee: I suppose it's Devise is a flexible authentication solution for Rails
[08:48:54] freezevee: I believe I get that
[08:49:10] freezevee: and I suppose that anyone could sign up with devise
[08:49:27] freezevee: so what's the strange thing in creating accounts for others ?
[08:49:55] freezevee: an admin should be authorised to create accounts for his users
[08:50:17] freezevee: at least suggest something
[08:52:03] kitsuneyo: Devise is not all that flexible
[08:52:51] freezevee: well I found something but I am not confident about the user's solution http://stackoverflow.com/questions/19017978/allowing-admins-to-add-users-with-devise
[08:52:59] kitsuneyo: read the documentation and you'll see what it can do https://github.com/plataformatec/devise/wiki
[08:53:41] universa1: freezevee: i thought you solved yesterday...
[08:54:06] freezevee: universa1: it's a different thing
[08:54:35] freezevee: and I've found another solution http://stackoverflow.com/questions/7075873/devise-how-to-create-a-new-user-being-already-logged-in
[08:55:14] freezevee: it seems simpler than I thought
[08:55:26] mrbubbles: has joined #RubyOnRails
[08:56:09] sevenseacat: "I have just to removed the registerable module from devise and it works." lolwat
[08:56:16] helpa: http://i.imgur.com/m9m3wr9.gif
[08:56:25] universa1: freezevee: describe your usecase in simple words, no code!
[08:56:47] sevenseacat: i know what their use case is, but it has absolutly nothing to do with the problem they came here for help solving
[08:56:52] Shoutsid: has joined #RubyOnRails
[08:57:06] yaymukund: has joined #RubyOnRails
[08:57:11] lxsameer: has joined #RubyOnRails
[08:57:21] jenrzzz: has joined #RubyOnRails
[08:57:26] tsujp: has joined #RubyOnRails
[08:58:07] lalalaaa: has joined #RubyOnRails
[08:58:17] freezevee: universa1: I want to be able to sign up other users in devise
[08:59:23] freezevee: universa1: it's that simple
[08:59:41] universa1: freezevee: why do you need to do it in devise?
[08:59:55] universa1: freezevee: you're complicating it a lot with that requirement.
[09:00:13] freezevee: universa1: running some tests for the "create a new user while logged in" sevenseacat suggested that devise is not for what I want to do
[09:00:16] universa1: freezevee: a simple, non devise controller, similar to any other controller which you use to create instances
[09:00:40] universa1: devise is good for managing the logged in user, signing up, etc...
[09:00:42] freezevee: universa1: I wanted to use the same attributes with devise for the users
[09:00:56] universa1: if you want admin functionality, then forcing that into devise is not a good idea.
[09:00:57] freezevee: universa1: it's like an invitation system
[09:01:10] universa1: so it is the problem from yesterday.
[09:01:37] universa1: lets say you want to create blog entries on your page, would you know how to create a controller for that?
[09:01:55] freezevee: but what's the connection ?
[09:02:00] universa1: ok, creating invitations / users is the same.
[09:02:10] universa1: just that you don't create blog entries, but users.
[09:02:18] universa1: the concept is 100% the same.
[09:02:32] freezevee: universa1: so you suggest to create a separate controller for the users ?
[09:02:54] universa1: freezevee: for users/invitations yes, like you already had yesterday.
[09:03:03] lalalaaa: Hi! Should I boot one of my workers? For the past year it's been impossible to get him to fix bugs. The last bug he attended he didn't even fix properly. After that said he'd fix it in 7-10 days but it's now been over a month.
[09:03:18] lalalaaa: When we converse via email, he doesn't answer a lot of my questions, and sometimes he doesn't even answer my emails. He's been with my project since the beginning though. He's done a lot of good stuff, but in return, I've also spent a lot of money on him.
[09:03:30] mrbubbles: Does anyone have experience with PDFKit? I???ve built a Rails API and I want to add the ability to download PDF invoices but I guess it???s not suitable as I???m not using any of the Rails views - does that sound right?
[09:03:31] freezevee: universa1: what If I want to keep devise's functionality ?
[09:03:38] lalalaaa: He's also got his own project which is similar to mine, and I've noticed he's already started copying some of my ideas. I haven't gotten him to sign an NDA. I'm reading https://groovehq.com/support/dealing-with-uncooperative-coworkers which urges me to be more compassionate and let things slide, but what happened to being a ruthless business?
[09:03:43] lalalaaa: So should I boot him, or wait and get him to sign an NDA and then boot him? Or should I give him a second chance? There's plenty of other people out there who can do his job instead.
[09:03:46] universa1: freezevee: again: two separate things!
[09:03:48] freezevee: universa1: meaning that I want the user to be able to login ?
[09:04:15] freezevee: universa1: you are most probably right but I don't get it
[09:04:23] artto: has joined #RubyOnRails
[09:04:44] mrbubbles: lalalaaa: do you have a contract of employment with him?
[09:04:45] freezevee: universa1: an admin creates users that can control their accounts while they will have the full devise functionality
[09:04:45] universa1: freezevee: ok experiment: go to the rails console, do User.create email: "whatever@blub.com", password: "changeme", password_confirmation: "changeme", ... (whatever attributes you added)
[09:05:11] universa1: freezevee: now go to your browser, and login with whatever@blub.com and changeme
[09:05:21] jgt: has joined #RubyOnRails
[09:05:36] lalalaaa: mrbubbles: Nope
[09:05:51] artto: has joined #RubyOnRails
[09:05:58] AnoHito_: has joined #RubyOnRails
[09:06:06] mrbubbles: lalalaaa: do you have mechanism in place to stop him just walking away with a copy of all your code?
[09:06:07] sevenseacat: he's got a good deal then
[09:06:17] sevenseacat: get paid to do anything he wants
[09:06:18] rushed: mrbubbles: if you already have html invoices you might take a look at wicked_pdf
[09:06:21] lalalaaa: mrbubbles: I do not, no
[09:06:50] mrbubbles: lalalaaa: ah, I wouldn???t be too ruthless then. you need to find a way to get rid of him that makes him think that a) he???s getting a good deal b) keeps you on good terms
[09:06:53] lalalaaa: sevenseacat: I'm only paying him when he actually works though
[09:07:07] mrbubbles: thanks rushed I???ll check it out
[09:07:14] sevenseacat: you said yourself, he fixes half the bug, and I presume he still gets paid
[09:07:21] Prawnzy: has joined #RubyOnRails
[09:07:42] freezevee: universa1: as I usually do ?
[09:07:48] freezevee: universa1: what is your point ?
[09:08:13] lalalaaa: mrbubbles: Sounds like a plan. I'll keep him on the team, act like nothing is wrong, get him to sign an NDA and then reassess my ruthlessness
[09:08:29] lalalaaa: ACTION needs to re-read 48 Laws of Power lol
[09:08:32] universa1: freezevee: yes.
[09:08:41] freezevee: universa1: and then ?
[09:08:41] lalalaaa: sevenseacat: Yeah he got paid for that one
[09:08:55] universa1: freezevee: you see it works? creating a user from a controller is nothing different.
[09:09:01] mrbubbles: Yep or even better, if you have another project you can move him onto to??? get him to sign an NDA for that project (which will seem normal, at the start of a new project) then distance him from the original project
[09:09:23] freezevee: universa1: I know how to use controllers
[09:09:34] mrbubbles: That way you???re covered on that and also he???s moving further away from the up-to-date version of the main project so what he has becomes less valuable
[09:09:37] freezevee: universa1: I don't understand your point or the connection to my question
[09:10:07] lalalaaa: mrbubbles: That's a very good point
[09:10:19] freezevee: universa1: do you suggest a separate table for the users ?
[09:10:20] lalalaaa: * suggestion rather
[09:10:34] universa1: freezevee: NOOOOOOOOOOOOOOOOO
[09:10:58] universa1: freezevee: please carefully reread what i wrote today and yesterday.
[09:11:02] gremax: has joined #RubyOnRails
[09:11:35] lalalaaa: by the way what do you guys use for NDAs? came across https://github.com/papertrail/legal-docs/blob/master/nda-long-corporate.md looks kinda good
[09:11:36] freezevee: universa1: you suggested me to create another controller
[09:11:48] sevenseacat: lalalaaa: get a lawyer.
[09:12:11] universa1: freezevee: so? controller != table != model
[09:12:16] mrbubbles: freezevee: When you did that User.create it in the rails console??? that created another user, no?
[09:12:27] mrbubbles: So you can just do the same thing in a controller action to create a user
[09:12:28] freezevee: mrbubbles: of course
[09:12:42] lalalaaa: sevenseacat: yeah that's probably best
[09:12:42] freezevee: mrbubbles: where will this user be created ?
[09:12:59] mrbubbles: It will go into the existing user table, as the one you just created did
[09:13:11] freezevee: mrbubbles: the devise users table, right ?
[09:13:28] sevenseacat: there is no such thing as the 'devise users table'
[09:13:31] sevenseacat: its just a users table
[09:14:24] p1k: has joined #RubyOnRails
[09:14:31] freezevee: its 'the users table the devise created when I initialised it'
[09:14:37] mrbubbles: Well, the table which devise stores your model in
[09:14:44] Ergo: has joined #RubyOnRails
[09:14:46] sevenseacat: devise generated a migration for the table because you told it to
[09:14:49] mrbubbles: ???rails generate devise MODEL - Replace MODEL with the class name used for the application???s users (it???s frequently User but could also be Admin). ???
[09:14:51] mrbubbles: that one :)
[09:14:52] sevenseacat: but it is no different than any other table
[09:14:54] freezevee: who said the opposite ?
[09:15:08] freezevee: I feel like a dumpfuck sometimes
[09:15:12] sevenseacat: dammit I keep letting myself get sucked into this whirlwind of stupidity
[09:15:44] freezevee: no it isn't that
[09:15:47] linus4: has joined #RubyOnRails
[09:15:51] freezevee: you're probably a bad teacher
[09:16:01] sevenseacat: ACTION raises eyebrow
[09:16:06] freezevee: not only rails hackers come here
[09:16:21] freezevee: it happens to be inexperienced users too
[09:16:33] ChanServ: +o sevenseacat
[09:16:38] norc: Reasking since I have gotten no answer: Given these factories; http://pastie.org/10465436 -- how can I create a "Street 1" through "Street 10" for each district, rather than 1-10 for District 1, 11-20 for District 2 and so on?
[09:16:44] freezevee: but this discussion has been done one thousand times, I'm not gonna go all over
[09:16:56] freezevee: mrbubbles: thanks for the help
[09:17:51] mrbubbles: nps, credit to the others really though as they clarified everything
[09:19:10] norc: (I basically want a fresh sequence each time create_list is called)
[09:19:11] universa1: norc: (1..10).each {|i| FactoryGirl.create :street, .....}
[09:19:30] blackmesa: has joined #RubyOnRails
[09:19:37] universa1: norc: but then... ...why do you care about the name?! ;)
[09:19:49] franzip: has joined #RubyOnRails
[09:19:59] norc: universa1: Oh I dont really. Im just fiddling around with FactoryGirl, trying to figure out how to work it.
[09:20:55] universa1: norc: check the docs/code for sequence, they somewhere store the current counter, just reset it, but that sounds like a "bad" thing to do to me
[09:21:20] universa1: norc: http://stackoverflow.com/questions/3359168/how-can-i-reset-a-factory-girl-sequence
[09:21:22] norc: universa1: Yeah. I mean you gave me the right idea - sequences are something different there.
[09:21:44] norc: universa1: Makes me wonder how I can pass a parameter from FactoryGirl.create() into the factory.
[09:22:09] universa1: norc: ? FactoryGirl.create :whatever, some_param: "somve_value" ?
[09:22:23] lalalaaa: has joined #RubyOnRails
[09:22:49] kitsuneyo: what are the numbers in this file? - https://github.com/hexorx/countries/blob/master/lib/data/subdivisions/JP.yaml. they don't look like id numbers. how do i get a collection of the states?
[09:23:21] universa1: kitsuneyo: looks like the japan subdivisions are numbered.
[09:23:33] arup_r: has joined #RubyOnRails
[09:23:40] universa1: kitsuneyo: look at wikipedia for the structuring and naming of the different organizational levels...
[09:24:01] kitsuneyo: oh i see... this is the equivalent of TX for Texas
[09:24:22] Phoop: has joined #RubyOnRails
[09:24:22] kitsuneyo: what is the name for that bit of data though?
[09:24:23] jgt: has joined #RubyOnRails
[09:24:34] universa1: kitsuneyo: tbh no clue, i don't know a single thing about japan ;) but just guessing from looking at the data
[09:24:51] universa1: kitsuneyo: https://en.wikipedia.org/wiki/Nomenclature_of_Territorial_Units_for_Statistics
[09:24:58] universa1: something like this
[09:25:07] sararegan: has joined #RubyOnRails
[09:25:12] kitsuneyo: yeah i think you're right, or maybe there's no real equivalent to TX so the gem maker just used numbers as a default
[09:26:03] kitsuneyo: no matter though, my Q is how to grab a state or collection of states by that number
[09:26:11] universa1: kitsuneyo: https://en.wikipedia.org/wiki/Prefectures_of_Japan
[09:26:29] universa1: kitsuneyo: YAML.load("that_file")["01"]
[09:27:24] kitsuneyo: thanks universa1
[09:27:32] lalalaaa: has joined #RubyOnRails
[09:28:22] User458764: has joined #RubyOnRails
[09:28:39] universa1: kitsuneyo: i was intrigued, so the numbers are Japanese ISO, as can be seen in the last wiki entry ;)
[09:28:56] universa1: ok, enough useless knowledge, back to work ;)
[09:29:04] kitsuneyo: yeah i saw that table too
[09:29:47] universa1: yeah, i just made a quick cross-check with a randomly picked 30 ;)
[09:31:15] artto: has joined #RubyOnRails
[09:32:07] artto: has joined #RubyOnRails
[09:32:29] Peg-leg: has joined #RubyOnRails
[09:32:48] norc: universa1: That is perfect. Together with transient attributes I can work with that. Thanks a lot - it is so obvious now that you mentioned it. :)
[09:34:12] nettoweb: has joined #RubyOnRails
[09:34:41] alienaut: has joined #RubyOnRails
[09:34:45] kitsuneyo: i have this country object then, and within it is this instance variable @subdivsions. i don't really get what's going on here: https://gist.github.com/anonymous/deb7be36627e74eac86c
[09:35:17] drptbl: has joined #RubyOnRails
[09:35:18] p1k: has joined #RubyOnRails
[09:35:35] Shoutsid: has joined #RubyOnRails
[09:36:26] kitsuneyo: sorry it's all on one line and viewing it i can't seem to wrap it
[09:38:15] rvanlieshout: so what's with that instance variable?
[09:38:41] kitsuneyo: is it even an instance variable?
[09:38:50] rvanlieshout: could be, objects can have instance variables
[09:39:10] lalalaaa: mrbubbles: I could also not give a f**** whether he walks off with my code. The cool part imho is in the web design and if he's honestly that desperate that he's gonna go copy that 100% I'll just feel sorry for him
[09:39:36] lalalaaa: mrbubbles: I got bigger plans than that
[09:39:38] mrbubbles: Hehe fair enough.
[09:39:45] mrbubbles: In that case, fire away :)
[09:39:52] kitsuneyo: rvanlieshout, my problem is i don't know how to get at the data in there
[09:40:01] lalalaaa: thanks for the support man
[09:40:15] rvanlieshout: kitsuneyo: what data?
[09:40:31] kitsuneyo: in @subdivisions
[09:40:51] rvanlieshout: well.. instance variables are not ment to be set from 'outside' the instance
[09:41:00] rvanlieshout: so your class should have instance methods for it
[09:41:06] kitsuneyo: it has a hash of all the different states
[09:41:11] rvanlieshout: what's a Country and where is the definition?
[09:41:18] rvanlieshout: and / or documentatino
[09:41:37] kitsuneyo: it's the countries gem, here https://github.com/hexorx/countries
[09:41:46] Peg-leg1: has joined #RubyOnRails
[09:41:58] htmldrum: has joined #RubyOnRails
[09:43:08] adre: has joined #RubyOnRails
[09:44:56] rvanlieshout: so why do you want to change that instance var
[09:44:58] rvanlieshout: with what purpose?
[09:45:08] kitsuneyo: i don't want to change it, i want to read from it
[09:45:29] kitsuneyo: like, get the name of a particular state or get the names of all states
[09:46:19] mlangenberg: has joined #RubyOnRails
[09:46:36] rvanlieshout: then follow the documentation for that gem
[09:46:41] rvanlieshout: never directly access instance variables
[09:46:51] rvanlieshout: https://github.com/hexorx/countries#country-info
[09:47:21] kitsuneyo: the way the data is arranged, like {"01"=>{"name"=>"Hokkaido", "names"=>["Hokkaid??", "Hokkaido"], "latitude"=>44, "longitude"=>143}, has me stumped even though i guess it's simple
[09:47:34] MartinElvar: has joined #RubyOnRails
[09:48:00] rvanlieshout: the data presented in your gist should be considered private
[09:48:07] rvanlieshout: and could change with every release of the gem
[09:48:42] krisquigley: has joined #RubyOnRails
[09:50:06] kitsuneyo: true, but i guess i can still save the state code in my db and then use it to call the info about that state
[09:50:22] alex88: has joined #RubyOnRails
[09:50:34] rvanlieshout: kitsuneyo: using the methods documented by the gem
[09:52:17] kitsuneyo: i think those methods only let you look up countries, although i take your point
[09:54:02] artto: has joined #RubyOnRails
[09:55:01] arup_r: How should I iterate Active Record Relation object ? https://gist.github.com/aruprakshit/07de450d41d85913c59f
[09:55:14] arup_r: Can't I avoid .to_a.select ?
[09:55:40] alexhartley: has joined #RubyOnRails
[09:56:23] mrbubbles: Does anyone know if it???s possible to use WickedPDF or PDFKit on an Rails API? i.e. if you don???t have normal views? Can you just create a single view to use with either of those?
[09:57:00] artto: has joined #RubyOnRails
[09:57:07] stamina: has joined #RubyOnRails
[09:57:20] roshanavand: has joined #RubyOnRails
[09:58:06] rushed: mrbubbles: is there something preventing you from making views?
[09:58:34] workmad3: arup_r: your code there won't work properly
[09:58:37] mrbubbles: rushed: the rails aspect is just an API so I don???t use any views
[09:58:48] mrbubbles: or do you mean just create a view to use with the plugin?
[09:58:48] rushed: mrbubbles: by choice yes?
[09:59:01] workmad3: arup_r: you can't do a filter of an array in ruby and then go back to chaining on SQL query building
[09:59:38] dhjondoh: has joined #RubyOnRails
[09:59:55] arup_r: workmad3: yes, I changed it
[10:00:00] arup_r: you are giht
[10:00:36] mrbubbles: rushed: i suppose you???re right I can just create a view that will allow it to generate the PDF from it
[10:01:06] workmad3: arup_r: also, your attempt to check for the existance of the ID will break... by accessing `a.trackable` in that block you're trying to load the the associated record, which will throw an exception if there's an ID and the record isn't there anymore
[10:01:37] User458764: has joined #RubyOnRails
[10:03:23] Palsson: has joined #RubyOnRails
[10:03:26] voker57: has joined #RubyOnRails
[10:03:34] voker57: has joined #RubyOnRails
[10:03:56] workmad3: arup_r: https://gist.github.com/workmad3/63d74b2037e0652c5091 <-- that's probably what you were attempting
[10:05:30] kitsuneyo: just found a nice looking gem called subdivision_select that uses the countries gem: https://github.com/cllns/subdivision_select
[10:05:49] FrankD: has joined #RubyOnRails
[10:06:01] arup_r: workmad3: I came up with this ugly https://gist.github.com/aruprakshit/07de450d41d85913c59f .. Let me see now uyours
[10:06:11] Cache_Money: has joined #RubyOnRails
[10:06:17] waseem_: Isn't that inefficient? Shouldn't he be fetching all the records that satisfy the requirements in a SQL query even those for which a Post and Answer do not exist and filter out those records in the view or wherever it is used? workmad3
[10:07:08] workmad3: waseem_: it's the same efficiency as that ;)
[10:07:11] arup_r: waseem_: I don't know in SQL level how to solve. That is I kept it in memory
[10:07:43] workmad3: waseem_: as that's exactly what's happening... getting all the records via SQL and then filtering out ones that don't have an associated record
[10:07:56] waseem_: workmad3: Hmm you're right as always. :)
[10:09:17] jokke-: has joined #RubyOnRails
[10:09:47] artto: has joined #RubyOnRails
[10:10:16] TheGeekRunner: has joined #RubyOnRails
[10:10:42] workmad3: arup_r: it would be pretty complicated SQL to solve... a where-clause along the lines of `WHERE (trackable_type = "Answer" AND trackable_id IN (SELECT id FROM answers) OR (trackable_type = "Post" AND trackable_type IN (SELECT id FROM posts)` along with the rest of your conditions
[10:11:04] arup_r: workmad3: Hum, I know.
[10:11:11] workmad3: (I'm missing some closing ) there, but ah well)
[10:11:16] TheGeekRunner: hello! Is there any way for certain users(like admin, or a supervisor) in a rails app to get priority access over regular users? I have a rails app deployed on heroku with a single dyno.
[10:11:20] arup_r: Is the In memory filtering is a bad idea in my case
[10:11:32] rushed: TheGeekRunner: no
[10:11:42] workmad3: arup_r: depends on how many records you have
[10:11:55] workmad3: arup_r: and whether you have plans to implement pagination using SQL
[10:12:01] TheGeekRunner: At some point, 40 people or so are using the app, and it kinda is a limit. Would like the admin to get access even though that limit has been achieved.
[10:12:28] rushed: TheGeekRunner: there shouldn't be a limit, what are you hitting?
[10:12:34] absklb: has joined #RubyOnRails
[10:12:37] arup_r: workmad3: It is a kind of activities.. comes top of the page .. when someone does any activity..
[10:12:57] workmad3: rushed: I'd assume resource limits, the system just becomes slow and unresponsive with that many concurrent users
[10:13:07] andywww: has joined #RubyOnRails
[10:13:09] arup_r: in a small wizard .. which is kind of facebook notifications, if you use facebook ? :)
[10:13:12] jsrn_: has joined #RubyOnRails
[10:13:14] TheGeekRunner: rushed: thank you for responsing. i'm saying "limit" in the sense that heroku responds very slow/timeouts after that threshold gets to 40-ish.
[10:13:27] TheGeekRunner: workmad3: exactly workmad3.
[10:13:35] FailBit: TheGeekRunner: that sounds like your app is responding too slowly
[10:13:36] absklb: what is each part in (@ilist ||= []) does? i know in gerenal terms that itns appending data to array. but what is || ? is it same like i+=1 for i=i+1?
[10:13:38] workmad3: TheGeekRunner: also, no... you'd basically need to create a separate admin app that connects to the same database and runs on separate hardware
[10:13:47] alex88: has joined #RubyOnRails
[10:13:55] rushed: TheGeekRunner: fix your app's response times and/or scale out
[10:13:57] FailBit: so you need to enable threading or add more instances
[10:14:14] workmad3: TheGeekRunner: which is doable, but not on a single dyno
[10:14:32] rushed: TheGeekRunner: if you do some investigation it's probably just as easy to fix the issue for everyone as it is to just fix it for admins~
[10:15:12] FailBit: <absklb> what is each part in (@ilist ||= []) does? i know in gerenal terms that itns appending data to array. but what is || ? is it same like i+=1 for i=i+1?
[10:15:15] TheGeekRunner: rushed: workmad3 FailBit : thank you for your responses.
[10:15:16] hueston: has joined #RubyOnRails
[10:15:21] workmad3: ^ I'd second rushed's suggestion... something is being done *very* badly if your limit is at about 40 concurrent users
[10:15:26] FailBit: absklb: @ilist = @ilist || []
[10:15:30] TheGeekRunner: will consider reducing the resonse times.
[10:15:32] FailBit: is what that expands to
[10:16:20] linus4: has joined #RubyOnRails
[10:16:27] FailBit: which itself expands to
[10:16:30] FailBit: @ilist = [] if not @list
[10:16:37] TheGeekRunner: workmad3: will have to look into why it responds slow. There are also users with slow connection.
[10:16:57] FailBit: does heroku not prevent slowloris?
[10:17:12] FailBit: I'd imagine it proxies everything going through the appserver
[10:17:42] absklb: FailBit: any link to what is ||
[10:17:50] absklb: other than Or operator
[10:18:05] FailBit: absklb: it's the or operator
[10:18:08] FailBit: that's all it is
[10:18:27] FailBit: expr = (this || that)
[10:18:27] absklb: FailBit: then i still did not got the login behind (@ilist ||= []). can you please tell in plain english?
[10:18:46] FailBit: if @ilist is nil, assign @ilist = []
[10:18:55] roshanavand: has joined #RubyOnRails
[10:18:59] arup_r: absklb: it is short circuit operator
[10:19:02] absklb: FailBit: yes, but when I am adding new data to my array there is only "new data" where is the "or" part? there is no or? just add this new data thats it?
[10:19:14] arup_r: it does help in lazy evaluation
[10:19:21] absklb: arup_r: ok
[10:19:32] FailBit: it will add the new data
[10:19:35] TheGeekRunner: FailBit: will add NewRelic addon and check the response times.
[10:19:40] TheGeekRunner: FailBit: thank you.
[10:19:43] arup_r: (array || [] ) << 1
[10:19:45] FailBit: if you want to try it pop open an irb shell and try it
[10:19:52] arup_r: (array ||= [] ) << 1
[10:20:09] arup_r: very tough in IRC to teach someone.. :(
[10:20:12] Macaveli: has joined #RubyOnRails
[10:20:19] rickmasta: has joined #RubyOnRails
[10:20:29] absklb: FailBit: yes it will add the new data. but when we say that its "OR' operations shouldnt there be two things involved? this or that? this is my new data? what is that?
[10:20:30] arup_r: message after message..
[10:20:33] absklb: arup_r: ok
[10:20:41] AxonetBE: has joined #RubyOnRails
[10:20:42] arup_r: No man, I am not saying you
[10:20:57] arup_r: I will tell you how it works.. if you don't get it yet
[10:21:08] zpe: has joined #RubyOnRails
[10:21:14] arup_r: lots of people talking.. so all colliding with each other .. hahaha
[10:21:35] arup_r: did you get my example ?
[10:21:43] arup_r: it is very helpful in Ruby
[10:21:51] Shoutsid: has joined #RubyOnRails
[10:22:07] arup_r: The example I shown is a memoization in Ruby
[10:23:47] absklb: i just want to know logic.
[10:24:36] absklb: arup_r: no i did not understood the logic behind.
[10:25:11] jhass: absklb: it's equivalent to @ilist ||= []; @ilist << foo; @ilist ||= [] you can picture as @ilist || @ilist = []; also keep in mind that the value of an assignment is its right hand side. || will only evaluate the right hand side if the left hand side is falsy (nil or false)
[10:25:44] arup_r: absklb: ^^
[10:25:58] absklb: jhass: I see.
[10:26:08] absklb: arup_r: yeah
[10:26:15] arup_r: this is sweet
[10:26:20] jhass: the value of || is its first truthy side or the last falsy side
[10:27:56] absklb: jhass: what is advanatege oever plain array[i]=value?
[10:28:18] roshanav_: has joined #RubyOnRails
[10:28:20] jhass: absklb: it's not the same at all
[10:28:30] norc: Is there some gem that generates a scaffold controller/view for an existing model, automatically with all columns it can find on its associated table?
[10:28:42] jhass: really hardly comparable at all
[10:28:53] artto: has joined #RubyOnRails
[10:28:56] absklb: jhass: ok. i did not got the "why" for || part then.
[10:29:14] krisquigley: has joined #RubyOnRails
[10:29:36] jhass: absklb: get irb and play with the expansions I've shown
[10:29:52] absklb: jhass: sure will do. btw i am doing (@ilist ||= []) << @crs.id im i doing right?
[10:29:57] arBmind: has joined #RubyOnRails
[10:29:57] norc: (I want Rails 1.x style scaffolding back :-) )
[10:30:13] jhass: absklb: probably
[10:35:35] Detch: has joined #RubyOnRails
[10:36:42] nfk|laptop: has joined #RubyOnRails
[10:36:59] herbst: has joined #RubyOnRails
[10:37:14] User4587_: has joined #RubyOnRails
[10:40:07] FailBit: I feel like half the questions in here are ruby questions and not rails questions
[10:40:26] roshanavand: has joined #RubyOnRails
[10:41:35] FailBit: I once asked someone why they didn't just use attr_accessor in a lib and he said "because I wrote this without any rails code"
[10:41:43] FailBit: wtf you smokin, man
[10:43:12] krz: FailBit: the consequences of learning rails first vs ruby
[10:43:32] FailBit: I learned rails first as well
[10:43:39] FailBit: is there something different with me
[10:43:46] FailBit: something wrong with me
[10:43:52] FailBit: I'm not normal
[10:44:25] blackmesa: has joined #RubyOnRails
[10:44:37] absklb: you are a Failed Bit.
[10:45:42] chrislotix: has joined #RubyOnRails
[10:46:45] dionysus69: has joined #RubyOnRails
[10:46:50] p1k: has joined #RubyOnRails
[10:50:10] absklb: has joined #RubyOnRails
[10:50:23] Peg-leg: has joined #RubyOnRails
[10:51:46] chrislotix: What does the "::" do/mean exactly? I'm encountering it in rails tutorial pretty often and i can't find any info on it.
[10:51:56] chrislotix: example: class MicropostTest < ActiveSupport::TestCase
[10:54:02] darkxploit: has joined #RubyOnRails
[10:54:24] rvanlieshout: chrislotix: it's class TestCase in module ActiveSupport
[10:55:38] herbst: has joined #RubyOnRails
[10:56:23] norc: chrislotix: Its just a namespace resolution operator. :)
[10:56:58] roshanavand: has joined #RubyOnRails
[10:57:48] chrislotix: rvanlieshout, norc: thank you, it was honestly bugging me not knowing that
[10:58:58] quazimodo: has joined #RubyOnRails
[10:59:07] quazimod1: has joined #RubyOnRails
[11:00:59] jokke-: has joined #RubyOnRails
[11:01:01] esistgut: has joined #RubyOnRails
[11:01:24] nopajj: has joined #RubyOnRails
[11:02:04] krisquigley: has joined #RubyOnRails
[11:02:48] mrbubbles: has joined #RubyOnRails
[11:07:32] artto: has joined #RubyOnRails
[11:08:08] rodfersou: has joined #RubyOnRails
[11:10:19] jhass: well, worth nothing that you _can_ (but really shouldn't) call methods with it too
[11:10:46] jhass: "foo"::upcase is syntactically valid
[11:11:53] sevenseacat: has joined #RubyOnRails
[11:13:50] darrencauthon: has joined #RubyOnRails
[11:14:19] _lazarevsky: has joined #RubyOnRails
[11:15:38] pontiki: has joined #RubyOnRails
[11:15:49] _lazarevsky: https://gist.github.com/anonymous/827840bc90400202528b
[11:16:10] _lazarevsky: capacity_projects.order(:name).map { |cp| cp.name } <- this yields a rather unexpected result
[11:16:23] _lazarevsky: please check the gist I posted
[11:16:25] rvanlieshout: _lazarevsky: cause?
[11:16:34] _lazarevsky: rvanlieshout: check the results in the gist
[11:16:35] rvanlieshout: _lazarevsky: did you tell your db to use case insensitive order?
[11:17:08] linus4: has joined #RubyOnRails
[11:17:24] _lazarevsky: rvanlieshout: I am not quite sure I follow.. but regardless of capitalisation of letters, d precedes P in every scenario
[11:17:34] rvanlieshout: no it doesn't :)
[11:17:59] rvanlieshout: what db engine?
[11:18:07] _lazarevsky: locally SQLite
[11:18:10] _lazarevsky: in prod MySQL
[11:18:18] rvanlieshout: ok. start with switching to mysql locally
[11:18:23] sevenseacat: what can possibly go wrong
[11:18:25] rvanlieshout: never use different engines in production
[11:18:29] Shoutsid: has joined #RubyOnRails
[11:18:42] jgt: has joined #RubyOnRails
[11:18:46] _lazarevsky: yea.. I've been bitten in the past
[11:18:52] _lazarevsky: queries which work locally bomb in prod
[11:19:02] _lazarevsky: but nevertheless the case in point.. any remarks about it?
[11:19:06] _lazarevsky: it's of type string
[11:19:18] rvanlieshout: http://www.sqlite.org/datatype3.html#collation
[11:19:26] sevenseacat: youve been given an answer
[11:19:28] rvanlieshout: no remarks.. it's expected
[11:20:13] _lazarevsky: rvanlieshout: thanks
[11:20:16] _lazarevsky: I'll read up on it.
[11:20:35] _lazarevsky: however, when I've sorted by name on other models, and have used an almost exact query I ran into no issues
[11:20:38] workmad3: ah, collations... yet another way mysql likes to screw with you
[11:20:46] rvanlieshout: workmad3: it's sqlite
[11:20:55] rvanlieshout: cause dev uses a different engine
[11:21:52] cgfbee: has joined #RubyOnRails
[11:22:31] workmad3: rvanlieshout: ah, good point
[11:22:32] _lazarevsky: rvanlieshout: thanks
[11:22:48] workmad3: _lazarevsky: but yeah, "P".ord == 80, "d".ord == 100... "P" < "d"
[11:23:01] _lazarevsky: workmad3: ya I just realised that :)
[11:23:18] _lazarevsky: may I crack a funny joke I heard the other day?
[11:23:21] sevenseacat: _lazarevsky: !guys
[11:23:21] helpa: _lazarevsky: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[11:23:49] zpe: has joined #RubyOnRails
[11:24:03] _lazarevsky: oh.. sevenseacat I'll beat the chauvinist out of my I promise
[11:26:40] jojo__: How to Modify existing files with a rails generator?
[11:26:49] chrislotix: jhass: I see. Why are the downsides of calling methods like that?
[11:26:52] rvanlieshout: jojo__: you don't.. you just edit them?
[11:27:00] jhass: chrislotix: it looks very ugly
[11:27:01] dionysus69: has joined #RubyOnRails
[11:27:14] jhass: and you'll get silly stares from other people reading your code
[11:28:15] chrislotix: jhass: fair enough :)
[11:29:12] jojo__: i want to edit some models and add some lines to it
[11:29:45] rvanlieshout: jojo__: then just do that
[11:30:05] jojo__: is it possible using templates ?
[11:30:14] syath: has joined #RubyOnRails
[11:30:16] rvanlieshout: they are for generation
[11:30:19] arup_r: has joined #RubyOnRails
[11:30:19] rvanlieshout: not for editition
[11:30:26] jojo__: rvanlieshout: yeah
[11:31:34] dionysus69: what gem would do what paperclip does but for one time mass upload of csv/excel or something else with preuploaded images in public folder?
[11:32:23] dionysus69: in fact I need something that not only uploads files but also creates model objects based on each row, lets say I have 500 rows
[11:32:46] charliesome: has joined #RubyOnRails
[11:35:35] gaussblurinc1: has joined #RubyOnRails
[11:36:11] universa1: dionysus69: seperate problems. upload is one, processing of uploaded files is another one.
[11:36:55] dionysus69: so theres no gem like drupal feeds module?
[11:37:25] rvanlieshout: dionysus69: what? rails is not a cms
[11:37:46] arup_r: has joined #RubyOnRails
[11:37:54] dionysus69: yes but I am trying to implement one feature which shouldnt be that hard :P
[11:38:07] rvanlieshout: no it's not.. for a developer
[11:38:15] FailBit: it's not one feature
[11:38:16] rvanlieshout: unless your whole project is tied together using gems
[11:38:24] arup_r1: has joined #RubyOnRails
[11:38:42] FailBit: file upload and model processing are separate concerns and should be treated as such
[11:38:47] Spami: has joined #RubyOnRails
[11:39:34] dionysus69: ok lets forget about file upload I ll do that manually, what about importing csv and creating object models based on rows?
[11:40:02] dionysus69: I know I would have to prepare model in advance
[11:40:04] rvanlieshout: easy.. no gem required
[11:40:31] dionysus69: well can you point me to somewhere ? because right now I have no idea how to do that
[11:40:43] universa1: dionysus69: std-lib -> CSV
[11:40:51] FailBit: scaffold a model
[11:40:59] FailBit: be it uploads or whatever
[11:41:09] FailBit: in the controller's new action allow file upload
[11:41:17] FailBit: in the create action do stuff with the model
[11:41:22] FailBit: problem solved
[11:41:58] dionysus69: ok thanks :) will proceed
[11:41:58] ldnunes: has joined #RubyOnRails
[11:42:00] darkxploit: has joined #RubyOnRails
[11:42:28] FailBit: this is how you do anything with any model -_-
[11:42:43] skroon: has joined #RubyOnRails
[11:42:51] skroon: anyone here that is using google pubsub?
[11:43:59] universa1: skroon: !used
[11:43:59] helpa: skroon: 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.
[11:45:11] mostlybadfly: has joined #RubyOnRails
[11:47:32] dionysus69: has joined #RubyOnRails
[11:51:10] _el_fer_: has joined #RubyOnRails
[11:53:36] artto: has joined #RubyOnRails
[11:55:38] jokke-: has joined #RubyOnRails
[11:56:30] bitkiller: has joined #RubyOnRails
[11:58:09] zpe: has joined #RubyOnRails
[12:02:56] tknz: has joined #RubyOnRails
[12:03:59] renegadeandy: Hi folks. If I store a time like "19:00:00" in the DB, and want to check if that time has passed based upon the current time...Time.now....ignoring date...how can i do that?
[12:06:20] fuheer: has joined #RubyOnRails
[12:06:32] jhass: mmh, strptime + Time.now.at_beginning_of_day < Time.now ?
[12:06:41] fuheer: Is it normal to have `DROP IF EXISTS` on all my structure.sql file after upgrading to rails 4?
[12:06:48] fuheer: did they change that? those statements weren't there in rails 3.2
[12:07:11] qnsi: has joined #RubyOnRails
[12:07:33] tvw: has joined #RubyOnRails
[12:07:34] dhainlin: has joined #RubyOnRails
[12:08:51] Trynemjoel: has joined #RubyOnRails
[12:10:00] bruno-: has joined #RubyOnRails
[12:14:48] paolodoors: has joined #RubyOnRails
[12:15:02] bruno-: has joined #RubyOnRails
[12:15:31] Shoutsid: has joined #RubyOnRails
[12:15:44] shmoon_: has joined #RubyOnRails
[12:16:40] youngbaks: has joined #RubyOnRails
[12:16:58] skroon: how does one create a daemon process to listen for google pubsub incoming messages?
[12:17:15] franzip: has joined #RubyOnRails
[12:17:18] jun: has joined #RubyOnRails
[12:17:41] jvanbaarsen: has joined #RubyOnRails
[12:20:02] bruno-: has joined #RubyOnRails
[12:20:21] jvanbaar1en: has joined #RubyOnRails
[12:20:29] jun: has joined #RubyOnRails
[12:20:39] jgt: has joined #RubyOnRails
[12:21:22] jtb__: has joined #RubyOnRails
[12:21:44] dhjondoh: has joined #RubyOnRails
[12:23:44] jvanbaarsen: has joined #RubyOnRails
[12:23:49] DoubleMalt: has joined #RubyOnRails
[12:23:52] Trynemjoel: has joined #RubyOnRails
[12:24:09] atmosx: has joined #RubyOnRails
[12:24:45] habitullence: has joined #RubyOnRails
[12:24:54] kitsuneyo: has joined #RubyOnRails
[12:25:04] bruno-: has joined #RubyOnRails
[12:26:23] krz: has joined #RubyOnRails
[12:28:03] xcesariox: has joined #RubyOnRails
[12:29:51] krz: has joined #RubyOnRails
[12:30:02] bruno-: has joined #RubyOnRails
[12:30:46] jkamenik: has joined #RubyOnRails
[12:31:26] jkamenik: has left #RubyOnRails: ()
[12:33:19] arup_r1: atmosx: I m here
[12:33:49] xcv: has joined #RubyOnRails
[12:35:01] bruno-: has joined #RubyOnRails
[12:38:18] sdwrage: has joined #RubyOnRails
[12:39:31] alienaut: has joined #RubyOnRails
[12:40:02] bruno-: has joined #RubyOnRails
[12:41:26] mwlang: has joined #RubyOnRails
[12:42:02] mwlang: has anyone used thinking sphinx with ~10 million records?
[12:42:16] universa1: mwlang: !anyone ;)
[12:42:16] helpa: mwlang: Nope. No one. Ever. In the history of the world.
[12:42:49] mwlang: figured as much. probably a dumb idea.
[12:43:24] roshanavand: has joined #RubyOnRails
[12:43:28] mwlang: but seriously, I???ve used it on several projects, but the largest is probably 50k records.
[12:43:53] sevenseacat: but seriously, if you ask your specific question, you might get some actual answers.
[12:43:59] mwlang: works well at those sizes, but I wonder about trying it on millions and just how much it can handle.
[12:44:10] mwlang: or where I can find some performance details.
[12:44:16] universa1: mwlang: http://sphinxsearch.com/forum/view.html?id=5136 ;)
[12:44:26] sevenseacat: universa1: ain't google wonderful?
[12:44:58] universa1: sevenseacat: nah, it has to be used with care and only if you've a spacesuit available... ....you'll never know what you find there (chuckle) ;)
[12:45:03] bruno-: has joined #RubyOnRails
[12:45:53] dstarh: has joined #RubyOnRails
[12:46:44] nzst: has joined #RubyOnRails
[12:47:27] chills42: has joined #RubyOnRails
[12:47:51] squiercaster: has joined #RubyOnRails
[12:47:53] antgel: has joined #RubyOnRails
[12:50:04] bruno-: has joined #RubyOnRails
[12:51:31] boena: has joined #RubyOnRails
[12:52:12] mwlang: heh???I???m still in google space w/o my helmet???
[12:53:06] herbst: has joined #RubyOnRails
[12:53:11] linus4: has joined #RubyOnRails
[12:54:05] AxonetBE: has joined #RubyOnRails
[12:54:45] AxonetBE: I always get undefined local variable or method for my route
[12:54:51] AxonetBE: what can be the problem? https://gist.github.com/DriesS/ef1967f9b64c9a401080
[12:55:03] bruno-: has joined #RubyOnRails
[12:56:13] inoter: has joined #RubyOnRails
[12:56:28] arup_r1: has left #RubyOnRails: ()
[12:56:39] mwlang: AxonetBE: in your controller, you???re not setting @new_visitor anywhere.
[12:56:54] AxonetBE: it's in my application controller
[12:56:59] AxonetBE: in a before filter
[12:57:11] jhass: AxonetBE: edit the gist and add the full error output
[12:57:25] mwlang: Can you gist the error stack trace as well as the other controller where it???s being set?
[12:57:43] chrislotix: has joined #RubyOnRails
[12:57:53] AxonetBE: done: https://gist.github.com/DriesS/ef1967f9b64c9a401080
[12:58:28] jhass: that's just the trace, where's the message?
[12:58:50] jhass: and what's app/views/refinery/shared/_user_info_popup.html.haml:13 in your gist?
[12:59:27] mrchris: has joined #RubyOnRails
[12:59:31] mrchris: Good morning
[12:59:49] Skelz0r: has joined #RubyOnRails
[13:00:07] bruno-: has joined #RubyOnRails
[13:00:10] greenarrow: has joined #RubyOnRails
[13:00:14] roshanavand: has joined #RubyOnRails
[13:00:26] mrchris: Im having an issue where devise is saying "already signed in" when I try to access certain routes.
[13:00:56] AxonetBE: jhass: sorry I added just some line, I updated and add all the code in it
[13:01:00] mrchris: I'm being redirected due to this "Filter chain halted as :require_no_authentication rendered or redirected"
[13:01:12] dllama: has joined #RubyOnRails
[13:01:22] sevenseacat: __chris: makes sense.
[13:01:24] herbst: has joined #RubyOnRails
[13:01:37] sevenseacat: you cant visit things like the registration or login page when you're already logged in.
[13:02:11] mrchris: Well Im trying to visit registrations#delete
[13:02:12] ramortegui: has joined #RubyOnRails
[13:02:24] sevenseacat: thats not even an action
[13:03:12] mrchris: wait a min.. I've been using this as a reference.. I'm guessing maybe this gist is totally broken.. https://gist.github.com/chrishough/6dd44fc841e80bbc2265
[13:03:33] mrchris: (that guy has my name but its not me)
[13:03:47] sevenseacat: theres no reference to registrations#delete there
[13:03:51] gaussblurinc1: well, I have a trouble with devise sessions controller customization. I create new Users::SessionsController that is inherited from Devise::SessionsController. But when I try to specify my Users::SessionsController in routes, error occurs 'uninitialized constant SessionsController': devise_for :users, skip: [:registerable, :recoverable], controllers: {sessions: 'users/sessions'}
[13:03:58] mwlang: finally, getting a little closer to ansewring my ???unasked question??? ??? looking for comparison between sphinx and lucene is bringing up some good info about using either with large datasets.
[13:04:21] sankaber: has joined #RubyOnRails
[13:04:28] mrchris: sevenseacat, this route does not work for me # get '/cancel', to: 'users/registrations#cancel', as: 'cancel_user_registration'
[13:04:40] sevenseacat: cancel is also not an action
[13:04:50] mrchris: ok i think you put me on the right path. thanks
[13:05:06] bruno-: has joined #RubyOnRails
[13:06:05] jhass: AxonetBE: you don't have a route named check_mail_visitors, check bin/rake routes for the names
[13:06:29] mrchris: well hold on.. this is a devise route cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
[13:06:38] AxonetBE: jhass: did already, this is the output check_mail_visitors POST /visitors/check_mail(.:format) visitors#check_mail
[13:07:00] umgrosscol: has joined #RubyOnRails
[13:07:13] jhass: AxonetBE: make sure to fully restart your app, bin/spring stop
[13:07:33] AxonetBE: jhass: done already at least 3 times:)
[13:08:02] voker57: has joined #RubyOnRails
[13:09:18] sevenseacat: __chris: "doesnt work" is not something I can help fix
[13:09:45] jhass: AxonetBE: well, I have my doubts you successfully did tbh
[13:10:06] mrchris: You told me #cancel was not an action but clearly it is.. I'm trying to sort out the bad data
[13:10:08] bruno-: has joined #RubyOnRails
[13:10:37] sevenseacat: it definitely shouldn't be, and i doubt that it is. deleting an account should not be a GET request.
[13:10:52] sevenseacat: and 'cancel' is a terrible word for it
[13:11:36] mrchris: sevenseacat, https://github.com/plataformatec/devise/blob/master/app/controllers/devise/registrations_controller.rb#L78
[13:11:55] sevenseacat: ohhh thats not deleting an account
[13:12:03] blackmesa: has joined #RubyOnRails
[13:12:11] sevenseacat: that makes sense then... I'd still have called it something other than cancel
[13:12:17] AxonetBE: jhass: well could not do more then CTRL+C and rails s
[13:12:23] atomical: has joined #RubyOnRails
[13:12:26] krisquigley: has joined #RubyOnRails
[13:12:26] sevenseacat: AxonetBE: yes you can
[13:12:32] jhass: AxonetBE: as said you could, Ctrl+C, bin/spring stop, rails s
[13:12:33] User458764: has joined #RubyOnRails
[13:12:40] pawnbox: has joined #RubyOnRails
[13:13:02] sevenseacat: __chris: you should never need to refer to that cancel route manually
[13:13:09] sevenseacat: its for use with oauth, as described
[13:13:18] AxonetBE: jhass: I don't use spring
[13:13:20] n1lo: has joined #RubyOnRails
[13:13:56] sevenseacat: and you definitely can't cancel a sign in if you're already signed in
[13:14:05] xcesariox: sevenseacat: yo, sweetie!
[13:14:10] tweeeaks: has joined #RubyOnRails
[13:14:13] sevenseacat: xcesariox: um, hello.
[13:14:22] xcesariox: sevenseacat: hahaha, had your dinner?
[13:14:26] Guest53: has joined #RubyOnRails
[13:14:30] sevenseacat: xcesariox: yes.
[13:14:46] xcesariox: sevenseacat: would you be kind to be my mentor ? ):
[13:14:50] mrchris: I'm going to go RTFC for a while
[13:15:04] sevenseacat: xcesariox: I'll pass.
[13:15:54] ericjphillips: has joined #RubyOnRails
[13:15:59] xcesariox: sevenseacat: but you are a mentor here by answering everyone's question.
[13:16:36] sevenseacat: if you have a question, I might try to help you answer it.
[13:16:44] dhjondoh: has joined #RubyOnRails
[13:16:47] jhass: AxonetBE: there's not much anyone without access to your machine can do then. It should work and is usually a caching issue
[13:17:03] xcesariox: sevenseacat: is there a gem that i can use to track user history like path that the visit or routes the have gone through
[13:17:32] xcesariox: sevenseacat: do you know the gem name?
[13:18:25] ndrst: has joined #RubyOnRails
[13:18:28] workmad3: AxonetBE: hmm... am I reading that stack-trace correctly, and that view is inside a mounted refinery engine?
[13:18:36] workmad3: AxonetBE: and, by any chance, is the route defined in your main app?
[13:19:40] workmad3: AxonetBE: if so, try using `main_app.check_mail_visitors_path` instead
[13:19:55] bruno-: has joined #RubyOnRails
[13:20:07] mrchris_: has joined #RubyOnRails
[13:20:35] losvedir: has joined #RubyOnRails
[13:20:59] kitsuneyo: has joined #RubyOnRails
[13:23:04] mrchris_: has joined #RubyOnRails
[13:24:37] shinnya: has joined #RubyOnRails
[13:25:10] newdan: has joined #RubyOnRails
[13:25:23] bruno-: has joined #RubyOnRails
[13:25:41] trautwein: has joined #RubyOnRails
[13:25:59] mrchris: has joined #RubyOnRails
[13:27:36] bkulbida: has joined #RubyOnRails
[13:28:00] mrchris: has joined #RubyOnRails
[13:28:12] AxonetBE: workmad3: Thanks :)
[13:30:27] bruno-: has joined #RubyOnRails
[13:32:08] blackmesa: has joined #RubyOnRails
[13:33:40] jgpawletko: has joined #RubyOnRails
[13:33:42] nfk|laptop: has joined #RubyOnRails
[13:34:55] workmad3: AxonetBE: did that sort it?
[13:35:23] nej: Anyone else has problems with their `rails console` prompt ending up on the wrong line when exceptions are raised? Like this: https://gist.github.com/alminde/56662e8b31291fd02bf1
[13:35:27] nej: It???s extremely annoying
[13:35:28] bruno-: has joined #RubyOnRails
[13:36:00] devdazed: has joined #RubyOnRails
[13:36:40] workmad3: nej: nope, not got that problem... but then it's been quite a while since I used the default rails console instead of pry-rails ;)
[13:37:14] nej: workmad3: Maybe I should try that, if nothing else just to hopefully fix this annoyance
[13:37:18] workmad3: AxonetBE: cool :)
[13:37:35] workmad3: nej: come, join us!
[13:38:37] ankhers: has joined #RubyOnRails
[13:39:49] davispuh: has joined #RubyOnRails
[13:40:28] bruno-: has joined #RubyOnRails
[13:40:51] herbst: has joined #RubyOnRails
[13:40:55] nej: workmad3: But then I'll feel forced to learn all the powers of Pry! ^_^
[13:41:42] nej: Yeah, well, my prompt is on the right line now, but now my backtraces are only one frame long :B
[13:41:55] ankhers: has joined #RubyOnRails
[13:42:41] krisquigley: has joined #RubyOnRails
[13:43:32] techsethi: has joined #RubyOnRails
[13:44:52] ankhers: has joined #RubyOnRails
[13:45:30] bruno-: has joined #RubyOnRails
[13:45:50] nej: Hah, Pry has a `wtf` command
[13:45:58] nej: I love it
[13:46:27] nej: ???If you want to see more lines, add more question marks or exclamation marks.??? ??? Hahaha, this is fucking great!
[13:47:18] AxonetBE: has left #RubyOnRails: ()
[13:48:22] riotjones: has joined #RubyOnRails
[13:50:01] roshanavand: has joined #RubyOnRails
[13:50:30] bruno-: has joined #RubyOnRails
[13:50:31] Kedric: has joined #RubyOnRails
[13:51:31] benjwadams: has joined #RubyOnRails
[13:51:45] darrencauthon: has joined #RubyOnRails
[13:52:00] Kedric: Does anyone have a modern link on how to mock a single method in a core data object? The method I am testing needs access to the dynamic properties. In short, how do I mock a core data object and not ruin its properties?
[13:52:40] Kedric: I cannot use the protocol mock as I need access to the properties and do not want to stub them.
[13:53:17] Kedric: ignore this, I went to the wrong room. habit.
[13:53:35] benjwadams: I'm running a cron job with Rails' script/runner. I keep getting warnings output to the mail from the cron job from deprecation warnings, etc. How can i disable these without redirecting errors to /dev/null?
[13:55:31] bruno-: has joined #RubyOnRails
[13:55:55] herbst: has joined #RubyOnRails
[13:56:01] xcv: has joined #RubyOnRails
[13:56:56] tsujp: has joined #RubyOnRails
[13:56:57] rubyonrailed: has joined #RubyOnRails
[13:57:05] stannard: has joined #RubyOnRails
[13:57:06] artto: has joined #RubyOnRails
[13:57:15] benlieb: has joined #RubyOnRails
[13:58:48] sankaber: has joined #RubyOnRails
[14:00:08] mwlang: nej: I do have the same problem in my irb console.
[14:00:42] nej: mwlang: Weird. Doesn't it drive you crazy?
[14:01:04] mwlang: nej: yeah. Mostly I try my darnest not to have exceptions, tho??? :-)
[14:01:36] mwlang: I hate trying to go through command histories when that line???s messed up, too.
[14:01:41] Rin: has joined #RubyOnRails
[14:01:52] nej: mwlang: Haha, yeah, me too. It's mostly name errors from mistyped method names.
[14:02:21] nej: Yeah, Imma just use Pry now. ^_^ I should have started doing so a long time ago anyway
[14:03:22] FailBit: pry is love, pry is life
[14:03:27] workmad3: nej: tbh, I mostly add in pry so that I can shove `binding.pry` into my code as a breakpoint mechanism :)
[14:03:47] stannard: has joined #RubyOnRails
[14:03:49] dionysus69: can anyone help me how to "slice off attributes" I am tweaking rails 3 tutorial for rails 4 and I am stuck here https://gist.github.com/webzorg/c3f3ebbee3a09f7c58e7 I marked the place where its complaining
[14:03:54] FailBit: any body here use rails?
[14:03:56] workmad3: I find most of my console use has devolved to that nowadays :)
[14:03:59] nej: workmad3: Ah, yeah, that sounds really useful
[14:04:04] FailBit: ACTION mockery
[14:04:08] workmad3: FailBit: nope, nobody
[14:04:15] nej: FailBit: try #django
[14:04:20] mrchris: FailBit i bet the people at #RubyOnRails use it
[14:04:26] workmad3: yeah, they love rails in #django!
[14:04:51] FailBit: dionysus69: controller code is inaccessible from model code
[14:05:04] antgel: has joined #RubyOnRails
[14:05:12] dionysus69: FailBit: yes so how do I achieve same effect? I just paste all params inside?
[14:05:13] FailBit: is there an MVC for Dummies book
[14:05:49] thither: has joined #RubyOnRails
[14:06:08] workmad3: dionysus69: add an extra param to the method, e.g. 'def self.import(file, attributes)' and then call it with 'Admin::Product.import(file, admin_product_params)'
[14:06:09] nej: is there an Rails autoloading for Dummies book? I could really use that
[14:06:18] workmad3: dionysus69: e.g. pass data in
[14:06:35] FailBit: autoload is part of Module
[14:06:36] thither: Anyone have any ideas why a model with a has_many relation isn't pluralizing it's child model? I have another model with the same relation to the same child model and it's pluralizing properly.
[14:06:46] nej: FailBit: for reals?
[14:06:51] FailBit: thither: what is its name
[14:06:51] mwlang: dionysus69: pass the params into the import method??? ie. def self.import(file, params)
[14:06:53] workmad3: FailBit: rails autoloading is a bit more than the autoload provided in core ruby
[14:06:56] nej: but Rails expands on that, right?
[14:07:19] dionysus69: thanks FailBit workmad3 mwlang will give it a shot
[14:07:23] Motoservo: has joined #RubyOnRails
[14:08:07] thither: FailBit: nvm I'm an idiot
[14:08:11] workmad3: nej: correct... core ruby provides the ability to do something like `autoload :SomeConstant, 'file-SomeConstant-is-in'` so that the file isn't loaded until SomeConstant is accessed
[14:08:17] thither: Did has_many blobs for one and has_many blob for the other :P
[14:08:34] FailBit: maybe the inflector is being dumb
[14:08:34] nej: workmad3: So I see now! I thought it was all Rails.
[14:08:46] FailBit: try running "blob".pluralize in console
[14:08:50] workmad3: nej: while rails provides an overload for the constant_missing hook that will load files based on conventions around the missing console
[14:09:21] workmad3: nej: I don't think the autoloading in rails actually uses the ruby `autoload` method, tbh :)
[14:09:31] FailBit: the constant_missing thing is annoying e.g. if you define two related modules in different files
[14:09:36] FailBit: *same files
[14:09:58] nej: workmad3: Right. Do you have any idea how to avoid having to restart the server whenever I change files in my Rails app???s `lib` dir?
[14:11:13] FailBit: I do know but I'll have to dig it up later
[14:11:43] sarink: has joined #RubyOnRails
[14:12:43] dionysus69: can I change this: find_by_id(row["id"]) to find_by_sku(row["sku"]) and rails will know whats going on?
[14:13:05] helpa: Why don't you try it and find out for yourself?
[14:13:15] dionysus69: haha ok will do :P
[14:13:47] pwnd_nfsw: has joined #RubyOnRails
[14:15:05] Shoutsid: has joined #RubyOnRails
[14:15:09] ritic: has joined #RubyOnRails
[14:16:04] DoubleMalt: has joined #RubyOnRails
[14:16:15] dionysus69: I have defined method called admin_product_params but I see rails using params[:id] for example, how ?
[14:16:34] dionysus69: shouldn't it be admin_product_params[:id] ?
[14:16:45] beauby: has joined #RubyOnRails
[14:16:51] User458764: has joined #RubyOnRails
[14:17:27] HenriettaSalt: has joined #RubyOnRails
[14:17:44] Rodya_: has joined #RubyOnRails
[14:18:19] squiercaster: has joined #RubyOnRails
[14:18:24] axl_: has joined #RubyOnRails
[14:18:39] FailBit: nej: https://gist.github.com/liamwhite/6c2444eb2b73bd6a05b8
[14:19:02] FailBit: config/initializers/lib_reloader.rb
[14:19:06] bruno-: has joined #RubyOnRails
[14:19:41] ankhers: has joined #RubyOnRails
[14:20:02] linus4: has joined #RubyOnRails
[14:22:02] nej: FailBit: Nice! Awesome! Thanks! Though I don't really get why it's necessary
[14:22:25] FailBit: because lib code isn't automatically required by raild
[14:22:43] sankaber: has joined #RubyOnRails
[14:22:50] codeurge: has joined #RubyOnRails
[14:22:51] FailBit: this will require all your lib code in development
[14:22:56] FailBit: so be careful on production
[14:23:06] krisquigley: has joined #RubyOnRails
[14:23:10] FailBit: be sure to explicitly require the files you use
[14:23:46] highcup: has joined #RubyOnRails
[14:24:06] nej: Yeah, alright. Where would you recommend I require them? I'm doing it in the bottom of config/application.rb right now
[14:25:24] simplyianm: has joined #RubyOnRails
[14:25:29] rickmasta: has joined #RubyOnRails
[14:26:37] marr: has joined #RubyOnRails
[14:28:07] chouhoulis: has joined #RubyOnRails
[14:28:35] FailBit: in the files where they are used
[14:30:26] victortyau: has joined #RubyOnRails
[14:30:40] based_pdev: has joined #RubyOnRails
[14:32:04] nej: FailBit: Alright. Though what if it's something really general like an Active Record connection adapter, or some core extension?
[14:32:35] FailBit: that goes in an initializer, or it should have a railtie...
[14:33:46] nej: Gotcha. Thanks!
[14:36:00] pawnbox: has joined #RubyOnRails
[14:36:15] mdel: has joined #RubyOnRails
[14:37:31] dionysus69: whats wrong with this line migration give me error at :type >> rename_column :admin_products :type :subcategory
[14:38:00] dionysus69: I am just trying to change lane from type to subcategory since type turned out to be a reserved name...
[14:38:43] nej: dionysus69: you're missing commas at least, but maybe they just disappeared in your paste
[14:39:03] dionysus69: nej nope commans give me extra errors, I dont think I need commas
[14:39:16] dionysus69: or yes actually I do
[14:39:19] nej: `method arg arg` is not valid ruby
[14:39:23] davispuh: has joined #RubyOnRails
[14:39:30] EminenceHC: has joined #RubyOnRails
[14:40:19] SteenJobs: has joined #RubyOnRails
[14:40:29] podman: has joined #RubyOnRails
[14:41:42] dionysus69: yay import works
[14:42:06] dionysus69: thanks everyone I will try optimize it in a lil bit
[14:42:28] hueston: has joined #RubyOnRails
[14:42:31] joshkovach: has joined #RubyOnRails
[14:43:10] arup_r: has joined #RubyOnRails
[14:43:18] thither: Can I do a Model.find() but for an attribute? Like Model.search(name: 'foo')
[14:43:44] tsujp: has joined #RubyOnRails
[14:44:26] atomical_: has joined #RubyOnRails
[14:44:38] arup_r: use find_by
[14:44:42] arup_r: thither: ^^
[14:45:00] arup_r: .find is for `id` search
[14:47:06] KnownSyntax_: has joined #RubyOnRails
[14:47:21] nertzy3: has joined #RubyOnRails
[14:47:38] tercenya_: has joined #RubyOnRails
[14:48:10] seank__: has joined #RubyOnRails
[14:48:47] kedric_: has joined #RubyOnRails
[14:49:38] gaussblurinc11: has joined #RubyOnRails
[14:49:59] Eq: has joined #RubyOnRails
[14:50:36] darkxploit: has joined #RubyOnRails
[14:50:37] roshanavand: has joined #RubyOnRails
[14:51:12] Sigma00: has joined #RubyOnRails
[14:51:17] Scient: has joined #RubyOnRails
[14:51:29] Technodrome: has joined #RubyOnRails
[14:51:43] joelsmith: has joined #RubyOnRails
[14:51:54] dlitz: has joined #RubyOnRails
[14:52:53] noodman: has joined #RubyOnRails
[14:53:11] xcesariox: has joined #RubyOnRails
[14:53:37] patrick_star: has joined #RubyOnRails
[14:54:07] idd2d: has joined #RubyOnRails
[14:54:42] artto: has joined #RubyOnRails
[14:56:47] Guest28534: has joined #RubyOnRails
[14:57:05] Puffball: has joined #RubyOnRails
[14:57:46] lacuna: has joined #RubyOnRails
[14:57:47] chills42: has joined #RubyOnRails
[14:58:03] DmitryBochkarev: has joined #RubyOnRails
[14:58:31] sevenseacat: anyone know how to change database collation on heroku? it seems to be stuck on en_US.UTF-8 no matter what I do
[14:59:11] EminenceHC: has joined #RubyOnRails
[15:00:04] cschneid_: has joined #RubyOnRails
[15:00:19] atomical: has joined #RubyOnRails
[15:00:23] mary5030: has joined #RubyOnRails
[15:01:06] beingjohnm: Has anybody looked at Convox (convox.com) as an alternative to Heroku? Not ready to deply but it sounds interesting.
[15:03:25] fedexo: has joined #RubyOnRails
[15:03:40] trautwein: has joined #RubyOnRails
[15:03:47] lessless: has joined #RubyOnRails
[15:03:50] tubbo: beingjohnm: no but i keep wondering why none of these "self-hosted PaaS" solutions never really takeoff
[15:03:52] tubbo: take off*
[15:04:00] tubbo: i feel like they are in fact quite difficult/expensive to set up
[15:04:26] dionysus69: has joined #RubyOnRails
[15:04:30] safety_cut: has joined #RubyOnRails
[15:05:50] voker57: has joined #RubyOnRails
[15:06:38] artto: has joined #RubyOnRails
[15:07:05] beingjohnm: tubbo: I'm guess more difficult than expensive. The base Convox deployment is $85 a month according to their site.
[15:07:44] beingjohnm: tubbo: this one went through Y Combinator which I guess would suggest that they have a growth and revenue plan but looking at their site I can't figure out what it is
[15:08:27] tubbo: beingjohnm: well they already gave away the product, suppose they could make money off the support side
[15:08:36] tubbo: or maybe they're running their own implementation of it, another great way to prove that it works
[15:08:49] Rin: has left #RubyOnRails: ("WeeChat 1.3")
[15:08:59] tubbo: beingjohnm: the one thing that makes these guys different is the lack of docker :)
[15:11:26] safety_cut: has joined #RubyOnRails
[15:13:02] roshanavand: has joined #RubyOnRails
[15:13:35] The_Phoenix: has joined #RubyOnRails
[15:13:40] ndrst: has left #RubyOnRails: ()
[15:14:01] mehwork: most tutorials just say to run 'rake db:migrate' but that errors if a database doesn't already exist (in mysql anyway), and this guide says to use rake db:setup to create the database. Is that right? http://guides.rubyonrails.org/active_record_migrations.html
[15:14:47] Fire-Dragon-DoL: has joined #RubyOnRails
[15:15:55] tubbo: mehwork: rake db:migrate will run migrations, but it assumes that a db already exists...and as the error says, you should run rake db:create to actually run the 'CREATE DATABASE' query
[15:16:21] tubbo: mehwork: rake db:setup is actually slightly different...it runs db:create, db:schema:load, then db:seed
[15:16:48] tubbo: db:schema:load doesn't re-evaluate the migrations (or change the schema), it just runs through db/schema.rb and applies it to your database
[15:16:56] artto: has joined #RubyOnRails
[15:17:04] mehwork: hmm, so maybe i'm better off just manually creating the db and then running db:migrate since i don't know about db:schema:load and db:seed yet
[15:18:21] siddart: has joined #RubyOnRails
[15:18:22] tubbo: mehwork: that's what you're meant to do the very first time you create the db...you have no db/schema.rb file and the database has not been created
[15:20:01] Pupeno_: has joined #RubyOnRails
[15:20:52] roshanavand: has joined #RubyOnRails
[15:21:32] jokke-: has joined #RubyOnRails
[15:21:37] zpe: has joined #RubyOnRails
[15:22:08] disgrntld: has joined #RubyOnRails
[15:22:45] iliketurtles: has joined #RubyOnRails
[15:23:10] eGGsha: has joined #RubyOnRails
[15:23:12] avenger: has joined #RubyOnRails
[15:23:40] mehwork: still can't get over how much stuff tutorials skip. Can't wait for radar's book to arrive
[15:24:50] Pupeno_W: has joined #RubyOnRails
[15:25:08] tubbo: yeah i've noticed that in general with tutorials and guides
[15:25:15] tubbo: they're meant to get you started, but not to finish the job
[15:25:16] mehwork: it doesn't trip me up as much because i have a lot of coding experience, but i'd hate to be a total noob trying to learn rails with the wrong guides
[15:25:40] smathy: has joined #RubyOnRails
[15:25:40] mehwork: i can usually tell when something i missing rather than tearing my hair out all day, but i do remember those days when i was a total beginner
[15:26:29] mehwork: my friend is trying to learn to program and he keeps beating himself up over how hard it is, but it's almost always because his books are crap and not his fault
[15:26:30] tubbo: mehwork: it's cool, they just come in here and bother people like me ;)
[15:27:33] tubbo: mehwork: one time i tried to teach myself programming by reading this book -> http://www.amazon.com/Tricks-Windows-Game-Programming-Gurus/dp/0672313618
[15:27:46] tubbo: that motherfucker is thicker than a tissue box
[15:27:48] mehwork: the title alone, i can feel the pain
[15:27:58] tubbo: it's actually really awesome. it teaches you how to build a breakout game from scratch in C/C++
[15:28:01] tubbo: well, C++
[15:28:02] mehwork: i learned with 'teach yourself java in 21 days" or some junk
[15:28:11] tubbo: but the font size is like 4pt
[15:28:18] tubbo: and it's just like HERE IS SOURCE CODE HOPE YOU GET IT
[15:28:26] mehwork: iow, i learned nothing and thought i just wasn't smart enough to be a programmer at first
[15:28:31] tubbo: nowadays i can get it, actually they use Cairo which is VERY similar to <canvas>!
[15:28:46] mehwork: then i got bjarne's canonical C++ book and gave up coding for about a year
[15:28:58] jaxgeller: has joined #RubyOnRails
[15:29:06] mehwork: until discovering python
[15:29:52] Cache_Money: has joined #RubyOnRails
[15:30:03] mehwork: the main lesson i got out of all that is never trust anyone completely unless what they're saying is working
[15:30:26] linus4: has joined #RubyOnRails
[15:30:30] jackson: has joined #RubyOnRails
[15:30:33] mehwork: i think by deafult people will assume something is wrong with us and our self-esteem gets lowered and it can affect our entire future
[15:31:24] mehwork: it's probably why stackoverflow is such a success. Peolple ask questions and get steered in the right direction rather than reading a book and giving up
[15:31:42] Pupeno: has joined #RubyOnRails
[15:31:42] Pupeno: has joined #RubyOnRails
[15:31:50] mehwork: assuming they're not steered wrong by stackoverflow
[15:32:14] riotjones: has joined #RubyOnRails
[15:32:22] sonofdirt: has joined #RubyOnRails
[15:32:38] Scient: there is definitely one question which has responses wanting me to stab the author in the eye :P
[15:32:47] mehwork: but looking back thinking that i was also going to write games, and in java, from day one is pretty funny
[15:33:00] Scient: and thats SSL issues, where the standard response is "use ssl.verify_peer = false" or something along those lines
[15:33:05] riotjones: has joined #RubyOnRails
[15:33:12] Scient: its like aaaaaaargh stop giving that shit advice already
[15:33:39] yardenbar: has joined #RubyOnRails
[15:33:49] mehwork: i like to say to people "that's correct... 4 years ago!
[15:34:36] mehwork: Scient: what does that do anyway?
[15:34:46] Scient: disable ssl cert verification
[15:34:48] mehwork: not doing any ssl
[15:34:50] Scient: so anything and everything is valid
[15:34:58] havenwood: has joined #RubyOnRails
[15:34:58] Scient: which sort of destroys the whole damn purpose
[15:35:08] mehwork: although now it's tls not ssl, but it's still called ssl for historical reasons i suppose
[15:35:17] Scient: and its super common to suggest that as a fix to any related issues
[15:35:32] ngscheurich: has joined #RubyOnRails
[15:35:43] mehwork: it's like in the php workd when they tell people to suppress errors to fix things
[15:37:17] avenger: has joined #RubyOnRails
[15:37:48] mehwork: there's a text out there called like The Duct Tape Programmer that says it's better if people take short cuts to get things done (or at least, that's how some people interpret it)
[15:38:52] mehwork: the people who want to race the clock to show their boss that they got something working quickly, which makes them feel smarter. Then the boss says 'ok push it to prod' and they do because again, can't take appear slow by doing it right
[15:39:42] Scient: sounds horribad
[15:40:35] mehwork: i've asked teams/bosses what they think about running a deployment command that looks like: deploy --production --skip-tests --skip-security --skip-linting
[15:40:54] havenwood: mehwork: They using the VW extension to PHPUnit?
[15:40:57] havenwood: https://github.com/hmlb/phpunit-vw#readme
[15:41:07] mehwork: and they go 'very funny' and i go: but that's exactly what people effectively did, which is why there's so much crap going on production
[15:42:03] The_Phoenix: has joined #RubyOnRails
[15:42:11] mehwork: havenwood: is that what volkswagen used
[15:42:19] havenwood: Though we *can* do VW-style testing in Ruby too: https://github.com/guilleiguaran/minitest-vw#readme
[15:42:24] havenwood: mehwork: ;)
[15:42:43] mehwork: i see, that's the joke
[15:42:47] havenwood: It does indeed stop failing tests. Ship it.
[15:43:39] losvedir: so what do folks do for their "light" JS needs?
[15:43:47] nfk: has joined #RubyOnRails
[15:43:58] mehwork: i think i will use that in interviews, asking candidates what they think about it. If they say it seems like a good idea i'd be scared
[15:43:59] losvedir: i have a rails app, and i'd like to add a smattering of dynamic interactions and stuff, but don't want to go the full SPA route
[15:44:12] losvedir: so i'm thinking angular, ember are overkill
[15:44:20] mehwork: ember is definitely not light
[15:44:46] mehwork: depends on what you need, if you don't need a full framework, i like lodash
[15:44:55] jgt: has joined #RubyOnRails
[15:45:06] mehwork: goign up from there i'd go to knockout.js next probably
[15:45:19] losvedir: mehwork: is iodash somehow related to underscore? looks similar
[15:45:28] mehwork: it's similar
[15:45:39] mehwork: react.js is really popular but i haven't used it yet
[15:45:44] losvedir: knockout, interesting. i was looking at that
[15:46:04] tubbo: losvedir: why don't you just use jQuery?
[15:46:05] losvedir: i've used react and i love it, but i kind of feel it's pushing the "too heavy" side for just light interactions
[15:46:07] mehwork: use react if you want to be cool and modern, but idk if it's good advice or not since i don't know it yet
[15:46:07] tubbo: angular is also not very light
[15:46:09] avenger: has joined #RubyOnRails
[15:46:14] Scient: react definitely is not light
[15:46:21] tubbo: any framework really isn't
[15:46:23] dllama: has left #RubyOnRails: ()
[15:46:25] joshkovach: has joined #RubyOnRails
[15:46:26] Scient: the answer here is "it dependS"
[15:46:31] Scient: jquery is probably one of the lightest
[15:46:37] Scient: and provides you _tools_
[15:46:40] Scient: not a framework
[15:46:42] mehwork: also, ask yourself why light is so important, and in what sense do you mean 'light'
[15:46:49] losvedir: yeah, we use jquery now but it's getting a little tangled
[15:46:58] Scient: maybe its not the tool then
[15:47:00] tubbo: i've been pretty happy with jQuery and Rails UJS
[15:47:02] Scient: but organizing your code
[15:47:07] tubbo: but i don't make giant apps all the time
[15:47:07] Scient: we use only jquery as well
[15:47:13] Scient: but write all the code in coffee
[15:47:20] Scient: which allows for nice code organization
[15:47:25] mehwork: if you take hte word 'light' appart and try to find the actual pain points you're trying to avoid, you might find that 'light' is irrelevant
[15:47:31] Scient: (because of the "traditional" OO model)
[15:47:31] tubbo: yeah...we only use jQuery but our "modules" system actually looks a lot like angular sometimes :D
[15:47:44] Sheperson: has joined #RubyOnRails
[15:47:49] Scient: so a class/module for each piece of functionaluty
[15:47:54] Scient: and a custom binder to bind it to elements
[15:47:56] tubbo: Scient: just don't extend too many times :)
[15:48:03] tubbo: coffeescript classes are not classes
[15:48:17] Scient: yeah we dont really mess around with inheritance that much
[15:48:32] Scient: all classes are essentially lightweight containers for some js functionality
[15:48:48] Scient: keeps it cleaner than stuffing one js file full of inline callbacks and stuff :D
[15:48:51] losvedir: maybe we just need to improve our jquery practices
[15:49:06] mehwork: i think if you use rails, then ember makes a lot of sense a lot of hte time but i could be wrong since i haven't used them together yet
[15:49:09] losvedir: just kinda seeing if there's a "category" of framework between jqueyr and angular
[15:49:21] Scient: https://gist.github.com/tanelsuurhans/5a8e4f90e0b2d6251105
[15:49:23] losvedir: knockout looks like it would fit in there for sure. i like that suggestion
[15:49:26] Scient: its stuff like this basically
[15:49:40] tubbo: mehwork: sorta. ember makes a lot of sense if you want the kind of AWESOME tooling you get with Rails, but you want to run your app on S3/a CDN :)
[15:50:03] losvedir: what about the venerable old backbone? does anyone use that anymore?
[15:50:26] losvedir: scient: that gist is slick
[15:50:43] mehwork: backbone is good for SPA's afaik
[15:51:36] mehwork: isn't backbone just a framework for using jquery and underscore in a more mvc/spa way?
[15:51:41] tubbo: i don't like using ember with a rails app, unless they're two separate apps or something. rails provides a really awesome view layer with built-in caching and other nice things. it's much more fun to write views with just action_view/jquery-ujs/turbolinks than it is to use any JS framework with Rails, IMHO.
[15:52:12] [Butch]: has joined #RubyOnRails
[15:52:27] tubbo: mehwork: it's just a few objects that let you build your own MVC framework, but doesn't make any judgment calls on what tech you need to use
[15:52:42] losvedir: yeah, ember is cool; i've used it with a go json api, but not sure how it fits in with rails. they seem like they'd step on each other's toes a bit
[15:52:45] tubbo: i think it might require underscore (or lodash) but not jquery
[15:53:03] tubbo: if you're making an ember app inside your rails app, you just don't use app/views ever.
[15:53:12] tubbo: and let ember do all the view template compilation
[15:53:28] mehwork: don't forget that it depends on how you use those frameworks. I wouldn't blame jquery, backbone, etc for not doing everything i wanted by default. ANymore than i'd blame vim for not doing it all by default. You often need plugins and such
[15:53:38] losvedir: yeah, it seems like it would take over like that. definitely not a drop in tool to add some dynamic interactions to a rails rendered view
[15:54:32] avenger: has joined #RubyOnRails
[15:54:37] smathy: Pfft, stupid software, they should all come with esp:app_in_my_brain generators.
[15:55:16] mehwork: ironically, most software is born of an idea in one person's head to do the most barebones basic concept, and then it expands from there slowly if ever
[15:55:43] mehwork: "complete solutions" is a marketting term for enterprise software
[15:56:10] jokke|: has joined #RubyOnRails
[15:57:04] smathy: rails generate step_2
[15:57:26] smathy: http://i1.kym-cdn.com/entries/icons/original/000/000/248/underpants.jpg
[15:57:43] mehwork: currently programming is more about selling bridges than making highly engineered ones. At least in startups
[15:58:15] Peg-leg: has joined #RubyOnRails
[15:58:31] jokke-: has joined #RubyOnRails
[15:58:31] dionysus69: this is the stock create method:https://gist.github.com/webzorg/1f20a5e589f68758dad3 how do i modify it so if the param attribute sku exists in any other existing product, it should update existing product instead of creating new one ?
[15:58:58] tubbo: dionysus69: by "stock" you must mean "scaffold"...
[15:58:59] joshkovach: has joined #RubyOnRails
[15:59:01] smathy: Not in the startups I've worked in.
[15:59:16] dionysus69: tubbo: yes :D
[15:59:53] tubbo: mehwork: you want to work on highly engineering things? work for NASA.
[15:59:58] tubbo: or make satellites
[16:00:01] tubbo: now that's engineering ;)
[16:00:13] treehug88: has joined #RubyOnRails
[16:00:30] smathy: dionysus69, well, you should modify your *controller* by changing the first line of that method to: @admin_product = Admin::Product.create_or_update_existing admin_product_params
[16:00:34] mehwork: and yet still blows up a lot
[16:00:44] smathy: dionysus69, then you should write that method in your Admin::Product model.
[16:00:45] mehwork: but it's better than taking no risks
[16:00:46] tubbo: "a lot" == "like 3 times"
[16:00:59] mehwork: i watch a lot of movies, it's a lot more than 3
[16:01:04] smathy: dionysus69, I would also use a different controller action.
[16:01:12] mehwork: nasa is a fictional entity in my detached mind
[16:01:27] tubbo: mehwork: ah i see, you have a learning disability
[16:01:29] tubbo: sorry about that
[16:01:36] mehwork: i have a reality disability
[16:01:38] tubbo: you don't know what's real and what's not
[16:01:42] smathy: Ah I see, you have insanity.
[16:01:54] dionysus69: smathy: let me wrap my head around on what you said just now :D
[16:02:10] mehwork: i prefer to call it being a daydreamer, it sounds more romantic than nut
[16:03:26] smathy: mehwork, I think nut sounds better :)
[16:03:28] tubbo: mehwork: tell yoko ono i said hi
[16:03:44] mehwork: i'm starting to think i do have a learning disability. I get so caught up in every detail that i move forward very slowly
[16:04:04] aquiles: has joined #RubyOnRails
[16:04:05] nKulo: has joined #RubyOnRails
[16:04:18] avenger: has joined #RubyOnRails
[16:04:26] smathy: mehwork, moving forward very slowly is the very definition of learning disability.
[16:04:34] smathy: mehwork, you probably "have" ADD too!
[16:04:53] mehwork: but i feel that people who move too quickly skip so much details that they create junk. However they actually create things where as i don't
[16:05:04] dopie: has joined #RubyOnRails
[16:05:04] mehwork: maybe i do
[16:05:11] bobbobbins: has joined #RubyOnRails
[16:05:17] treehug88: fast, good, on time. Pick two.
[16:05:21] bricker: has joined #RubyOnRails
[16:05:27] mehwork: i've been too afraid to get diagnosed because i believe that people will live out their labelled fates
[16:05:58] mehwork: i can shift perspectives if i realize it's more important
[16:06:04] mehwork: ie if i'm put on a deadline
[16:06:43] mehwork: but by default i go back to slowness. Anyone who cares, back to being in denial
[16:07:15] dionysus69: smathy: nah didnt get it :\ok so this is my full controller and this is my product model, instead of modifying create I care more for modifying import which in fact calls create but dunno which one to modify yet. so I have over 500 products to import and I dont want duplicates how would you do this? https://gist.github.com/webzorg/1caec9694cc6905b2aa8
[16:08:11] mehwork: i think i got it from martial arts. THey have you practice the basic stuff every day for years, rarely doing anything cool. THen MMA came out and people jump straight to cool stuff but are sloppy yet more effective. So there must be some wisdom in sloppiness
[16:08:35] mehwork: see, now that's the perspective shift i needed. I will try to operate from there now
[16:09:02] lessless: has joined #RubyOnRails
[16:09:03] mehwork: mindsets are just editable config files
[16:09:06] tubbo: mehwork: the wisdom there is to fail early, and fail often
[16:09:28] tubbo: that's what it means...instead of sitting around dreaming about what you want to make, or could be making, fucking make it!
[16:09:44] tubbo: so what if it's not perfect? fix it and deploy it again
[16:09:45] mehwork: and then tell the haters who diss your imperfections to suck it
[16:09:55] mehwork: i think i'm a perfectionist by default
[16:09:58] tubbo: i'm a musician. when i release a track, i can't edit it and release v0.1.5.pre.beta3.rc4
[16:09:59] atomical_: has joined #RubyOnRails
[16:10:04] tubbo: so if i fuck up, the track just sucks
[16:10:07] mehwork: which is ironic because i never do anything perfectly
[16:10:08] tubbo: i have to make a whole new one
[16:10:49] tubbo: but with software i can iteratively change things and improve small bits of the product over time
[16:10:51] mehwork: believe it or not i'm not being sarcastic right now. I'm actually having an ephipany.
[16:10:51] tubbo: that's really cool
[16:11:08] tubbo: if i thought you were being sarcastic i would have just tuned out and gone to eat my lunch
[16:11:11] mehwork: hopefully i can lock in this inspiration and not just feel pumped for a day
[16:11:38] mehwork: how do you keep it going though? i'm worried i'll forget and go back to normal
[16:11:50] tubbo: keep what going?
[16:12:32] mehwork: keep the shift in thought going. It's not the first time i've ever heard of this idea, but it's resonating a little more this time
[16:12:37] smathy: dionysus69, I have no idea how to interpret the code in `import`
[16:12:43] squiercaster: has joined #RubyOnRails
[16:12:59] tubbo: mehwork: i dunno, i'm not you :P
[16:13:02] joshkovach: has joined #RubyOnRails
[16:13:05] smathy: dionysus69, ...or did the original code start at line 67?
[16:13:09] mehwork: i guess i could write a postit note on my desk that summarizes it
[16:13:22] tubbo: i'm the kind of person who can't think about something for too long before actually doing it or i get bored
[16:13:32] tubbo: definitely an experimentalist
[16:13:45] atomical: has joined #RubyOnRails
[16:13:53] mehwork: right, it might be a trait that only some people truly have and maybe i'm just someone who can recognize it in others
[16:13:59] dionysus69: no smathy I added import action as a collection {post: import} to the product resource, so its totally custom, is thats what you are asking?
[16:14:39] idd2d: has joined #RubyOnRails
[16:15:27] herbst: has joined #RubyOnRails
[16:15:28] smathy: dionysus69, nope, just that the first line of your import method is @admin_product = Admin::Product.create_or_update_existing(admin_product_params) - but then your next line is Admin::Product.import(params[:file]) - that second line has nothing to do with the @admin_product assigned in the first line. It's very odd. But then I thought maybe you only just added that first line and haven't made any other changes to the method yet. Is that the
[16:15:35] smathy: (I'm trying to make sense of your code)
[16:15:41] mehwork: i'll try it the rest of the day anyway. Maybe instead of combing through this entire tutorial, i'll just skim through it and get to the end quickly and try to let go of not fully understanding every step
[16:15:50] towski_: has joined #RubyOnRails
[16:15:52] krisquigley: has joined #RubyOnRails
[16:16:22] dionysus69: smathy: oh yes it starts from line 67 I got it now, sorry I pasted your line and forgot to remove it later before I gisted it :D
[16:17:25] xcv_: has joined #RubyOnRails
[16:17:42] inanepenguin: has joined #RubyOnRails
[16:18:25] DmitryBochkarev: has joined #RubyOnRails
[16:19:38] smathy: dionysus69, np, ok so I'd remove that line, and just adjust your self.import method to do the right thing.
[16:19:55] smathy: dionysus69, you might want to change the name to `import_or_update` or something, so it's more in line with what's happening.
[16:20:00] smathy: dionysus69, make sense?
[16:20:15] xcv: has joined #RubyOnRails
[16:20:29] dionysus69: ok i ll tinker around, thanks allot :)
[16:21:54] Pupeno: has joined #RubyOnRails
[16:21:54] Pupeno: has joined #RubyOnRails
[16:22:40] smathy: dionysus69, np.
[16:23:28] Scriptonaut: has joined #RubyOnRails
[16:25:11] jokke|: has joined #RubyOnRails
[16:25:14] joshkovach: has joined #RubyOnRails
[16:26:10] safety_cut: has joined #RubyOnRails
[16:26:15] Pupeno_: has joined #RubyOnRails
[16:26:28] mary5030: has joined #RubyOnRails
[16:27:18] Pupeno_: has joined #RubyOnRails
[16:28:52] mary5030: has joined #RubyOnRails
[16:29:24] artto: has joined #RubyOnRails
[16:30:12] Pupeno: has joined #RubyOnRails
[16:31:13] rromanch_: has joined #RubyOnRails
[16:33:50] baweaver: has joined #RubyOnRails
[16:34:02] simplyianm: has joined #RubyOnRails
[16:34:03] riotjones: has joined #RubyOnRails
[16:34:11] cnk: has joined #RubyOnRails
[16:35:39] idd2d: has joined #RubyOnRails
[16:36:21] queequeg1: has joined #RubyOnRails
[16:38:38] Shoutsid: has joined #RubyOnRails
[16:38:54] idd2d: has joined #RubyOnRails
[16:43:19] jvanbaarsen: has joined #RubyOnRails
[16:45:35] aquiles: has joined #RubyOnRails
[16:46:04] blackmesa: has joined #RubyOnRails
[16:47:38] jtb__: has joined #RubyOnRails
[16:49:30] mloy: has joined #RubyOnRails
[16:51:07] ericjphillips: has joined #RubyOnRails
[16:51:29] joshkovach: has joined #RubyOnRails
[16:55:23] jenrzzz: has joined #RubyOnRails
[16:56:43] joshkovach: has joined #RubyOnRails
[16:58:17] _djbkd: has joined #RubyOnRails
[16:59:01] dionysus69: you know when paperclip resizes images and I have thumb and large pic for example, how do I create them without paperclip inside public/thumb and public/large folders? I have lots of them
[17:00:49] rakm: has joined #RubyOnRails
[17:00:51] Lytol: has joined #RubyOnRails
[17:01:20] Lytol: has joined #RubyOnRails
[17:02:27] smathy: dionysus69, why without paperclip?
[17:02:28] jokke-: has joined #RubyOnRails
[17:02:33] petricore: has joined #RubyOnRails
[17:02:55] dionysus69: smathy: I will need to upload 500 of them or more, doesnt paperclip upload one by one?
[17:03:34] smathy: dionysus69, well, it processes one by one, as will anything you use.
[17:04:12] dionysus69: hmm is there a way to force it process multiple automatically?
[17:06:25] smathy: dionysus69, I wouldn't upload them, I'd put them all in some directory, and just use a rake task that points your model at each file (or rather at a File.open(each_file)) and then saves it, Paperclip will take care of the rest.
[17:07:19] smathy: dionysus69, if you want it to do multiple at the same time (and you have multiple CPU cores) then use something like sidekiq or sucker_punch to handle the concurrency.
[17:07:38] EminenceHC: has joined #RubyOnRails
[17:08:02] dionysus69: no need to do them multiple at the same time really haha I meant to batch do them :) I am not familiar with what rake task is but I guess I will look into it :)
[17:08:43] chipotle: has joined #RubyOnRails
[17:10:13] Trynemjoel: has joined #RubyOnRails
[17:10:39] zpe: has joined #RubyOnRails
[17:12:11] inanepenguin: has joined #RubyOnRails
[17:12:51] _djbkd: has joined #RubyOnRails
[17:12:59] n008f4g_: has joined #RubyOnRails
[17:13:04] mrbubbles: has joined #RubyOnRails
[17:13:16] bondibox: has joined #RubyOnRails
[17:15:42] lalalaaa: has joined #RubyOnRails
[17:15:59] arup_r: Link has many shares. I did it, but can I create in one line instead of multiple lines ? https://gist.github.com/aruprakshit/4776bbcdb7c5f01a6c63#file-method-rb-L7-L11
[17:16:21] Guest53: has joined #RubyOnRails
[17:16:39] losvedir: has joined #RubyOnRails
[17:17:33] das3in: has joined #RubyOnRails
[17:19:14] manfrin_: has joined #RubyOnRails
[17:19:42] joshkovach: has joined #RubyOnRails
[17:19:45] lacuna: has joined #RubyOnRails
[17:19:55] sha1sum: has joined #RubyOnRails
[17:20:49] slash_nick: arup_r: you can collect the parameters into an array, looking like this: [{asset_id: 1},{asset_id: 2},...]... then @share.links.create(<that array>)
[17:20:58] SteenJobs: has joined #RubyOnRails
[17:21:10] inanepenguin: has joined #RubyOnRails
[17:21:14] arup_r: Yes, that will work. I see now in doc. Let me try
[17:21:36] slash_nick: arup_r: i was about to link to docs :)
[17:21:47] arup_r: slash_nick: do you find the connection of the 2 questions ? One in #ruby and #rails haha
[17:21:58] arup_r: I was reading here http://apidock.com/rails/ActiveRecord/Associations/ClassMethods/has_many
[17:22:12] slash_nick: also here: http://api.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-create
[17:22:15] arup_r: .build doc is giving the hints, I can do it
[17:22:16] Pharaoh2: has joined #RubyOnRails
[17:22:25] arup_r: but not .create
[17:22:43] arup_r: let me try
[17:22:54] bondibox: I have reached an impasse trying to tackle jquery javascripts and ajax on a RoR app. I followed the PragProg depot book and got hung up at this point. Tried a few other tutorials and they don't work either. So I'm looking for the most bare bones requirements for jquery ajax in a rails app. I've put some javascript in the html and it works, so there's that. Now I know the controller needs a format.js declaration inside th
[17:22:54] bondibox: e method definition, and the view needs a js.erb file of the same name as the method. I've added jquery as an asset, and the libraries are being loaded, javascript_include_tag 'jquery' but nothing. Not even an error. It's tough because I can't trace the stack of an event which did not happen.
[17:23:21] das3in: hey all, can someone help me with passing variables through the checkbox helper? I've read the docs but my code didn't work. checkboxes are passing a "0" value instead of the parameter I'm trying to assign. Code+error is in the _form.html.erb file of the gist https://gist.github.com/das3in/bd2b855d7eeae4235080
[17:25:12] bondibox: I've tried the same app on a new Ubuntu server and it's the same, so rule out my dev env
[17:25:32] slash_nick: bondibox: could you put together a gist including the relevant files?
[17:25:39] arup_r: das3in: c.radio_button :possible_answer_id, possible_answer.id, multiple: true
[17:25:55] das3in: arup_r it's radio_button right now, I want it to be check_box
[17:25:56] zerocool: has joined #RubyOnRails
[17:25:56] s2013: has joined #RubyOnRails
[17:26:12] eikood: has joined #RubyOnRails
[17:26:19] greengriminal: has joined #RubyOnRails
[17:26:19] towski_: has joined #RubyOnRails
[17:26:21] das3in: arup_r it's in the comment section of the form
[17:26:22] s2013: https://gist.github.com/ss2k/fdaa586c8d6775bf6082 isnt this just beautiful?
[17:26:34] s2013: so great to work with
[17:26:40] arup_r: sorry das3in
[17:26:42] arup_r: http://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html#method-i-collection_check_boxes
[17:27:12] roshanavand: has joined #RubyOnRails
[17:27:32] Lightsword: has joined #RubyOnRails
[17:28:31] slash_nick: s2013: your designer must love it
[17:28:55] s2013: yeah this was the html produced by the designer and i have to work with it. yay fun times
[17:29:11] hooper: has joined #RubyOnRails
[17:29:20] sha1sum: I particularly love the inline css
[17:29:29] s2013: and dont forget about the spacer.gif
[17:29:41] linus4: has joined #RubyOnRails
[17:29:45] hooper: has joined #RubyOnRails
[17:29:49] workmad3: s2013: my eyes just exploded into flame at the 'beauty' of it!
[17:29:49] slash_nick: s2013: ... entry level designer?
[17:30:08] hooper: has joined #RubyOnRails
[17:30:11] s2013: workmad3 yeah its too great for you
[17:30:15] isjaylee: has joined #RubyOnRails
[17:30:39] s2013: slash_nick he designs email templates mostly.. hence this work of art
[17:30:42] sha1sum: and the <br> tags at the end of every cell
[17:30:47] workmad3: s2013: did you say something? The beauty of that code is now permanently burnt onto my retinas as the last thing I'll ever see
[17:30:57] slash_nick: ah, s2013, that actually explains everything
[17:31:12] slash_nick: fresh-from-print, new-to-web?
[17:31:17] sha1sum: well why put classes on anything then? lol
[17:31:34] s2013: workmad3 yeah just admiring this beauty as well
[17:31:38] EminenceHC: has joined #RubyOnRails
[17:31:42] smathy: dionysus69, ok, so just a rake task to do them as a btch.
[17:31:45] eikood: has joined #RubyOnRails
[17:31:53] s2013: im mostly just ranting but this s just a small piece of what i have to deal with on a daily basis
[17:32:05] s2013: things like this is all over our app
[17:32:33] sha1sum: the empty alt attributes on the images are at least accessible
[17:33:05] slash_nick: s2013: is it like this: http://www.animateit.net/data/media/9/wave.gif ?
[17:33:29] s2013: pretty much
[17:34:14] Axy: has joined #RubyOnRails
[17:34:31] slash_nick: s2013: at least you can email your whole app to someone and view it in a mail client :)
[17:34:43] riotjones: has joined #RubyOnRails
[17:36:10] isjaylee: has left #RubyOnRails: ()
[17:36:14] s2013: yeah haha
[17:36:37] manfrin`_: has joined #RubyOnRails
[17:38:06] sha1sum: even Outlook Express!
[17:38:15] Trynemjoel: has joined #RubyOnRails
[17:40:27] blackmesa: has joined #RubyOnRails
[17:40:30] bondibox: http://pastie.org/private/d4q6ycehoqlsyleainzdg thanks for looking
[17:40:48] tsujp: has joined #RubyOnRails
[17:40:51] slash_nick: s2013: but just current outlook -2 versions
[17:41:09] slash_nick: we don't want to support all versions of outlook, ever, correct?
[17:41:10] joshkovach: has joined #RubyOnRails
[17:41:18] s2013: true that
[17:42:08] s2013: let me paste some more awesome things.. like the form thats mocked up and im supposed to integrate
[17:42:11] chrislotix: s2013: did he completly neglect the option of doing it in a external css file?
[17:43:14] s2013: https://gist.github.com/ss2k/fdaa586c8d6775bf6082 yay
[17:43:29] slash_nick: chrislotix: looks like he or she also completely neglected the possibility of a grid system, rather uses tables
[17:43:49] s2013: chrislotix thats the least of the problems with this
[17:43:52] slash_nick: s2013: i'm just guessing...dreamweaver?
[17:43:55] Sirecote: has joined #RubyOnRails
[17:43:57] s2013: most likely
[17:44:03] slash_nick: person has to be using a wysiwig
[17:44:05] chrislotix: slash_nick, s2013: tell me more about it :)
[17:44:06] jvanbaarsen: has joined #RubyOnRails
[17:44:47] s2013: im not even going to try using rails form helper, just going to hardcode the field names and all that
[17:45:05] slash_nick: chrislotix: this is particularly comical: `<br />&nbsp;<br />`
[17:45:14] dopamean_: has joined #RubyOnRails
[17:45:41] s2013: i told them id rather just rewrite atlteast this page.. but they didnt want to do that
[17:45:41] blackmesa: has joined #RubyOnRails
[17:46:07] havenwood: has joined #RubyOnRails
[17:46:25] joshkovach: has joined #RubyOnRails
[17:46:32] slash_nick: chrislotix: you see, sometimes you need whitespace inside your whitespace... `<br />&nbsp;<br />` really gets the job done
[17:46:34] Shoutsid: has joined #RubyOnRails
[17:46:51] chrislotix: oh man thats... deep
[17:48:41] slash_nick: s2013: it's miserable for you... but wysiwig explains the shiteness
[17:48:42] s2013: arent we all just looking for our inner whitespace?
[17:49:09] sha1sum: I'm actually searching for something to fill that void
[17:49:17] arup_r: What is the issue BTW ?
[17:49:19] sha1sum: something like "<br />&amp;<br />"
[17:49:26] Slogger: has joined #RubyOnRails
[17:49:33] slash_nick: sha1sum: no!
[17:49:43] bruno-: has joined #RubyOnRails
[17:49:51] istrasci: has joined #RubyOnRails
[17:50:06] slash_nick: sha1sum: we've already got void-filling elements we can reuse <img src="spacer.gif" width="15" height="15" alt="" style="display:block;" />
[17:50:20] mwlang: Talk about timing of whitespace mentions???saw this in some old code yesterday: <% 50.times do %><br/><% end %>
[17:50:43] chills42: has joined #RubyOnRails
[17:50:50] sha1sum: <br />&nbsp;<img src="spacer.gif" width="15 height="15" alt="" style="display:block;" />&nbsp;<br />
[17:51:29] sha1sum: and don't forget to put all that in a <p> tag
[17:51:47] slash_nick: s2013: convert the app to use haml... "whatcha gonna do now designer? dreamweaver-haml?"
[17:52:07] mwlang: the question I always have: why is there a dash and no dash in this CSS: ???white-space: nowrap??? ? I always forget where the dash is, so have to try it three ways to get it right (that or google it every time I need it)
[17:52:26] sankaber: has joined #RubyOnRails
[17:52:27] sha1sum: and it must be <p style="margin:20px">
[17:53:09] s2013: yeah atleast the form is working so whatever
[17:53:21] manfrin_: has joined #RubyOnRails
[17:53:53] Pupeno_: has joined #RubyOnRails
[17:54:22] based_pdev_: has joined #RubyOnRails
[17:54:35] istrasci: How can I tell programmatically in a mailer if ActionMailer has been set up with a default 'to' address?
[17:54:53] shmoon_: has joined #RubyOnRails
[17:55:07] gaussblurinc1: has joined #RubyOnRails
[17:55:18] smathy: mwlang, yeah and like "whitespace" is WAY more a single word than "nowrap" - should be whitespace: no-wrap
[17:55:33] Lincee: has joined #RubyOnRails
[17:55:55] sha1sum: "w h i t e s p a c e : n o - w r a p"
[17:56:01] rushed: has joined #RubyOnRails
[17:56:17] gerep: has joined #RubyOnRails
[17:56:35] arup_r: Isthar: check like default[:to].present?
[17:56:50] Mia: has joined #RubyOnRails
[17:56:57] dideler: has joined #RubyOnRails
[17:57:00] gerep: Can someone please help me create a SQL script for this? https://gist.github.com/gerep/757e2635534d980feef7
[17:57:05] siddart: has joined #RubyOnRails
[17:57:27] gerep: I need a SQL script because it will update millions of records and using ActiveRecord in that case is really slow
[17:57:30] gerep: On Heroky
[17:57:53] krisquigley: has joined #RubyOnRails
[17:58:07] istrasci: arup_r: There is no "default" property for ActionMailer; only a "default" method to set the default_params.
[17:58:17] joshkovach: has joined #RubyOnRails
[17:58:23] MartinEl_: has joined #RubyOnRails
[17:58:28] arup_r: did you try ?
[17:58:53] arup_r: What you got?
[17:59:45] smathy: istrasci, YourMailer.default_params[:to]
[17:59:59] RegulationD: has joined #RubyOnRails
[18:00:07] arup_r: see, `default` returns a Hash, and you can really check there
[18:00:26] baweaver: has joined #RubyOnRails
[18:00:35] EdwardIII: so i'm working on the most basic thing ever. i can post new things, i can list 'em, all good
[18:01:11] arup_r: Isthar: inside the method, self.class.default[:to].present?
[18:01:22] EdwardIII: what approach should i do if one of my fields is just kinda meant to hold unstructured json stuff? i've seen i can just say "serialize :contents, JSON" on the model which is great buut how do i actually get that in there?
[18:01:28] EdwardIII: when i'm doing a POST?
[18:01:29] jvanbaarsen: has joined #RubyOnRails
[18:01:50] sha1sum: gerep: this should work for postgres: https://gist.github.com/sha1sum/a22f3d21011b5d6f9478
[18:02:04] sha1sum: gerep: I would try it first on a replica because I obviously don't have your schema
[18:02:10] smathy: istrasci, arup_r's right, .default returns the same hash.
[18:02:17] gerep: sha1sum: Thank you so much, I'll try it locally first! :D
[18:02:47] EdwardIII: like a logging endpoint where you wanted to just dump a bunch of context in there (that's already json, e.g. { "entry": "contents": {"just some": "info about this log entry"}}
[18:03:11] EminenceHC: has joined #RubyOnRails
[18:03:32] istrasci: smathy, arup_r: default is a class method, that's why self.default wasn't working. Thanks
[18:03:41] istrasci: ActionMailer::Base.default
[18:03:46] AzaToth: has joined #RubyOnRails
[18:03:59] arup_r: Isthar: use self.class
[18:04:07] arup_r: Isthar: use self.class.default
[18:04:25] smathy: arup_r, you're tab-completing the wrong nick again.
[18:04:57] arup_r: istrasci: see what I wrote
[18:05:18] renegadeandy: Hey guys. Can somebody please help me understand how I can create a json object without having lots of &quot for spaces : https://gist.github.com/renegadeandy/777e10db4f46f51d2263
[18:05:25] smathy: EdwardIII, generally you'd have form fields for the user, maybe a fields_for, and you'd write some setter method in your model to parse those into the structure you want and the getter for that attribute will produce a nested hash/array which the serializer can .to_json
[18:05:28] arup_r: Your mailer is a subclass of the base mailer.. so self.class.default will run like a monkey
[18:05:58] smathy: renegadeandy, .html_safe
[18:06:01] slash_nick: lol, i've never heard that expression arup_r... great imagery
[18:06:06] EdwardIII: smathy: this for a rest endpoint though so i guess i wouldn't have form_fields?
[18:06:06] istrasci: arup_r: Sorry, I missed the "class" in your example.
[18:06:32] renegadeandy: smathy: on which side?
[18:06:34] arup_r: slash_nick: Haha.. Yes, one day a monkey did with me :(
[18:07:01] renegadeandy: aha the html side, ty
[18:07:07] smathy: EdwardIII, oh, correct, and you probably won't need the parser then, just the built-in setter/getter from Rails will work.
[18:07:10] arup_r: he was about to slap me, I saved myself.. anyway
[18:07:40] EdwardIII: smathy: but i'm just not sure how to get it in there. if i throw a request at it like the example above then entry.contents just gets saved to the db as null
[18:07:43] smathy: renegadeandy, can be either.
[18:08:06] atmosx: has joined #RubyOnRails
[18:08:26] smathy: EdwardIII, !gist your actual code please, because, eg. { "entry": "contents": {"just some": "info about this log entry"}} is not valid JSON.
[18:08:26] helpa: EdwardIII: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:08:35] EdwardIII: smathy: https://gist.github.com/EdwardIII/aa59dbae18add3bb31a3
[18:09:00] cryptojuice: has joined #RubyOnRails
[18:09:11] Sheperson: has joined #RubyOnRails
[18:09:13] EdwardIII: smathy: the thing doesn't fail validation, and contents goes into sqlite as null
[18:09:31] lalalaaa: is that james edward gray iii?
[18:09:39] smathy: EdwardIII, .permit(:title, :contents) is not enough for the nested data, look at the docs: http://devdocs.io/rails/actioncontroller/parameters#method-i-permit
[18:10:03] lalalaaa: the legendary programmer?
[18:10:09] lalalaaa: ah no wait that's james edward gray ii
[18:11:09] baweaver: has joined #RubyOnRails
[18:11:36] Swappticon: has joined #RubyOnRails
[18:11:47] rubyonrailed: has joined #RubyOnRails
[18:12:36] siddart: has joined #RubyOnRails
[18:12:39] EdwardIII: smathy: riiight ok i see. so the doc says "Note that if you use permit in a key that points to a hash, it won't allow all the hash. You also need to specify which attributes inside the hash should be whitelisted." - but what if i want that? i just want to say "allow a hash of anything here"
[18:12:55] yaymukund: has joined #RubyOnRails
[18:13:25] Shoutsid: has joined #RubyOnRails
[18:13:31] hephaestus_rg: has joined #RubyOnRails
[18:13:32] Lightsword: has joined #RubyOnRails
[18:13:43] cryptojuice: Hello folks, I'm setting up integration test on an iOS app against a rails server, I'm looking to prevent our rails server server from hitting external api's while running in the testing environment. I know I can use WebMock for this, but what I'm looking for is the correct place to initialize this since it is outside of the RSpec/Cucumber context. My rails experience is limited so any help is apprecia
[18:14:20] weaksauce: has joined #RubyOnRails
[18:14:25] smathy: EdwardIII, then you can't use the permit() to generate your attribute object.
[18:14:29] linus4: has joined #RubyOnRails
[18:14:47] EdwardIII: smathy: ok - i'm really new to rails, what would the procedure be here?
[18:15:36] s2013: any of you build mobile backend using rails?
[18:16:42] kallisti5: is there any way to control sass style sheet selection from rails?
[18:16:56] gerep: sha1sum: It worked 100%!! Thank you so much!
[18:17:00] Pharaoh2: has joined #RubyOnRails
[18:17:16] kallisti5: I have a few imports in application.scss. I pick and choose one to change the "theme"
[18:17:17] smathy: EdwardIII, just merge the params[:key_you_want] into the permitted params returned from your method.
[18:17:27] smathy: EdwardIII, pass the return of that into your mass assignment.
[18:17:49] kallisti5: if there was a way to pass a var. into sass from rails that would be good enoug
[18:18:14] sha1sum: gerep: cool! np
[18:18:31] sonofdirt: has joined #RubyOnRails
[18:18:53] smathy: kallisti5, I assume you mean in runtime, in which case no. The sass is already converted to CSS by the time Rails can affect it.
[18:19:25] smathy: kallisti5, just set the name of the theme CSS to include in your layout, see the docs for content_for
[18:19:33] kallisti5: smathy: hm.. I guess I'd have to... what you said :-)
[18:19:56] chrisja: has joined #RubyOnRails
[18:21:04] EminenceHC: has joined #RubyOnRails
[18:22:10] Detch: has joined #RubyOnRails
[18:24:21] kallisti5: smathy: ok.. riddle me this
[18:24:39] smathy: ACTION loves riddles
[18:24:49] kallisti5: in my application.scss, I call @import "themes/classic";
[18:24:58] sha1sum: hey that's not a riddle
[18:25:01] sha1sum: that's a statement
[18:25:07] kallisti5: I have an asset of assets/stylesheets/theme/classic.scss
[18:25:22] kallisti5: stylesheet_link_tag "#{theme}" though doesn't link to it
[18:25:32] tsujp: has joined #RubyOnRails
[18:25:40] kallisti5: same for "theme/#{theme}" (theme assigned the name)
[18:25:48] kallisti5: just links to a non-existant css
[18:26:12] DoubleMalt: has joined #RubyOnRails
[18:26:19] synfinatic_: has left #RubyOnRails: ()
[18:27:04] sininen: has joined #RubyOnRails
[18:28:53] linus4: has joined #RubyOnRails
[18:29:08] meoblast001: has joined #RubyOnRails
[18:29:48] smathy: kallisti5, not sure if that was (supposed to be) the riddle, if so then you should put your code in a gist using copy/paste because there are many errors in the above which may just be typos.
[18:30:03] kallisti5: sure. sec :-)
[18:30:42] eikood: has joined #RubyOnRails
[18:31:35] noobda: has joined #RubyOnRails
[18:32:14] kallisti5: smathy: https://gist.github.com/avongluck-r1soft/ef990508676c447d7800
[18:32:27] kara_sweets: has joined #RubyOnRails
[18:32:54] kallisti5: broke it down as much as I could leaving out the obvious stuff :_)
[18:32:54] smathy: kallisti5, ok funny, it wasn't a typo: theme != themes
[18:33:46] kallisti5: strange... doing "themes" for my scss imports and it is working :-\
[18:34:25] `based_pdev`: has joined #RubyOnRails
[18:34:27] noobda: hey guys, is it possible to access class instance variables inside an html.erb file?
[18:34:28] kallisti5: Asset filtered out and will not be served: add `Rails.application.config.assets.precompile += %w( themes/slate.css )` to `config/initializers/assets.rb` and restart your server
[18:34:29] MartinEl_: has joined #RubyOnRails
[18:34:38] kallisti5: at least it is telling me how to fix it :P
[18:34:40] smathy: kallisti5, weird that ;)
[18:34:44] queuetip: has joined #RubyOnRails
[18:35:28] sonofdirt: has joined #RubyOnRails
[18:35:30] riotjones: has joined #RubyOnRails
[18:35:40] Guest53: has joined #RubyOnRails
[18:35:57] kallisti5: ACTION kills a puma. brb
[18:36:30] kallisti5: smathy: thanks! :-D
[18:36:59] smathy: kallisti5, you're welcome.
[18:37:23] EminenceHC: has joined #RubyOnRails
[18:37:46] queuetip: hi, php programmer here, i inherited a legacy rails project that has a scripts directory with a bunch of ruby scripts in it that seem like they have potential to do what i need them to do. the first line of one of the scripts is: app = OauthApplication.create(.......stuff...) but obv. when i try to run it says uninitialized constant: OauthApplication, so I'm wondering how are these scripts supposed to be ran? i checked all the rake task
[18:38:00] smathy: noobda, yes, classes are globals (to the thread/process).
[18:38:54] srinidhi: has joined #RubyOnRails
[18:38:56] noobda: smathy: i'm unable to do this in my view file: <% if wrong==true %> Wrong answer <%end%>
[18:39:27] noobda: sorry, i meant @wrong==true
[18:39:49] sha1sum: you don't need the "==true"
[18:39:49] imp4t: has joined #RubyOnRails
[18:40:02] sha1sum: not that that would cause it to break, it's just redundant
[18:40:03] tubbo: queuetip: in older rails apps, there used to be a script/ directory where one would keep ruby scripts that depended on the application's environment being loaded. when you run those scripts with e.g. `ruby`, it might not work as expected
[18:40:17] smathy: noobda, views aren't run in a class context so @wrong cannot possibly refer to a class instance variable.
[18:40:38] noobda: sha1sum: old habits die hard :)
[18:40:47] queuetip: tubbo: is there a way to load in the environment then?
[18:40:53] tubbo: queuetip: usually people either have scripts in Rake tasks or they run them with ./script/runner 'Some string of Ruby code'
[18:41:16] kallisti5: smathy: all that.. now I can make everyone happy with a random theme on refresh... ["united", "classic", "slate"].sample
[18:41:20] noobda: smathy: ohhkay.... well then should I write this data in the sessions[]?
[18:41:39] kallisti5: ACTION might be bitter about how many themes's he's gone through
[18:41:40] queuetip: tubbo: so can runner load in environment for me and take files as input?
[18:41:54] ericjphillips: has joined #RubyOnRails
[18:42:10] tubbo: queuetip: i *believe* if you add this to the top of the file, require File.expand_path('../../config/environment', __FILE__), it will load in your Rails application. ./script/runner is usually for evaluating Ruby code, you don't pass it a file, you'd pass it a String that looks something like "OauthApplication.create(...stuff...)"
[18:43:03] queuetip: tubbo: thanks! i had found that line for loading the env, i just throught it strange that i have this huge amount of scripts and none of them have that already, so was wondering how on earth this guy who wrote all these actually ran them all lol
[18:43:14] queuetip: tubbo: but i'll give that a shot, thanks for your help!
[18:43:34] tubbo: queuetip: who knows. if your scripts don't involve any kind of user input, it's probably better to have them as Rake tasks.
[18:43:44] naftilos76: has joined #RubyOnRails
[18:43:51] queuetip: tubbo: agreed. i'm pretty sure all these manual scripts was why he lost his job ;)
[18:43:52] smathy: kallisti5, cool, now you just need to wait until you get bitten by turbolinks ;)
[18:44:19] tubbo: queuetip: lol
[18:44:25] rushed: has joined #RubyOnRails
[18:44:36] Lightsword: has joined #RubyOnRails
[18:45:00] dionysus69: is the "action" for adding image to model this " has_attached_file :image, styles: etc etc" ?
[18:45:21] Macaveli: has joined #RubyOnRails
[18:45:37] linus4: has joined #RubyOnRails
[18:45:42] rushed: has joined #RubyOnRails
[18:45:47] User4587_: has joined #RubyOnRails
[18:45:55] paolodoors: has joined #RubyOnRails
[18:45:57] Macaveli: has joined #RubyOnRails
[18:46:24] ellisTAA: has joined #RubyOnRails
[18:47:31] michaeldeol: has joined #RubyOnRails
[18:47:59] s2013: has joined #RubyOnRails
[18:48:00] ellisTAA: when i type in my url and my site loads, i can click a button and an ajax call works, but if i click a navigation button it loads a template, and then my ajax calls grab the resource but display them in a new page???. has anyone seen this before?
[18:49:02] diegoviola: has joined #RubyOnRails
[18:49:11] atomical: has joined #RubyOnRails
[18:50:25] ellisTAA: https://gist.github.com/ellismarte/07aba6615f12443bbb62#file-pages-rb-L7-L9
[18:50:50] ellisTAA: it looks like something isn???t getting loaded
[18:51:39] inanepenguin: has joined #RubyOnRails
[18:52:36] smathy: EllisTAA, turbolinks.
[18:53:30] paulcsmith: has joined #RubyOnRails
[18:53:44] paulcsmith: has left #RubyOnRails: ()
[18:54:48] ellisTAA: smathy: any quick recommendations on how to solve it?
[18:55:08] smathy: EllisTAA, read the turbolinks readme.
[18:55:34] smathy: EllisTAA, especially the section on events, basically some JS code isn't being run on the turbolinks load.
[18:56:14] rachellc: has joined #RubyOnRails
[18:56:18] smathy: ...because it's attached to the wrong event, probably $(document).ready
[18:56:41] hueston: has joined #RubyOnRails
[18:57:28] bap1313: has joined #RubyOnRails
[18:57:41] kallisti5: smathy: i've dubbed it "operah themes"
[18:57:46] lacuna: has joined #RubyOnRails
[18:58:04] kallisti5: Oprah themes
[18:58:10] kallisti5: ACTION needs to learn to spell
[18:58:11] sypheren: has joined #RubyOnRails
[18:58:19] smathy: kallisti5, ok, because I'm Oprah?
[18:58:35] kallisti5: smathy: because, "you get a theme, you get a theme, you get a theme!"
[18:58:58] smathy: Ok, way more tenuous a link than I would ever guess.
[18:59:08] Pharaoh2: has joined #RubyOnRails
[18:59:21] sha1sum: I need a flowchart
[19:00:07] simplyianm: has joined #RubyOnRails
[19:00:35] dstarh: has joined #RubyOnRails
[19:00:36] smathy: I thought somehow they'd found out I was a black woman with a livelong weight struggle.
[19:00:52] sha1sum: that's okay at least you're super-rich
[19:01:01] tubbo: * smathy has changed his name to "mingy"
[19:01:23] tetraktys: has joined #RubyOnRails
[19:02:51] jessemcgilallen: has joined #RubyOnRails
[19:03:20] smathy: sha1sum, ah no, I'm not *the* black woman with a lifelong weight struggle
[19:04:06] Lightsword: has joined #RubyOnRails
[19:04:06] sha1sum: hence the ruby development
[19:04:22] stannard: has joined #RubyOnRails
[19:05:42] rushed: has joined #RubyOnRails
[19:08:37] BlackCoyote: has joined #RubyOnRails
[19:08:37] chandlerbing: has joined #RubyOnRails
[19:08:55] slash_nick: smathy: i knew it
[19:09:36] tetraktys: Hey guys, I'm using Codeship for CI, but now my omniauth facebook sign in feature spec fails because the session appears to be expired. On my local machine there's no problem. Spec, vcr config and top part of the stack trace are here: https://gist.github.com/joostvanrijn/c354211f889851b6b372
[19:10:10] tetraktys: I get the same error when i remove the vcr casette locally, so it seems that codeship isn't using it...
[19:10:26] jenrzzz: has joined #RubyOnRails
[19:11:01] youngbaks: has joined #RubyOnRails
[19:11:38] mikecmpbll: has joined #RubyOnRails
[19:12:08] kitsuneyo: has joined #RubyOnRails
[19:12:29] agit0: has joined #RubyOnRails
[19:14:17] dionysus69: product = Admin::Product.where(id: product_hash["id"])
[19:14:17] dionysus69: product[sku] >>>>>>>>> If admin model has sku column, will this return its value? is it right syntax?
[19:15:25] sha1sum: dionysus69: .where() calls do not return single records, you should use: Admin::Product.find(product_hash["id"])
[19:15:41] sha1sum: dionysus69: and you're going to want to use product[:sku] (missing the colon)
[19:16:25] cornerma1: has joined #RubyOnRails
[19:16:48] jokke|: has joined #RubyOnRails
[19:17:11] penguinpowernz: has joined #RubyOnRails
[19:17:18] SteenJobs: has joined #RubyOnRails
[19:17:21] Trynemjoel: has joined #RubyOnRails
[19:17:28] dionysus69: Admin::Product.where(id: product_hash["id"]) what does this do btw differently than the find alternative?
[19:18:39] xcv: has joined #RubyOnRails
[19:19:12] sha1sum: dionysus69: the class of what a where() call returns is actually ActiveRecord::Relation
[19:19:30] sha1sum: which is what allows you to either chain on other stuff (like ".order()", etc.)
[19:19:32] arup_r: dionysus69: .where gives you collection roxy
[19:19:39] arup_r: proxy object
[19:19:43] sha1sum: you could use Admin::Product.where(id: product_hash["id"]).first
[19:19:53] sha1sum: but that's kind of unnecessary with find()
[19:19:57] apneadiving: has joined #RubyOnRails
[19:20:11] arup_r: where find gives you the single id
[19:20:20] dionysus69: ugh I am lost
[19:20:32] dionysus69: ok i will put this straight one second
[19:20:33] arup_r: Use .find when you do search with id
[19:20:43] sha1sum: dionysus69: try some stuff in console
[19:21:05] arup_r: .find_by when you search with any attribute, it will give you the first match record
[19:21:11] Coldblackice_: has joined #RubyOnRails
[19:21:12] dionysus69: one second I will gist something and say what I am trying to do, let me know if its possible the way I think it is possible haha
[19:21:15] aquiles: has joined #RubyOnRails
[19:21:16] sha1sum: Admin::Product.find(product_hash["id"]) is essentially the same as Admin::Product.find_by(id: product_hash["id"])
[19:21:20] orolo: has joined #RubyOnRails
[19:21:39] arup_r: sha1sum: Well. Go ahead. :D
[19:22:43] orolo: on my dev machine, i'd like to have some css files included from another directory outside of my current project. i'm not finding the right docs to do this. any ideas?
[19:23:17] giantoctopus: has joined #RubyOnRails
[19:24:17] sha1sum: orolo: why not include them in a vendor/assets/stylesheets ?
[19:24:22] dionysus69: so, https://gist.github.com/webzorg/775dd7338e7da740f129 this model has column called SKU, I have paperclip integrated but the form submit doesn't submit the image, I want to add image called xxx to the product which contains sku=xxx, I am trying to do that in the file I gisted while at the same time adding other params from the submitted form.
[19:24:26] arup_r: That doesn't make any sense.. You have to keep then inside the app
[19:24:50] hadees: has joined #RubyOnRails
[19:25:10] arup_r: yes, vendor/ is ok
[19:25:12] hadees: Does rails have a helper that formats a string for use as html id attribute?
[19:25:12] stannard_: has joined #RubyOnRails
[19:25:17] lacuna: has joined #RubyOnRails
[19:25:17] orolo: shalsum, the apps need to be separate (one is a jekyl style guid auto-compiled from the the other porject).
[19:25:30] ascarter_: has joined #RubyOnRails
[19:25:37] arup_r: hadees: format means? example please
[19:25:52] sha1sum: orolo: you may want to start a webserver and serve them from that
[19:26:05] hadees: arup_r: I need to sanitize a string to use as an id attribute
[19:26:31] arup_r: .html_safe ?
[19:26:48] hadees: arup_r: nope, i found it, it's call sanitize_to_id
[19:26:52] arup_r: But it would be good, to see how the string looks like.
[19:27:18] sha1sum: dionysus69: the "id" column should be unique all the time, right?
[19:27:33] dionysus69: yes it is unique it is assumed
[19:27:38] arup_r: hadees: where you saw the method ?
[19:27:40] jokke-: has joined #RubyOnRails
[19:27:40] smathy: (I'm not even sure a W2 would, because I think that's a federal thing)
[19:27:43] arup_r: link please
[19:27:49] orolo: shalsum i also could extend the sprockets path. . . can that include paths outside of the rails app?
[19:28:02] dionysus69: sha1sum: that only exists for a duplicate avoidance reasons
[19:28:11] EasyCo: has joined #RubyOnRails
[19:28:17] arup_r: I am not seeing any such method in the doc ..
[19:28:24] istrasci: has left #RubyOnRails: ()
[19:28:27] hadees: arup_r: http://apidock.com/rails/ActionView/Helpers/FormTagHelper/sanitize_to_id I found it looking how label_tag generates it's code
[19:28:27] sha1sum: dionysus69: your database should handle avoiding duplicate primary keys
[19:28:41] dionysus69: sha1sum: sku is also unique in fact I could have used that as identiied
[19:28:46] hadees: arup_r: basically it was chaning the for attribute for my label and I couldn't find out why
[19:29:28] dionysus69: sha1sum: yes I could make sku as a primary key but I dont know how to make it that way too
[19:29:31] baweaver: has joined #RubyOnRails
[19:29:32] arup_r: that is a private method. You can't use them without a dance!
[19:29:35] hadees: *couldn't figure out why
[19:30:12] dionysus69: but that is for optimization which is not deadly right now, I will take care of it perhaps after I get main functionality working
[19:30:48] sha1sum: dionysus69: this would be a simplified version of what you're looking for I think: https://gist.github.com/sha1sum/6893eb178addd4a4d93c
[19:30:55] hadees: arup_r: https://github.com/rails/rails/blob/dd7af2c413a06ea44e50abf0df205314ba1bfc98/actionview/lib/action_view/helpers/form_tag_helper.rb#L871
[19:31:11] hadees: arup_r: it's not private, its just not documented
[19:31:33] arup_r: The API doc is saying it is private
[19:31:35] yfeldblum: has joined #RubyOnRails
[19:31:57] arup_r: and if you search http://api.rubyonrails.org/ .. That method doesn't bubble up
[19:31:58] hadees: arup_r: it doesn't say that in the code
[19:32:08] hadees: arup_r: yeah because there aren't any rdoc comments
[19:32:17] arup_r: So, don't use it. It is not still ready to be a public API
[19:32:20] sha1sum: orolo: not quite sure about the sprockets thing
[19:32:41] paolodoors: has joined #RubyOnRails
[19:32:51] orolo: shalsum, i'm trying to do something like : config.assets.prefix = "#{File.expand_path('..', Dir.pwd)}/sibling_app/app/assets/stylesheets"
[19:33:31] arup_r: hadees: any way show us your code.. and what is not working and what you want.
[19:33:44] dionysus69: let me try that :)
[19:33:48] sha1sum: I've never done anything to even remotely alter sprockets stuff
[19:33:48] arup_r: Use undocumented API at your own risk :D
[19:34:53] s2013: has joined #RubyOnRails
[19:35:19] Cervajz_: has joined #RubyOnRails
[19:35:25] NodeNagant: has joined #RubyOnRails
[19:35:29] dionysus69: sha1sum: in the else statement, where product gets created with product_hash, it doesnt contain image, so how can I create product with product_hash + paperclip image ?
[19:35:48] n008f4g_: has joined #RubyOnRails
[19:37:12] orolo: maybe i can put a symlink in my vendors directory.
[19:37:48] Jasaka: has joined #RubyOnRails
[19:37:50] lwu: has joined #RubyOnRails
[19:38:52] s2013: anyone here uses activeadmin? for a csv export is there anyway to add on a field in addition to the default ones? only way i see to do it is that i have to manually add every field back
[19:39:09] baweaver: has joined #RubyOnRails
[19:40:40] smathy: orolo, see Rails.application.config.assets.paths in config/initializers/assets.rb
[19:40:47] s2013: there is default_main_content but thats for the show action
[19:41:13] orolo: thanks smathy
[19:41:26] smathy: s2013, #activeadmin may be a better place.
[19:41:35] s2013: didnt even know ther ewas such a channel
[19:41:51] smathy: s2013, you're welcome (everyone ;)
[19:42:12] smathy: s2013, btw: https://github.com/activeadmin/activeadmin#need-help
[19:42:12] s2013: oh looks like its a dead channel.
[19:42:21] ericjphillips: has joined #RubyOnRails
[19:42:25] smathy: s2013, keep poking.
[19:44:49] Guest53: has joined #RubyOnRails
[19:46:41] sha1sum: dionysus69: that's a little more complicated. I'm not sure to be honest.
[19:46:53] peteyg_: has joined #RubyOnRails
[19:47:02] timnovins: has joined #RubyOnRails
[19:47:03] dionysus69: sha1sum: :) no problem thanks anyways :P
[19:47:10] umgrosscol: has joined #RubyOnRails
[19:47:20] sha1sum: nice little split
[19:47:28] KorriX: has joined #RubyOnRails
[19:48:01] linus1: has joined #RubyOnRails
[19:48:02] GragHarker: has joined #RubyOnRails
[19:48:03] defswork: has joined #RubyOnRails
[19:48:06] euphoriaa: has joined #RubyOnRails
[19:48:06] euphoriaa: has joined #RubyOnRails
[19:48:07] LiquidInsect: has joined #RubyOnRails
[19:48:11] csmb: has joined #RubyOnRails
[19:48:16] rushed: has joined #RubyOnRails
[19:48:22] djinni`: has joined #RubyOnRails
[19:49:04] bodie_: has joined #RubyOnRails
[19:49:29] dionysus69: what split :D?
[19:49:44] sha1sum: tiny netsplit
[19:50:11] dionysus69: dunno, if its addressed to me I didnt get it ))
[19:50:28] sha1sum: not addressed to you
[19:51:14] baweaver: has joined #RubyOnRails
[19:51:21] beauby: has joined #RubyOnRails
[19:54:17] jtb__: has joined #RubyOnRails
[19:56:45] BlackCoyote: has joined #RubyOnRails
[19:58:43] Pumukel: has joined #RubyOnRails
[19:58:47] krisquigley: has joined #RubyOnRails
[20:00:40] EminenceHC: has joined #RubyOnRails
[20:01:14] baweaver: has joined #RubyOnRails
[20:01:16] paolodoors: has joined #RubyOnRails
[20:03:03] chills42: has joined #RubyOnRails
[20:04:42] northfurr: has joined #RubyOnRails
[20:05:33] dionysus69: https://gist.github.com/webzorg/60cb5c1d088f0b4706e2 getting error "uninitialized constant Admin::Product::RAILS_ROOT" what do i need to make rails "see" root?
[20:05:45] northfurr: when generating a model, is it possible to set a field as an array of strings?
[20:05:52] ericjphillips: has joined #RubyOnRails
[20:06:52] sha1sum: dionysus69: Rails.root
[20:07:17] dmz: has joined #RubyOnRails
[20:07:45] riotjones: has joined #RubyOnRails
[20:08:15] eikood: has joined #RubyOnRails
[20:08:24] lacuna_: has joined #RubyOnRails
[20:08:31] sypheren: has joined #RubyOnRails
[20:08:43] riotjones: has joined #RubyOnRails
[20:10:34] dionysus69: sha1sum: now I get No handler found for "/home/zoro/www/smugglers/public/tobeuploadedimages/10001.jpg", at least good to know the url for the image gets generated correctly but I dont get what the error says any ideas? :D sorry to bother really but I need to get this done :)
[20:10:52] jenrzzz: has joined #RubyOnRails
[20:12:24] moeabdol: has joined #RubyOnRails
[20:12:28] lacuna: has joined #RubyOnRails
[20:13:24] arup_r: northfurr: Yes, but it depends. What is the RDBMS you are using ?
[20:13:25] _djbkd: has joined #RubyOnRails
[20:16:09] dionysus69: I think i figured it out, that url is a string, paperclip is expecting a file
[20:16:36] michaeldeol: has joined #RubyOnRails
[20:19:44] ellisTAA: if a user fails to create a resource successfully is it best to use flash to alert them of their erros? or is flash outdated?
[20:20:19] arthurix: has joined #RubyOnRails
[20:22:20] dionysus69: might be ugly, who cares! it works! https://gist.github.com/webzorg/4e8d6901046f35d8355b special thanks sha1sum
[20:22:52] cac: has joined #RubyOnRails
[20:22:58] sypheren: has joined #RubyOnRails
[20:23:34] sypheren: Freaking java
[20:23:35] [Butch]: has joined #RubyOnRails
[20:23:49] capin: hehe, indeed
[20:23:51] mordocai: has joined #RubyOnRails
[20:23:55] sypheren: Do colleges ever offer courses in Ruby?
[20:23:58] sypheren: Is this a thing?
[20:24:21] dionysus69: no, they forced me java and later they changed that course to python
[20:24:45] sypheren: I'm in the java part
[20:25:03] sypheren: At least I'm learning to write code, I mean, its a step up from "doesn't know how to code"
[20:25:03] dionysus69: I never did any python but who needs to when there is ruby
[20:25:27] nettoweb: has joined #RubyOnRails
[20:26:42] qejk: has joined #RubyOnRails
[20:26:43] arup_r: Doesn't redirect_to request.referer, params: params and redirect_to :back is same ?
[20:28:16] tubbo: Sypheren: you should probably learn java before ruby
[20:28:22] tubbo: if you don't know how to code at all
[20:28:31] tubbo: it's an easier language to learn OOP in
[20:28:32] inanepenguin: has joined #RubyOnRails
[20:29:20] arup_r: tubbo: What I said is correct ? :)
[20:29:41] sypheren: tubbo, That's what I'm doing! :)
[20:29:58] moeabdol: has joined #RubyOnRails
[20:30:15] jvanbaarsen: has joined #RubyOnRails
[20:30:15] sypheren: Ruby/Rail's community is actually what attracted me to it
[20:30:16] tubbo: arup_r: i didn't even know request.referer was a real method
[20:30:42] Contigi777: has joined #RubyOnRails
[20:31:03] EminenceHC: has joined #RubyOnRails
[20:31:10] arup_r: ACTION is grokking Rails API.
[20:32:41] bendangelo: has joined #RubyOnRails
[20:35:10] tenderlove: has joined #RubyOnRails
[20:35:42] cac: has joined #RubyOnRails
[20:36:13] Oog: has joined #RubyOnRails
[20:36:23] Oog: probably a weird question but is it possible to tell in the code when it is doing the db:seed task? i need to disable a valiadation when seeding
[20:36:59] arup_r: Oog: Yes, possible.
[20:37:16] arup_r: Use .save(validate: false)
[20:37:23] lwu: has joined #RubyOnRails
[20:37:27] arup_r: it will by pass validation
[20:37:42] inanepenguin: has joined #RubyOnRails
[20:37:45] rickmasta: has joined #RubyOnRails
[20:37:47] Oog: its not that simple
[20:37:54] dionysus69: is find_by_sku(product_hash["sku"]) same as find_by(sku: product_hash["sku"]) ?
[20:38:07] Oog: the seed code doesnt call save directly - its down a few levels that needs to detect it is in seed more
[20:38:08] fryguy: dionysus69: it is, but don't use the first one
[20:38:18] arup_r: Ok. Then it depends how you are creating record.
[20:38:34] dionysus69: fryguy: thanks will consider for the future ^.^
[20:38:37] Oog: i need to be able to something like if seeding
[20:38:58] lwu: has joined #RubyOnRails
[20:39:58] arup_r: fryguy: Why not the first one ?
[20:40:05] arup_r: asking for self knowledge
[20:41:29] tubbo: Oog: why do you need to know this?
[20:41:37] tubbo: Oog: like why does your object need to know whether its seeding?
[20:41:41] fryguy: arup_r: it's deprecated and going to be removed from rails soon
[20:42:04] tubbo: fryguy: you know, they've been saying that shit since rails 3.0...
[20:42:13] tubbo: i have a funny feeling they can't at this point
[20:42:20] xcv: has joined #RubyOnRails
[20:42:24] tubbo: it still sucks, find_by_magic_methods are worse than find_by()
[20:43:01] fryguy: tubbo: are they even in rails 4?
[20:43:03] Oog: tubbo because in seeding im not creating the seed data that would let the test data pass
[20:43:04] cac: has joined #RubyOnRails
[20:43:08] tubbo: fryguy: i thought so
[20:43:09] tetraktys: has joined #RubyOnRails
[20:43:09] fryguy: https://github.com/rails/activerecord-deprecated_finders
[20:43:14] RockLee: has joined #RubyOnRails
[20:43:21] tubbo: maybe not :D
[20:43:29] lxsameer: has joined #RubyOnRails
[20:43:29] lxsameer: has joined #RubyOnRails
[20:43:31] tubbo: i dunno i just got so used to find_by()
[20:43:41] yaymukund: has joined #RubyOnRails
[20:44:53] havenn: has joined #RubyOnRails
[20:45:25] EminenceHC: has joined #RubyOnRails
[20:45:43] tetraktys: has joined #RubyOnRails
[20:46:45] Nuck: has joined #RubyOnRails
[20:46:46] manfrin_: has joined #RubyOnRails
[20:47:01] User458764: has joined #RubyOnRails
[20:47:54] nettoweb: has joined #RubyOnRails
[20:47:55] krisquigley: has joined #RubyOnRails
[20:49:49] hobodave: has joined #RubyOnRails
[20:49:57] MartinElvar: has joined #RubyOnRails
[20:51:50] Radar: GOOD MORNING
[20:52:46] helpa: Help us Radar! You are our only hope.
[20:53:02] slash_nick: no not that one
[20:53:03] helpa: good morning IRCers, I hope that this day finds you hale and hearty
[20:53:13] dionysus69: wtf I wanted to delete files from git "add" and it deleted them really from system...
[20:53:21] craysiii: has joined #RubyOnRails
[20:53:24] Radar: dionysus69: what command did you use
[20:53:36] dionysus69: git rm -rf /public
[20:53:50] Radar: yeah, that's what that command does.
[20:54:06] dionysus69: well whats the point of git then
[20:54:07] slash_nick: ... /public?
[20:54:08] tubbo: dionysus69: if you didn't use -rf, it would've warned you :P
[20:54:22] dionysus69: it warned me and then I used f haha
[20:54:27] slash_nick: `rm` is a core util, not a git command... well it is... but that's git-rm
[20:54:31] tubbo: dionysus69: welp
[20:54:34] rushed: dionysus69: sounds about right~
[20:54:38] dionysus69: but if I wanted to delete dir from system I wouldnt have used git in front
[20:54:54] bap1313: has joined #RubyOnRails
[20:55:04] tubbo: dionysus69: then you should have heeded the warning saying THIS IS GOING TO DELETE A FILE
[20:55:04] dionysus69: anyways its weird, I wanted to add public to gitignore but I already added everything to commit
[20:55:05] slash_nick: dionysus69: `git rm` does delete from your filesystem... but it'll fail if you tell it to delete a file that's not tracked
[20:55:34] slash_nick: dionysus69: may be reversible.. i'm a little confused as to what you did... can you paste your shell history into a gist?
[20:55:47] smathy: dionysus69, git reset HEAD^ && git checkout public
[20:55:49] dionysus69: not a big deal just annoyed by git
[20:55:49] tubbo: dionysus69: fwiw...this is a good way to learn this lesson...`rm -rf` is dangerous, because it mutates information without letting you know until the end or something bad happened
[20:55:57] dionysus69: i can copy things back
[20:55:57] tubbo: dionysus69: so if you use rm -rf all the time, stop. now.
[20:56:02] naftilos76: has joined #RubyOnRails
[20:56:21] rushed: dionysus69: also, the internet is constantly trying to get you to -rf things that will not improve your day so~
[20:56:40] tubbo: a lot of devs get into that bad habit of using rm with '-rf' and using sudo to execute any command 'just in case i need permissions'
[20:56:42] smathy: dionysus69, yes you can get them back, I just explained how to do that.
[20:56:48] tubbo: those devs are shitty people
[20:56:52] smathy: [14:55:45] smathy: dionysus69, git reset HEAD^ && git checkout public
[20:56:59] dionysus69: haha sudo rm -rf / and north korean missile launches
[20:57:04] slash_nick: tubbo: the wurst
[20:57:06] smathy: Next time, don't hate on git, hate on your decision not to: git help rm
[20:57:24] tubbo: dionysus69: http://steamed.kotaku.com/valve-looking-into-steam-linux-bug-that-deletes-hard-dr-1680789141
[20:57:37] slash_nick: dionysus69: for the record... "deleting files from `git add`" is done with "git reset", not "git rm"
[20:57:42] tubbo: dionysus69: the bug was caused by rm -rf $STEAM_HOME, when $STEAM_HOME='*' :P
[20:57:42] dionysus69: haha thanks I will reset Head perhaps why not ^.^
[20:58:02] tubbo: git rules because it doesn't delete anything ever
[20:58:15] smathy: No, not to HEAD, that won't do anything, to HEAD^
[20:58:27] tubbo: also the reason why you can't just commit secrets to your repo...good chance someone will find it
[20:59:21] wethu: has joined #RubyOnRails
[21:00:19] dionysus69: i respect git allot it made today possible its just it is unintuitive for beginners
[21:00:46] tubbo: can't argue with that one
[21:00:50] slash_nick: dionysus69: it'll get better... just be glad you're not forced to use some of the other tools
[21:01:20] tubbo: i refused to commit code at my last job until we moved the broadcast app to git
[21:01:34] dionysus69: ye i have dealt with svn and once I deleted senior seminar project by rewriting only my part to master branch or whatever they call it there hahaha
[21:02:05] FailBit: git masterrace
[21:03:30] noodles``: has joined #RubyOnRails
[21:04:38] noodles``: has left #RubyOnRails: ()
[21:06:40] lacuna: has joined #RubyOnRails
[21:06:49] ellisTAA: for some reason i???m not rendering the template when i hit this. is that because i have a rescue statement in there? https://gist.github.com/ellismarte/2316961b3f9094e5b6e1#file-create-rb-L9-L10
[21:07:45] BlackCoyote: has joined #RubyOnRails
[21:08:22] mehwork: why doesn't 'rake routes' show the full path like localhost:3000/rails/info/routes does? For example, rake routes shows a prefix called 'new_article' but the web page version says what it's really called: 'new_article_path'
[21:08:34] sankaber: has joined #RubyOnRails
[21:09:00] craysiii: mehwork _path is appended to the route when you're trying to use it in your app
[21:09:17] smathy: mehwork, because the helpers can use either the _path or _url suffix, so it just shows the base.
[21:09:36] craysiii: didn't know there was a _url
[21:09:40] ritic: has joined #RubyOnRails
[21:10:00] smathy: Yep, good for things like email templates.
[21:12:39] mehwork: TIL rake routes is all about that base
[21:13:53] mehwork: there i go getting lost in details again. So far i've been spending the last few hours sailing further than i normally would have though, but old habits die hard
[21:14:18] dikaio: has joined #RubyOnRails
[21:14:32] smathy: mehwork, in your defense, it's not (well?) documented .
[21:15:05] mehwork: magic rarely is
[21:15:16] craysiii: mehwork a couple of weeks ago i spent hours debugging a non-rendering partial onto to realize i forgot a =
[21:15:29] Radar: which isn't well documented?
[21:15:35] mehwork: Rails should go on Penn & Teller's: Fool Us show
[21:15:38] craysiii: http://www.reactiongifs.com/r/mgc.gif
[21:16:03] Guest53: has joined #RubyOnRails
[21:16:04] smathy: Radar, that the path helper names in the `rake routes` output need a _path or _url suffix
[21:16:08] KensoDev: has joined #RubyOnRails
[21:16:09] Radar: smathy: !routing
[21:16:09] helpa: smathy: http://guides.rubyonrails.org/routing.html - Rails Routing From the Outside In - Rails Guide - by Mike Gunderloy
[21:16:51] mehwork: section 2.6 of that link seems to
[21:17:12] dionysus69: no one answer in networking channel.... dns records, I have A record and domain.com points to some ip, and that works, I also have CNAME record with www pointing to domain.com which doesnt work. so to make it clear domain.com works but www.domain.com is this configuration correct and something else might be broken?
[21:17:15] Radar: But you're saying in the rake routes output it doesn't show you?
[21:17:17] smathy: Radar, you mean here: http://guides.rubyonrails.org/routing.html#listing-existing-routes
[21:17:20] mehwork: Radar: yeah
[21:17:37] smathy: Radar, it seems to say only: "The route name (if any)"
[21:17:49] smathy: Radar, which is not correct, and still sans any information about what to suffix it with.
[21:18:21] Radar: patches welcome :trollface:
[21:18:32] Radar: (I agree with you)
[21:18:40] mehwork: at least in rake, version 10.4.2
[21:18:44] smathy: Radar, I haven't had success with patches to guides.
[21:18:49] Radar: mehwork: Rake has nothing to do with it.
[21:19:01] Radar: well, nothing to do with the _output_
[21:19:14] smathy: I IRC instead.
[21:20:49] xcesariox: has joined #RubyOnRails
[21:20:55] Radar: I can't find where the routes task is even defined
[21:21:03] arup_r: smathy: You have not had success means they reject always your patches ?
[21:21:45] smathy: dionysus69, should work fine, what's the domain?
[21:22:25] smathy: arup_r, two, first one was ages ago, second was recent and the response I got was disheartening.
[21:22:31] Radar: Found it: https://github.com/rails/rails/blob/master/railties/lib/rails/tasks/routes.rake
[21:22:45] Radar: smathy: well if you weren't so _wrong_ all the time :P
[21:23:03] smathy: arup_r, I was adding something back which was, based on the commit/PR comments, was removed because of a misunderstanding and the response was basically "People don't need to know this."
[21:23:10] arup_r: smathy: is very confident Rails dev.
[21:23:13] smathy: Radar, I know, I know, I'm working on it.
[21:23:28] FailBit: $app/rails/info/routes just 404s for me
[21:23:31] FailBit: how do you get that page
[21:23:45] mehwork: development ?
[21:24:02] netzfisch: has joined #RubyOnRails
[21:24:18] mehwork: dunnu, just works for me. Maybe you have something that blocks it
[21:24:25] SteenJobs: has joined #RubyOnRails
[21:24:35] FailBit: probably a constraint, now that you mention it
[21:24:46] craysiii: "A??long-standing bug??prevents??form_for??from working automatically with singular resources."
[21:24:51] FailBit: although I would hope that rails provided routes are inserted before user routes
[21:24:57] craysiii: why don't the promote this to a feature ? :P
[21:25:25] FailBit: also 404s on my other app
[21:25:27] FailBit: how do you get that
[21:25:40] smathy: FailBit, what are you actually entering into your browser? You're including the $app ?
[21:25:41] mehwork: long-standing bugs are automatically promoted to features
[21:25:50] FailBit: no, ofc not
[21:25:56] FailBit: localhost:8080/rails/info/routes
[21:26:09] craysiii: 8080, haven't seen that one in a while
[21:26:16] smathy: FailBit, don't "of course not" me young man! This is IRC, people are insane here.
[21:26:36] craysiii: im not insane, im craysiii :(
[21:26:59] smathy: FailBit, what about /rails/info/properties ?
[21:27:29] mehwork: http://myapp.dev/rails/info/properties works for me too (i'm using Pow tw)
[21:27:56] maxx88: has left #RubyOnRails: ()
[21:28:27] existensil: has joined #RubyOnRails
[21:28:46] maxx88: has joined #RubyOnRails
[21:28:46] FailBit: "trigger warning"
[21:29:02] EminenceHC: has joined #RubyOnRails
[21:29:30] FailBit: unicorn says 200, but browser says 404
[21:29:46] sonofdirt: has joined #RubyOnRails
[21:29:56] mehwork: maybe some extenstion, try another browser?
[21:30:17] FailBit: - - [07/Oct/2015:21:29:34 +0000] "GET /rails/info/routes HTTP/1.1" 200 - 0.0586
[21:31:06] mary5030: has joined #RubyOnRails
[21:31:18] [Butch]: has joined #RubyOnRails
[21:31:44] mary5030: has joined #RubyOnRails
[21:32:37] mehwork: also, it's ironic that you have unicorn telling you whether or not something exists
[21:33:26] sypheren: has joined #RubyOnRails
[21:37:50] dionysus69: smathy: smugglers.ge it doesnt work though with www, do I need to setup something on nginx for www to work too?
[21:37:56] Shoutsid: has joined #RubyOnRails
[21:38:06] Radar: dionysus69: You need to setup a www subdomain
[21:38:27] dionysus69: hmm one second ugh let me get the config file
[21:38:29] craysiii: ideally you would set your A record to the www subdomain and redirect the domain to the www.
[21:39:16] Radar: dionysus69: http://take.ms/A7b1c this is how I've set it up for ryanbigg on digitalocean
[21:39:32] smathy: dionysus69, www isn't a CNAME, it's an A
[21:40:00] craysiii: radar who do you use as your registrar?
[21:40:08] Radar: craysiii: pairnic
[21:40:08] craysiii: all through DO?
[21:40:14] dionysus69: ye I changed cname to A record but there might be additional problem
[21:40:20] dionysus69: I dont have nginx setup for www
[21:40:23] FailBit: ACTION where are the aaaa records
[21:40:58] smathy: dionysus69, right, as others have said, you need to include all hostnames in the server_name setting in nginx.
[21:41:38] stamina: has joined #RubyOnRails
[21:42:08] craysiii: namecheap switched to a new UI and it's slow AF. really annoying
[21:42:26] kara_sweets: has joined #RubyOnRails
[21:42:35] Radar: craysiii: pingdom did that a while back. Heavy JS driven. Pain to use in AU.
[21:42:42] Radar: Alright to use in North America :)
[21:42:56] mary5030: has joined #RubyOnRails
[21:42:58] ericjphillips: has joined #RubyOnRails
[21:43:52] tubbo: that single-AZ life
[21:44:04] tubbo: us-east-1b til i die
[21:44:08] Radar: "Works in my AZ!"
[21:44:28] craysiii: what is this AZ
[21:44:35] chrislotix: Beginner question: Why do you have to use form_for instead of "hardcoding" form fields?
[21:44:36] Radar: craysiii: It's homework :)
[21:44:47] smathy: chrislotix, you don't.
[21:44:54] FailBit: chrislotix, you are very much ablt to use form_tag
[21:44:55] craysiii: i was guessing aws zone or something
[21:45:03] dionysus69: ok so what does this lack ? https://gist.github.com/webzorg/1814495759a6321a122f
[21:45:13] Radar: craysiii: because <label for='user_name'>Name</label><input type='text' name='user[name]' id='user_name' value='<%= user.name %>' /> is a bit longer than it's ERB equivalent.
[21:45:14] FailBit: form_for just makes it easier to create a "use-for-everything" form by checking the model persistence
[21:45:18] Radar: Oops, chrislotix ^
[21:45:28] smathy: dionysus69, server_name smugglers.ge www.smugglers.ge;
[21:45:49] chrislotix: Oh i see, so it's just matter of using more compact code? There are now downsides of using one over another besides that?
[21:45:52] smathy: Radar, *form_for equivalent
[21:45:53] dionysus69: smathy: thanks will do! ah, details lol
[21:46:00] Radar: its* as well, smathy.
[21:46:02] xcv: has joined #RubyOnRails
[21:46:03] manfrin_: has joined #RubyOnRails
[21:46:07] rhizome: chrislotix: a lot less typing
[21:46:16] smathy: dionysus69, also, http://nginx.org/en/docs/
[21:46:16] FailBit: chrislotix: if you don't have an update method in your controller, you could get away with form_tag
[21:46:21] Radar: chrislotix: yeah, it's just more compact and it will automatically fill in fields on the edit page if you pass it a persisted object.
[21:46:23] hephaestus_rg: has joined #RubyOnRails
[21:46:29] smathy: Radar, something I never correct :)
[21:46:44] Radar: smathy: Afraid of being wrong, again? :P
[21:46:59] yfeldblum: has joined #RubyOnRails
[21:47:17] smathy: Radar, it's a guiding force in my life.
[21:47:30] FailBit: I'm never afraid to be wrong
[21:47:34] FailBit: therefore I am almost always wrong
[21:47:36] chrislotix: Makes a lot of sense, thank y'all
[21:47:49] smathy: ...it's why I'm so quiet here, and never take a stab at something unless I'm certain ;)
[21:47:56] Radar: smathy: What if I told you being wrong was the best way forward for learning?
[21:48:04] smathy: Radar, sounds wrong to me.
[21:48:09] Shoutsid: has joined #RubyOnRails
[21:48:16] FailBit: you should write a test for that smathy
[21:48:17] Radar: smathy: There you go again being wrong. And you're learning at the same time!
[21:48:30] smathy: Damnit, I knew I shouldn't have spoken.
[21:49:23] craysiii: smathy if you're tired of starting over, stop giving up.
[21:49:28] dionysus69: yay it works, thanks again everyone!
[21:49:29] mehwork: what's worse i guess: being wrong or being quiet. In debugging you have to force yourself to be wrongly loud until you're right
[21:50:14] bricker: but giving someone incorrect advice is different than debugging your own code
[21:50:14] rhizome: i like to try to make the code loud when it's wrong
[21:50:17] skullcrasher: has joined #RubyOnRails
[21:50:35] smathy: craysiii, with such a clear (and public) fear of being wrong, I rarely need to start over.
[21:50:45] smathy: dionysus69, you're welcome.
[21:50:58] craysiii: don't let your dreams be dreams.
[21:51:16] rhizome: make them livejournal posts
[21:51:21] mehwork: being wrong confidently is worse than being wrong and being quiet, i guess
[21:51:29] smathy: I just don't even bother about the "when it's wrong" consideration in my code, because, y'know, it never is ;)
[21:51:32] mehwork: ACTION added the 'i guess' on for effect
[21:51:38] Radar: mehwork: "better to keep your mouth shut and let people think you're an idiot, than to open it and remove all doubt" - ancient saying
[21:51:47] rhizome: logger.warn "HA HA ASSHOLE\n"*80
[21:52:43] mehwork: i'm newer than that saying, which to me means i'm better
[21:52:55] FailBit: I should make some ruby code that spouts coherent profanity and just call that in error states
[21:52:59] tubbo: rhizome: nice
[21:53:28] rhizome: it gets me through the day
[21:53:32] mehwork: but i'm one that thinks that ancient wisdom is often just riddled with myths and mistranslations :p
[21:53:37] tubbo: mehwork: if you're asking whether you should log it? the answer is yes.
[21:55:19] smathy: tubbo, just likes saying "log"
[21:55:36] tubbo: https://www.youtube.com/watch?v=RTrAVpK9blw
[21:55:58] arBmind: has joined #RubyOnRails
[21:56:03] FailBit: just made all my tests past
[21:56:13] mehwork: did you rm them?
[21:56:15] rhizome: green is nice
[21:56:15] craysiii: with rspec? ;)
[21:56:16] Radar: FailBit: There's still a bug in your app.
[21:56:39] mehwork: what's the bug doing in my app? The backstroke.
[21:57:08] yfeldblum: has joined #RubyOnRails
[21:57:08] smathy: Heh, rule 34 tubbo
[21:57:20] Pupeno: has joined #RubyOnRails
[21:58:20] mehwork: i actually do play with logs, but I like camping
[22:00:09] mehwork: FailBit: used https://github.com/auchenberg/volkswagen
[22:00:26] mehwork: the joke is new and already old
[22:01:50] baweaver: has joined #RubyOnRails
[22:02:46] doodlehaus: has joined #RubyOnRails
[22:03:19] jenrzzz_: has joined #RubyOnRails
[22:04:36] Shoutsid: has joined #RubyOnRails
[22:04:52] FailBit: craysiii: yes with rspec
[22:04:56] FailBit: it was a pain in the ass
[22:05:08] craysiii: im sure it was worth it in the end though :)
[22:05:21] mehwork: in the end? was that a pun
[22:05:28] paolodoors: has joined #RubyOnRails
[22:05:55] craysiii: a bit a stretch dont you think? ;)
[22:07:10] mehwork: i was told to look for humor in all things, and this is what happens
[22:09:35] riotjones: has joined #RubyOnRails
[22:09:39] rhizome: shit happens
[22:10:40] Seich: has joined #RubyOnRails
[22:11:00] smathy: This joke smells.
[22:12:22] sypheren: has joined #RubyOnRails
[22:12:45] Pumukel: has joined #RubyOnRails
[22:14:28] yaymukund: has joined #RubyOnRails
[22:14:32] mehwork: this whole hash table is out of order
[22:14:42] mehwork: just the way it should be
[22:14:51] iliketurtles: has joined #RubyOnRails
[22:15:37] nya: has joined #RubyOnRails
[22:16:15] Shoutsid: has joined #RubyOnRails
[22:16:28] baweaver: has joined #RubyOnRails
[22:16:46] htmldrum: has joined #RubyOnRails
[22:17:56] rickmasta: has joined #RubyOnRails
[22:20:01] xcv: has joined #RubyOnRails
[22:20:03] mrchris: has joined #RubyOnRails
[22:21:24] neanderslob: has joined #RubyOnRails
[22:22:28] Llamachka: has joined #RubyOnRails
[22:22:55] shinobi_: has joined #RubyOnRails
[22:25:16] shinobi_: has joined #RubyOnRails
[22:28:20] benlieb: has joined #RubyOnRails
[22:29:59] istrasci: has joined #RubyOnRails
[22:30:39] havenwood: has joined #RubyOnRails
[22:30:47] michaeldeol: has joined #RubyOnRails
[22:30:47] axl_: has joined #RubyOnRails
[22:30:58] Or1on: has joined #RubyOnRails
[22:31:50] Shoutsid: has joined #RubyOnRails
[22:32:23] shinobi_: has joined #RubyOnRails
[22:34:17] yfeldblum: has joined #RubyOnRails
[22:35:06] jenrzzz: has joined #RubyOnRails
[22:36:02] jcm: has joined #RubyOnRails
[22:36:07] SteenJobs: has joined #RubyOnRails
[22:36:39] based_pdev_: has joined #RubyOnRails
[22:37:04] EminenceHC: has joined #RubyOnRails
[22:37:42] mosez: has joined #RubyOnRails
[22:38:47] highcup: has joined #RubyOnRails
[22:39:30] highcup: has joined #RubyOnRails
[22:41:57] sarink: has joined #RubyOnRails
[22:44:17] Lytol: has joined #RubyOnRails
[22:47:52] User458764: has joined #RubyOnRails
[22:49:09] pydave6367: has joined #RubyOnRails
[22:49:15] northfurr: has joined #RubyOnRails
[22:52:29] hephaestus_rg: has joined #RubyOnRails
[22:52:52] Pharaoh2: has joined #RubyOnRails
[22:53:32] mary5030: has joined #RubyOnRails
[22:54:11] blackmesa: has joined #RubyOnRails
[22:58:02] s2013: has joined #RubyOnRails
[22:59:30] idd2d: has joined #RubyOnRails
[23:00:09] inoter: has joined #RubyOnRails
[23:00:44] nya: has joined #RubyOnRails
[23:00:55] jtb__: has joined #RubyOnRails
[23:01:37] fmcgeough: has joined #RubyOnRails
[23:02:11] sanjayu: has joined #RubyOnRails
[23:03:55] jgt: has joined #RubyOnRails
[23:04:14] chipotle: has joined #RubyOnRails
[23:04:57] crdpink: has joined #RubyOnRails
[23:05:17] yfeldblum: has joined #RubyOnRails
[23:05:30] jocuman: has joined #RubyOnRails
[23:06:06] SteenJobs: has joined #RubyOnRails
[23:06:39] quazimodo: has joined #RubyOnRails
[23:06:39] quazimod1: has joined #RubyOnRails
[23:07:36] AndChat|748001: has joined #RubyOnRails
[23:10:36] sypheren: has joined #RubyOnRails
[23:10:51] yfeldblum: has joined #RubyOnRails
[23:11:09] safety_cut: has joined #RubyOnRails
[23:11:23] istrasci: has left #RubyOnRails: ()
[23:15:24] annlewis: has joined #RubyOnRails
[23:16:10] bkulbida: has joined #RubyOnRails
[23:16:15] stannard: has joined #RubyOnRails
[23:17:04] Ropeney: has joined #RubyOnRails
[23:24:49] rushed: has joined #RubyOnRails
[23:25:59] febuiles: has joined #RubyOnRails
[23:27:13] diegoviola: has joined #RubyOnRails
[23:30:06] yaymukund: has joined #RubyOnRails
[23:32:07] Pharaoh2: has joined #RubyOnRails
[23:32:36] riotjones: has joined #RubyOnRails
[23:33:45] lessless: has joined #RubyOnRails
[23:34:00] atomical: has joined #RubyOnRails
[23:38:54] shinnya: has joined #RubyOnRails
[23:42:40] LambdaSource: has joined #RubyOnRails
[23:42:50] Palsson: has joined #RubyOnRails
[23:42:50] stannard: has joined #RubyOnRails
[23:48:42] Pharaoh2: has joined #RubyOnRails
[23:50:01] rushed: has joined #RubyOnRails
[23:50:17] Shoutsid: has joined #RubyOnRails
[23:50:39] one_zero: has joined #RubyOnRails
[23:51:40] chouhoulis: has joined #RubyOnRails
[23:52:11] workmad3: has joined #RubyOnRails
[23:54:31] paolodoors: has joined #RubyOnRails
[23:57:24] RegulationD: has joined #RubyOnRails
[23:58:23] Moji_: has joined #RubyOnRails