« Back to channel list

#RubyOnRails - 13 July 2015

« Back 1 day Forward 1 day »
[00:02:36] shyshy: has joined #RubyOnRails
[00:02:39] sevenseacat: has joined #RubyOnRails
[00:03:02] Scripore: has joined #RubyOnRails
[00:05:35] earthquake: has joined #RubyOnRails
[00:06:25] blackmes1: has joined #RubyOnRails
[00:10:06] josh2: has joined #RubyOnRails
[00:10:13] kies^: has joined #RubyOnRails
[00:11:23] rubyonrails816: has joined #RubyOnRails
[00:14:51] ProLoser: has joined #RubyOnRails
[00:15:20] jesterfraud: Radar: one thing - I don't want to autoload that Middleware any more, it's essentially finished. Would moving it to lib/ be a hacky but doable way to bypass the issue?
[00:15:41] jesterfraud: * auto reload
[00:15:52] Radar: jesterfraud: it might fix it. I am not sure.
[00:16:24] ndrei: has joined #RubyOnRails
[00:17:14] shock_one: has joined #RubyOnRails
[00:18:00] robbyoconnor: has joined #RubyOnRails
[00:19:16] yashinbasement: has joined #RubyOnRails
[00:19:52] jesterfraud: Radar: did not fix it.
[00:19:58] Radar: jesterfraud: :(
[00:20:08] jesterfraud: Will revisit with a simplest scenario when possible
[00:20:40] Radar: roger that
[00:20:53] wwalker: How can I use options_from_collection_for_select() and have an entry so that nothing is selected by default ?
[00:22:30] wwalker: I could put a db row of [nil, ""] in the table, but that seems icky
[00:24:06] surrealanalysis: has joined #RubyOnRails
[00:25:45] yashinbasement: can't you just do selected = nil
[00:26:22] sevenseacat: use include_blank: true on the select box
[00:27:36] wwalker: yashinbasement: nope. I expected that to work.
[00:27:41] surrealanalysis: has joined #RubyOnRails
[00:27:53] jmimi: has joined #RubyOnRails
[00:27:54] josh2: has joined #RubyOnRails
[00:28:04] wwalker: sevenseacat: Thanks!!
[00:31:05] Lytol: has joined #RubyOnRails
[00:37:35] bruno-: has joined #RubyOnRails
[00:39:21] eminencehc_: has joined #RubyOnRails
[00:45:44] ProLoser_: has joined #RubyOnRails
[00:46:03] artto: has joined #RubyOnRails
[00:46:37] noodman: has joined #RubyOnRails
[00:54:46] ellisTAA: has joined #RubyOnRails
[00:55:19] Radar: good morning sevenseacat and pontiki :)
[00:55:38] sevenseacat: well, its a morning, I'm glad yours is good :thumbsup:
[00:56:33] Radar: Working from home wearing my trackies and uggs. Adelaide would be proud.
[00:57:41] Radar: Although they are MATCHING ugg boots sooo maybe not as proud as they could be
[00:57:52] chipotle: has joined #RubyOnRails
[00:58:18] Radar: THIS JUST IN: breaking a problem down into tiny pieces and then attacking those tiny pieces makes the problem seem less bad.
[00:58:19] baweaver: has joined #RubyOnRails
[00:58:46] sevenseacat: ACTION wonders how to break manning into little pieces
[00:59:10] jesterfraud: sevenseacat, try a bigger hammer
[00:59:12] baweaver_: has joined #RubyOnRails
[00:59:18] jesterfraud: Radar - can't replicate the issue in a basic app
[00:59:27] jesterfraud: have to take a machete to our config jungle
[01:00:25] Radar: any changes to Rails's default autoloading configuration?
[01:00:28] Radar: That's where I would look first.
[01:00:33] Radar: sevenseacat: Atomic weaponry, plzkthx
[01:00:52] Sylario: has joined #RubyOnRails
[01:01:07] Radar: Things that are painful, a small list: 1) working with Manning 2) the time that I broke my arm
[01:01:32] Radar: Can't take any medication for dealing with Manning... so my commiserations will have to do, sevenseacat.
[01:01:34] jesterfraud: Radar: yes, a few
[01:01:47] Radar: jesterfraud: That's what I want to be blaming right now :)
[01:01:51] nfk: has joined #RubyOnRails
[01:01:52] jesterfraud: what is this mythical Manning?
[01:02:00] Radar: jesterfraud: A terrible, terrible publishing company.
[01:02:04] jesterfraud: Radar, what changes in particular should I be looking for?
[01:02:07] Radar: (in my experience)
[01:02:12] Radar: jesterfraud: config.autoload_paths and that sort of thing
[01:02:30] sevenseacat: manning publications, publishers of many books including supposedly Rails 4 in Action
[01:02:52] jesterfraud: got that, I've added a few eagerloading paths due to needing to access classes dynamically that may not have otherwise been used yet
[01:02:55] Radar: and config.eager_* settings
[01:03:28] jesterfraud: I was having issues when trying to access classes via .constantize if I hadn't put them in eagerloading paths first
[01:04:35] JeramyRR: has joined #RubyOnRails
[01:04:39] Radar: Weird. Are the constants defined in files with names matching the constants? i.e. JesterFraud constant defined in lib/jester_fraud.rb/
[01:05:26] jesterfraud: it was a bit odd
[01:05:35] jesterfraud: I could try ripping those eager loads out and see if things break
[01:05:49] jesterfraud: (they weren't in 'standard' directories though)
[01:05:57] jesterfraud: (like they were in app/actions)
[01:06:21] smathy: has joined #RubyOnRails
[01:06:41] JMarCal: has joined #RubyOnRails
[01:07:35] jesterfraud: well, they were actually in subfolders of those folders
[01:08:49] dclo: has joined #RubyOnRails
[01:08:57] simplyianm: has joined #RubyOnRails
[01:09:46] jesterfraud: I think I need to review the autoload paths, I seem to have some issues
[01:09:48] Radar: Sometimes it's easier to add those paths to the load path and require them explicitly
[01:09:59] Radar: I'm trying to rely less and less on Rails's autoloading magic as it bites me every time I go near it.
[01:10:38] jesterfraud: well, I made some custom concerns
[01:10:45] jesterfraud: and importing them into classes seems to be breaking
[01:11:25] jesterfraud: (as in, concerns in directories like jobs/concerns)
[01:13:32] simplyianm: has joined #RubyOnRails
[01:14:56] eggoez: has joined #RubyOnRails
[01:15:22] jesterfraud: I dunno, I cut all of the extra eager loads, and most of the autoloads out, and it seems to be working okay, now to see if the middleware still plays up
[01:16:30] one_zero: has joined #RubyOnRails
[01:17:46] jesterfraud: @Radar removing a whole heap of load paths seems to have fixed it. For now. Who knows? Anyway, thanks
[01:18:38] bungoman: has joined #RubyOnRails
[01:21:00] unreal_: has joined #RubyOnRails
[01:21:30] smathy: has joined #RubyOnRails
[01:21:57] baweaver: has joined #RubyOnRails
[01:22:05] erich: has joined #RubyOnRails
[01:23:30] annlewis: has joined #RubyOnRails
[01:24:31] beauby: has joined #RubyOnRails
[01:24:48] cytoskeletor: has joined #RubyOnRails
[01:25:31] cytoskeletor: For some reason I can't see my data when I do heroku run rails c
[01:25:51] cytoskeletor: It says I'm in my production environment
[01:26:40] sevenseacat: do you have any data?
[01:27:14] cytoskeletor: It only displays data I loaded from seed and not what users have entered
[01:27:25] cytoskeletor: I do have data
[01:28:21] sevenseacat: did they enter the data on your site? >_>
[01:28:38] cytoskeletor: Yes, they did
[01:28:52] sevenseacat: can you see it if you actually view your site?
[01:29:09] tubbo: cytoskeletor: do you know if your site is running in production?
[01:29:11] sevenseacat: ok, are you running the heroku console for the right app?
[01:29:26] cytoskeletor: I am running from production
[01:29:28] tubbo: like is your Procfile's web job specifying -e production
[01:30:07] cytoskeletor: It is the correct app
[01:30:38] lethjakman: has joined #RubyOnRails
[01:30:41] Radar: ACTION enjoys 20 questions.
[01:30:51] Radar: cytoskeletor: Did you switch databases on Heroku?
[01:30:56] Radar: sevenseacat: they're the most funnest questions
[01:30:56] inoter: has joined #RubyOnRails
[01:31:05] Radar: (the original ones that set off the "20 questions" game)
[01:31:09] sevenseacat: we're shooting in the dark with no information
[01:31:17] Radar: cytoskeletor: i.e. did you change from using the default database to some other database?
[01:31:35] cytoskeletor: No, I've been using the same one
[01:31:46] Radar: cytoskeletor: Show us what `heroku pg:info` shows you please
[01:31:50] Radar: in a gist, of course
[01:33:26] microdex: has joined #RubyOnRails
[01:33:28] Radar: I think sevenseacat's onto something when she asks about running heroku run rails console for the right app
[01:33:42] Radar: cytoskeletor: can we see the app for ourselves?
[01:33:49] cytoskeletor: https://gist.github.com/Joshuaatt/4e17dc2f595f1d4cc910
[01:33:51] GriffinHeart: has joined #RubyOnRails
[01:34:26] Radar: Cool so there's some rows in the database. That's good.
[01:34:51] cytoskeletor: I did change some things around when I went from one environment to production and staging
[01:35:10] cytoskeletor: But it's been a long time since I did that
[01:35:38] Radar: [11:33:46] <Radar> cytoskeletor: can we see the app for ourselves?
[01:36:29] adavia: wondering why this form is not rendering with fields errors <%= bootstrap_form_for([micropost, micropost.comments.build]) do |f| %>
[01:36:47] cytoskeletor: Radar https://github.com/Joshuaatt/accessory_app_v2
[01:36:56] Radar: cytoskeletor: I meant the URL where it's hosted on Heroku.
[01:37:12] Radar: adavia: Are you sure that renders the field errors by default?
[01:38:18] bruno-: has joined #RubyOnRails
[01:38:25] cytoskeletor: Radar I'm just wondering why that would be helpful
[01:38:28] adavia: Radar: sure.. i mean if i do <%= bootstrap_form_for(@comment) do |f| %> it renders out field errors
[01:38:35] Radar: cytoskeletor: So we can see the data for ourselves.
[01:38:40] Spami: has joined #RubyOnRails
[01:38:46] Radar: cytoskeletor: Make sure that the URL for the app is the same as what's shown in `heroku info` anyway
[01:39:00] Radar: adavia: because micropost.comments.build has no errors.
[01:39:13] Radar: adavia: in the comments#new action = @comment = micropost.comments.build
[01:39:25] Radar: adavia: then make an instance variable with the same name available from the create action.
[01:39:54] JMarCal: has left #RubyOnRails: ()
[01:40:54] baweaver: has joined #RubyOnRails
[01:41:32] JMarCal: has joined #RubyOnRails
[01:42:08] cytoskeletor: Radar Are you talking about Add on: waking-daily?
[01:42:27] Radar: Web URL: https://your-app.herokuapp.com/
[01:42:37] Radar: Make sure that's the same URL that you're requesting when you go to your app.
[01:44:02] beauby: has joined #RubyOnRails
[01:46:51] artto: has joined #RubyOnRails
[01:47:09] cytoskeletor: Radar it's looking at my staging url but when I run Rails.env it says production
[01:47:29] Radar: Because you've not told it to run in the staging environment on Heroku.
[01:48:08] cytoskeletor: I want to look at my production database
[01:48:54] eklo: has left #RubyOnRails: ()
[01:50:21] siemprefresco: has joined #RubyOnRails
[01:53:01] cytoskeletor: Radar my RACK_ENV and RAILS_ENV are both set to production on my staging environment.
[01:53:22] Radar: so why are you trying to look at your PRODUCTION database from your STAGING environment?
[01:54:23] cytoskeletor: I don't want to look at my staging environment at all
[01:54:54] cytoskeletor: I'm just not sure why heroku run rails c runs in staging
[01:55:15] Radar: !debug-proxy
[01:55:15] helpa: This kind of issue is hard to debug remotely. You should hire someone who can look at your code and figure it out. We are most likely unable to help you in this situation.
[01:56:35] podman: has joined #RubyOnRails
[01:59:05] erich: has joined #RubyOnRails
[01:59:58] Sehryn: has joined #RubyOnRails
[02:00:05] beauby: has joined #RubyOnRails
[02:00:14] cytoskeletor: Thanks, I'm a little farther along at least
[02:00:30] Aeyrix: You could hire Radar if you asked with enough Satoshis.
[02:00:38] erich: has joined #RubyOnRails
[02:01:00] Aeyrix: You're expensive.
[02:01:00] Radar: Hm, price has gone up since yesterday.
[02:01:09] Radar: It was ~$200 yesterday
[02:01:13] Aeyrix: 310USD today.
[02:02:02] Radar: expensive + good @ $200/hr and it takes me 15 minutes to fix it... or cheap + crappy @ $25/hr and it takes them 10 hours to fix it. Choose wisely :)
[02:02:11] dopie: has joined #RubyOnRails
[02:02:24] Aeyrix: > implying you're good
[02:02:52] Radar: the whole 70,000 points on Stack Overflow, several production applications deployed, multiple books written (not to mention guides as well)
[02:03:06] Aeyrix: that's me roasted
[02:05:25] earthquake: has joined #RubyOnRails
[02:05:50] FCser: has joined #RubyOnRails
[02:07:03] Scripore: has joined #RubyOnRails
[02:09:20] bonhoeffer: has joined #RubyOnRails
[02:10:03] adavia: Radar: that worked but im getting this error when i add a post first argument in form cannot contain nil or be empty https://gist.github.com/adavia/33022ba8d3498537a70b
[02:10:16] Radar: @adavia: You didn't do everything I said to do.
[02:10:17] beauby: has joined #RubyOnRails
[02:10:20] zorak8: has joined #RubyOnRails
[02:10:21] Radar: adavia: You didn't do the create action.
[02:10:43] adavia: Radar: in my comment controller yes
[02:10:47] Radar: adavia: show me
[02:12:28] adavia: Radar: https://gist.github.com/adavia/33022ba8d3498537a70b
[02:12:46] Radar: Stacktrace for the error please.
[02:13:17] dopie: has joined #RubyOnRails
[02:13:20] sevenseacat: stacktrace for the stacktrace god!
[02:13:58] GriffinHeart: has joined #RubyOnRails
[02:15:00] Lightsword: has joined #RubyOnRails
[02:16:51] adavia: Radar: https://gist.github.com/adavia/33022ba8d3498537a70b
[02:17:03] Radar: That is not a stacktrace.
[02:17:09] Radar: adavia: !gist-usage
[02:17:09] helpa: adavia: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[02:17:15] Radar: Split up your gists into multiple files.
[02:17:48] microdex: has joined #RubyOnRails
[02:18:51] earthquake: has joined #RubyOnRails
[02:19:48] Oog_: has joined #RubyOnRails
[02:20:39] mary5030: has joined #RubyOnRails
[02:22:13] Radar: bbl, having some lunch
[02:22:29] sevenseacat: ACTION wonders if it's related to the "users/new" thing that I said was wrong like a week ago
[02:22:50] Oog: sevenseacat: ?
[02:23:00] Oog: i started on this last night must have been to someone else?
[02:23:02] Aeyrix: sevenseacat: how did you go from third to first person
[02:23:18] Aeyrix: in the same sentence
[02:23:21] sevenseacat: Oog: wasnt directed at you.
[02:23:41] sevenseacat: Oog: why did you just jump into a conversation and assume I was talking to you
[02:24:00] Oog: sorry i just joined the channel and posted a question then you said something
[02:24:16] sevenseacat: you havent posted anything
[02:24:41] Oog: sorry... i see my messages didnt go through i was having trouble changing my nick...
[02:24:43] Oog: let me try again
[02:24:59] Oog: https://gist.github.com/anonymous/db3326f7c298b00a464d using ActionController::Live. got everything to work in development with puma including releasing DB connections and checking them out + uncaching but... it doesnt work in AWS beanstalk :( all kinds of bad errors
[02:25:15] Oog: WARN : Attempted to rename transaction to 'Middleware/Rack/ActionDispatch::Flash/call' after transaction name was already frozen as 'Controller/dashboard/user_stream'. also PG::DuplicatePstatement: ERROR: prepared statement "a2" already exists
[02:26:16] Oog: i use limechat on osx it sort of sucks... didnt tell me my messages didnt go through here - it put warnings in the channel window that i didnt see
[02:27:58] Oog: these problems on beanstalk are so bad it gets puma into a non-working state where sudo puma stop doesnt work and i have to kill puma cluster... server just stops responding
[02:29:11] Oog: all the errors https://gist.github.com/anonymous/0e721bd7da6c7e176574
[02:29:41] erich: has joined #RubyOnRails
[02:30:11] sevenseacat: i have no idea about ActionController::Live, but what does this line do https://gist.github.com/anonymous/db3326f7c298b00a464d#file-gistfile1-rb-L19
[02:30:16] zedbourbaki: has joined #RubyOnRails
[02:30:42] beauby: has joined #RubyOnRails
[02:31:27] Oog: you know thats a good point maybe i try taking that out. the theory was this - dont tie up a db connection for the entire length of the conneciton. release it then grab it termporarily via with_connection do {}
[02:31:28] kies^: has joined #RubyOnRails
[02:32:41] sevenseacat: then why are you establishing it just to release it on the next line
[02:33:19] cytoskeletor: Maybe a different wording of my question might help. I have one local project file/application in two remote repositories that deploy to two different heroku urls(staging and production) with two different databases. I can only access heroku database for the staging environment. How do I access the database for production?
[02:33:33] Creeves: has joined #RubyOnRails
[02:33:34] Oog: the .release_connection releases the threads current connection. the establish connection starts the pool
[02:33:38] Oog: it starts the connection handler
[02:34:17] Oog: so the idea is 1) make sure there is a pool 2) release the thread's connection if it has one 3) before using the database get one via with_connection do {}
[02:34:31] sevenseacat: ACTION shrugs
[02:34:54] ProLoser: has joined #RubyOnRails
[02:36:36] zedbourbaki: has left #RubyOnRails: ()
[02:37:14] Oog: im going to try getting rid of all that connection stuff - i think i tried that last night and still had problems but lets see
[02:38:08] yfeldblum: has joined #RubyOnRails
[02:38:31] yashinbasement: hey guys how to find rails entry level job, or how do I test when I have enough skills for rails job, any suggestion please
[02:39:28] fryguy: yashinbasement: tons of job sites on the internet, or get in touch with a few recruiters
[02:39:38] bruno-: has joined #RubyOnRails
[02:39:49] GriffinHeart: has joined #RubyOnRails
[02:40:04] bonhoeffer: has joined #RubyOnRails
[02:40:10] Frem: has joined #RubyOnRails
[02:41:46] pwnd_nfsw: yashinbasement, I currently get work through a freelance site
[02:42:05] Oog: sevenseacat: yeah same problems which is really od
[02:42:20] yashinbasement: yeah I tried to do that too, couples of times but it's too competitive
[02:42:27] pwnd_nfsw: Been doing good so far, and I didn't really know much going into the job. I know quite a bit now
[02:42:53] Spami: has joined #RubyOnRails
[02:43:02] pwnd_nfsw: I guess I got lucky though. My now partner hit me up about help with a PHP site, and it was coded like crap, so I suggested we make it on rails
[02:43:11] pwnd_nfsw: On site 2 for the same client.
[02:43:16] sevenseacat: interesting name you got there.
[02:44:33] pwnd_nfsw: it should be nsfw, idk how that happened lol
[02:44:43] dopie: has joined #RubyOnRails
[02:44:47] pwnd_nfsw: But that's to warn people in another server that I'm probably posting something you don't want to look at
[02:44:50] pwnz0r_: has joined #RubyOnRails
[02:45:26] bronson: has joined #RubyOnRails
[02:46:26] lethjakman: has joined #RubyOnRails
[02:47:15] ledestin: has joined #RubyOnRails
[02:47:21] kkeuning: has joined #RubyOnRails
[02:48:30] Creeves: has joined #RubyOnRails
[02:48:32] josh2: has joined #RubyOnRails
[02:49:08] hashrocket: has joined #RubyOnRails
[02:49:12] beauby: has joined #RubyOnRails
[02:51:20] sarink: has joined #RubyOnRails
[02:55:19] shyshy: has joined #RubyOnRails
[02:55:19] Creeves: anyone here have any experience writing API reference documentation
[02:57:01] jenrzzz: has joined #RubyOnRails
[02:57:30] Creeves: i think i'm just going to copy this format: https://stripe.com/docs/api
[02:57:31] Creeves: seems nice
[02:57:46] sevenseacat: Creeves: thats always a hard topic
[02:57:49] sevenseacat: what site did i see the other day....
[02:58:13] Creeves: sevenseacat: yeah, there no real standardised way
[02:58:21] Creeves: mostly i'm just looking at formatting and data presented i guess
[02:58:31] kkeuning: has joined #RubyOnRails
[02:58:35] Creeves: it's going to be an API for credit card storage and payments so Stripe's is a good one to go off
[02:59:00] arooni-mobile: has joined #RubyOnRails
[02:59:02] arooni-mobile__: has joined #RubyOnRails
[02:59:17] kkeuning: has joined #RubyOnRails
[03:00:40] kkeuning: has joined #RubyOnRails
[03:01:45] krz: has joined #RubyOnRails
[03:01:47] sevenseacat: my browser history is failing me.... there was a cool site I saw that let you document your api and provide a sandbox for using it etc.
[03:01:58] ASDsadasd: has joined #RubyOnRails
[03:02:50] kkeuning: has joined #RubyOnRails
[03:03:07] lele: has joined #RubyOnRails
[03:03:11] ecksit: has joined #RubyOnRails
[03:03:19] jesterfraud: sevenseacat ooh, let me know if you find it again
[03:03:36] jesterfraud: ACTION I kinda want to know if this works: https://apiblueprint.org/
[03:03:43] eggoez: has joined #RubyOnRails
[03:04:12] pwnz0r: has joined #RubyOnRails
[03:04:46] beauby: has joined #RubyOnRails
[03:05:07] kkeuning: has joined #RubyOnRails
[03:05:28] smathy: has joined #RubyOnRails
[03:07:04] kkeuning: has joined #RubyOnRails
[03:07:18] ASDsadasd: has left #RubyOnRails: ()
[03:07:23] Creeves: has joined #RubyOnRails
[03:07:26] sevenseacat: looking for it -_-
[03:09:46] sevenseacat: found it! http://apiary.io/
[03:09:56] sevenseacat: example: http://docs.themoviedb.apiary.io/#reference/search/searchperson/get
[03:10:00] jesterfraud: ah yeah, the one that builds on the tech I linked
[03:10:30] jesterfraud: convincing my company to use that would be effectively impossible
[03:10:58] braincrash: has joined #RubyOnRails
[03:11:03] ASDsadasd: has joined #RubyOnRails
[03:11:07] ASDsadasd: has left #RubyOnRails: ()
[03:11:38] Creeves: has joined #RubyOnRails
[03:11:42] Creeves: sevenseacat: nice thanks
[03:11:51] Creeves: that is very sleek
[03:12:00] Creeves: similar to stripes too
[03:12:10] Oog: sevenseacat: i think i figured it out... including the live stuff makes it for the entire controller :) so other acrtions were then using it
[03:12:27] Oog: with live the actions are done in a new thread so you actually have to do the release connection/checkout a new one thing and i think if you dont you run into issues
[03:12:47] Oog: so i moved it to a new controlelr and i think its working now the issue is beanstalk i think is caching network output until the connection closes fml
[03:12:53] cytoskeletor: has joined #RubyOnRails
[03:12:53] Oog: time to call amazon
[03:12:55] sevenseacat: the mock server with code snippets I think is especially cool
[03:13:03] sevenseacat: Oog: glad you worked it out :)
[03:14:03] Oog: i might write a little blog post about this - you know who maintains ::Live? I want to see if what im doing is correct... its sort of a guess right now
[03:15:20] Scripore: has joined #RubyOnRails
[03:17:00] eggoez: has joined #RubyOnRails
[03:18:48] microdex: has joined #RubyOnRails
[03:20:59] bungoman: has joined #RubyOnRails
[03:22:50] sarink: has joined #RubyOnRails
[03:27:50] GriffinHeart: has joined #RubyOnRails
[03:27:59] Sehryn: has joined #RubyOnRails
[03:30:04] christiandsg: has joined #RubyOnRails
[03:32:04] sarink: has joined #RubyOnRails
[03:36:15] cytoskeletor: has joined #RubyOnRails
[03:37:12] dideler: has joined #RubyOnRails
[03:37:46] bhuvanaurora: has joined #RubyOnRails
[03:39:01] bonhoeffer: has joined #RubyOnRails
[03:39:38] Ropeney: has joined #RubyOnRails
[03:40:36] jesterfraud: has joined #RubyOnRails
[03:44:41] moeabdol: has joined #RubyOnRails
[03:44:59] mary5030: has joined #RubyOnRails
[03:45:13] bonhoeffer: has joined #RubyOnRails
[03:45:28] Creeves: has joined #RubyOnRails
[03:46:02] krz: is doorkeeper still the preferred library for implementing oauth in an API?
[03:48:20] artto: has joined #RubyOnRails
[03:53:11] Creeves: krz: i'd say so
[03:53:23] Creeves: you mean to be an oauth provider yeah?
[03:53:48] Creeves: i use doorkeeper as a means of being a provider and omniauth to accept different oauth strategies for 3rd party sites
[03:56:33] one_zero: has joined #RubyOnRails
[03:57:59] Caius: has joined #RubyOnRails
[03:58:00] vere: has joined #RubyOnRails
[04:00:34] allcentury: has joined #RubyOnRails
[04:02:05] earthquake: has joined #RubyOnRails
[04:02:13] BenCoinanke: has joined #RubyOnRails
[04:05:34] xkickflip: has joined #RubyOnRails
[04:05:47] jenrzzz: has joined #RubyOnRails
[04:09:02] pwnz0r: has joined #RubyOnRails
[04:10:00] jesterfraud: @Radar: that still in tree issue is back :/
[04:15:23] Radar: jesterfraud: howwwww :(
[04:15:35] jesterfraud: @Radar I'm clearly doing something _very_ wrong
[04:15:44] jesterfraud: however, I just moved it back into lib, and manually require the file
[04:16:45] jesterfraud: I do call a static method on a model that stores something into RequestStore, but I don't see how that would cause this issue (I don't store a reference to the middleware anywhere or vice versa)
[04:19:31] microdex: has joined #RubyOnRails
[04:20:42] shock_one: has joined #RubyOnRails
[04:23:21] microdex: has joined #RubyOnRails
[04:25:55] s2013: has joined #RubyOnRails
[04:26:22] siemprefresco: has joined #RubyOnRails
[04:26:56] fcser_: has joined #RubyOnRails
[04:29:02] dc1: has joined #RubyOnRails
[04:30:56] Spami: has joined #RubyOnRails
[04:31:31] arooni-mobile: has joined #RubyOnRails
[04:31:33] arooni-mobile__: has joined #RubyOnRails
[04:34:40] Lightsword: has joined #RubyOnRails
[04:34:48] charliesome: has joined #RubyOnRails
[04:35:14] lethjakman: has joined #RubyOnRails
[04:35:26] dc2: has joined #RubyOnRails
[04:35:50] VeryBewitching: has joined #RubyOnRails
[04:37:04] brianpWins: has joined #RubyOnRails
[04:38:28] siemprefresco: has joined #RubyOnRails
[04:40:04] bruno-: has joined #RubyOnRails
[04:54:56] Aeyrix: @jesterfraud:
[04:55:04] bhuvanaurora: has joined #RubyOnRails
[04:55:15] teedex: has joined #RubyOnRails
[04:55:16] Aeyrix: thinking of moving all bantery chats off irc
[04:55:46] Aeyrix: welp that was meant to be in #ruby-offtopic
[04:57:19] srinidhi: has joined #RubyOnRails
[04:59:11] roolo: has joined #RubyOnRails
[04:59:25] Aeyrix: @staff.govt.hu
[05:00:17] Dwarf: has joined #RubyOnRails
[05:01:01] simplyianm: has joined #RubyOnRails
[05:02:26] zack6849: has joined #RubyOnRails
[05:02:26] zack6849: has joined #RubyOnRails
[05:04:35] simplyianm: has joined #RubyOnRails
[05:06:30] riotjones: has joined #RubyOnRails
[05:07:14] simplyia_: has joined #RubyOnRails
[05:08:14] jesterfraud: quickie: is there a function to do content sniffing? I'm pulling stuff out of the database, but sometimes it's a PDF, sometimes it's plain text
[05:08:37] nahtnam: has joined #RubyOnRails
[05:11:16] sarid: has joined #RubyOnRails
[05:12:12] sarid: ACTION votes for Aeyrix as leader
[05:12:25] Aeyrix: I'm working out how best to approach the packaging team
[05:12:31] Aeyrix: "ur bad give me access" is probably a bad idea
[05:12:35] DoctorMonocular: has joined #RubyOnRails
[05:12:41] jesterfraud: what could possibly go wrong?
[05:12:49] Aeyrix: idk this is debian we're talking about
[05:12:51] Aeyrix: i'd probably be
[05:12:58] Aeyrix: added to some secret os blacklist
[05:13:02] Aeyrix: which causes my password to be reset
[05:13:04] Aeyrix: on my own systems
[05:14:08] jesterfraud: > not using private keys
[05:14:18] Aeyrix: > using nopasswd in sudo
[05:14:32] jesterfraud: nah, you just nopasswd su
[05:14:36] jesterfraud: so you can sudo su
[05:14:39] Aeyrix: jessie (stable) (ruby): web-flow and rendering framework putting the VC in MVC (part of Rails)
[05:14:39] jesterfraud: but it's still secure!
[05:14:40] Aeyrix: HAHAHAHAHA
[05:14:52] sarid: keys can be viewed as bad and do have their downfalls
[05:15:22] michaeldeol: has joined #RubyOnRails
[05:16:04] dhjondoh: has joined #RubyOnRails
[05:16:22] jesterfraud: sarid, anything on a computer is bad
[05:16:27] jesterfraud: at some point or another
[05:16:46] sarid: if it can be stored electronically, it can be retrieved electronically
[05:17:54] shock_one: has joined #RubyOnRails
[05:20:37] bashusr: has joined #RubyOnRails
[05:22:37] bhuvanaurora: has joined #RubyOnRails
[05:28:20] vere: has joined #RubyOnRails
[05:29:50] DoubleMalt: has joined #RubyOnRails
[05:31:04] arBmind: has joined #RubyOnRails
[05:31:53] aganov: has joined #RubyOnRails
[05:32:07] chrissonar: has joined #RubyOnRails
[05:34:02] lampd1: has joined #RubyOnRails
[05:36:09] lethjakman: has joined #RubyOnRails
[05:37:09] lampd1: has joined #RubyOnRails
[05:38:28] moeabdol: has joined #RubyOnRails
[05:39:29] GriffinHeart: has joined #RubyOnRails
[05:39:36] rhizome: bitsquatting
[05:39:47] tagrudev: has joined #RubyOnRails
[05:45:37] yardenbar: has joined #RubyOnRails
[05:49:53] Oog: has joined #RubyOnRails
[05:49:58] artto: has joined #RubyOnRails
[05:50:16] Oog: i have a model with 3 has_many associations. how can i sort descending by the count of the has_many ? https://gist.github.com/anonymous/f93e392e504756dbe9e3
[05:50:48] Oog: like User.all.order(:credit_cards_count => :desc) is what i want
[05:51:28] shock_one: has joined #RubyOnRails
[05:51:49] Oog: i bet im going to have to do some custom sql with a custom select column
[05:52:47] rhizome: Oog: counter_cache
[05:53:18] x44x45x41x4E: has joined #RubyOnRails
[05:53:31] Oog: i was worried about that geting out of sync - when/how is it updated/reconciled?
[05:53:48] rhizome: create/destroy
[05:54:02] rhizome: on the association
[05:54:45] Oog: so on create/destroy it does a select count(*) it doesnt just ++/-- the cached value?
[05:55:01] Fire-Dragon-DoL: has joined #RubyOnRails
[05:55:41] eggoez: has joined #RubyOnRails
[05:58:47] rhizome: looks like it increment/decrements for each create/destroy
[05:59:45] rhizome: http://apidock.com/rails/v4.2.1/ActiveRecord/CounterCache/ClassMethods/update_counters
[05:59:54] rhizome: calls that with either 1/-1
[06:02:06] metus_violarium: has joined #RubyOnRails
[06:04:03] Anakat: has joined #RubyOnRails
[06:04:31] krz: has joined #RubyOnRails
[06:04:45] Anakat: has joined #RubyOnRails
[06:06:43] theery: has joined #RubyOnRails
[06:06:50] djbkd: has joined #RubyOnRails
[06:09:33] annlewis_: has joined #RubyOnRails
[06:09:40] dopieee: has joined #RubyOnRails
[06:09:46] eminencehc_: has joined #RubyOnRails
[06:10:03] Fire-Dra_: has joined #RubyOnRails
[06:12:04] LambdaSource: has joined #RubyOnRails
[06:22:01] LambdaSource: has joined #RubyOnRails
[06:22:13] MaDErroR123: has joined #RubyOnRails
[06:22:43] MaDErroR123: has joined #RubyOnRails
[06:22:52] ndrei: has joined #RubyOnRails
[06:23:47] LambdaSo_: has joined #RubyOnRails
[06:24:45] strcmp1: has joined #RubyOnRails
[06:29:02] bhuvanaurora: has joined #RubyOnRails
[06:29:59] riotjones: has joined #RubyOnRails
[06:33:18] pwnz0r: has joined #RubyOnRails
[06:37:40] steamboy_: has joined #RubyOnRails
[06:37:47] abuzze: has joined #RubyOnRails
[06:38:38] Sylario: has joined #RubyOnRails
[06:42:16] zly: Morning
[06:42:48] zly: I have two models, User and Job
[06:43:02] zly: How can I assure that one user can apply only once to a given job?
[06:43:37] zly: apply for*
[06:44:13] Pupeno: has joined #RubyOnRails
[06:44:15] rhizome: use belongs_to
[06:44:23] iamse7en: has joined #RubyOnRails
[06:45:21] zly: Now I'm confused. Either I explained it badly or you misunderstood
[06:45:33] Pupeno_: has joined #RubyOnRails
[06:45:41] abuzze: has joined #RubyOnRails
[06:47:26] artto: has joined #RubyOnRails
[06:47:29] zly: I need to limit users possibility to apply for a given job to 1
[06:48:09] GriffinHeart: has joined #RubyOnRails
[06:48:16] sevenseacat: sounds like you want an intermediate model, like a JobApplication, with some validations on it
[06:48:21] comrad: has joined #RubyOnRails
[06:48:32] iamse7en: is anyone pretty familiar with has_scope gem? using for the first time here and have an error I can't get past. thanks for taking a look if you can: https://gist.github.com/austinarchibald/09dd591d7dc997bf29dd#file-games_controller-rb-L5
[06:49:04] sevenseacat: iamse7en: I havent used that gem, but posting the full error with backtrace will assist people in assisting you
[06:49:13] zly: sevenseacat: I was thinking about another model, but I was curious if there's some other solution :)
[06:51:41] Radar: iamse7en: Why are you using has_scope there?
[06:51:52] Radar: iamse7en: and what is the stacktrace for that error?
[06:52:19] Radar: zly: sevenseacat is right that you should have a JobApplication model.
[06:52:30] iamse7en: Radar: i'm not sure. I googled filtering and some suggested has_scope was really good. I'ts a simple filter, should I just use regular AR querying?
[06:52:32] Radar: If you don't have one already: how are you tracking what users have applied to what jobs?
[06:56:59] iamse7en: Radar: added the stacktrace to the gist. thank you.
[06:57:12] Radar: iamse7en: No you didn't.
[06:57:52] baweaver_: has joined #RubyOnRails
[06:57:54] sevenseacat: no stacktrace confirmed.
[06:58:19] sevenseacat: I also don't know what that code is supposed to do
[06:58:29] lxsameer: has joined #RubyOnRails
[06:58:29] lxsameer: has joined #RubyOnRails
[07:00:16] kazenjizo: has joined #RubyOnRails
[07:00:40] iamse7en: sorry, here is the stack trace with it: https://gist.github.com/austinarchibald/09dd591d7dc997bf29dd
[07:01:29] Radar: ACTION shrugs
[07:01:42] Radar: I have no idea what that gem is supposed to be doing and it's too late in the evening for me to find out how.
[07:02:18] sevenseacat: you're telling your controller to apply a scope that doesnt exist
[07:02:21] sevenseacat: you have no :league scope
[07:02:42] pontiki: insomnia R us
[07:03:04] eGGsha: has joined #RubyOnRails
[07:03:46] sevenseacat: afternoon pontiki
[07:04:16] iamse7en: sevenseacat: tried to follow https://github.com/plataformatec/has_scope on that. doesn't my game.rb model define that :league scope?
[07:04:48] iamse7en: or maybe I need to do scope:league do and pass those through a block
[07:04:49] sevenseacat: no - you have no scope :league
[07:05:09] sevenseacat: i dont know if thats whats causing your problem but its definitely *a* problem.
[07:05:37] iamse7en: ok, i'll play around with that, creating :league scope
[07:05:42] iamse7en: thanks for the direction
[07:06:12] Anakat: has joined #RubyOnRails
[07:08:53] Scripore: has joined #RubyOnRails
[07:12:45] arup_r: has joined #RubyOnRails
[07:13:53] iamse7en: sevenseacat: thank you! just needed to do scope :league, -> league { where(:league => league) }
[07:13:56] iamse7en: working great now.
[07:14:48] iamse7en: would I be able to create a route for that? like instead of ?league=nfl it's replaced with /nfl
[07:14:57] iamse7en: i guess i'll just shut up and try it
[07:15:28] sevenseacat: trying it first is always a good idea :)
[07:16:20] darutoko: has joined #RubyOnRails
[07:16:53] arup_r: I am writing Rails APIs for mobile .. In one case I would like to see if a post is liked by a user or not... based on that they will enable like/unlike API.. So to verify it is like or not, I am writing a route liked .. This route will check in the db table and send back the response.. And I am thiking for response I'll use HTTP status code 210 ( as 209-225 are unused) .. Is it standard way to do this work ?
[07:17:54] sevenseacat: you dont just make up your own status codes
[07:18:16] sevenseacat: use one appropriate for your response
[07:19:20] rhizome: status: 666
[07:20:00] arup_r: rhizome: not seeing here http://tools.ietf.org/html/rfc2616#section-6.1.1 or http://www.iana.org/assignments/http-status-codes/http-status-codes.xml
[07:20:21] arup_r: sevenseacat: Humm.. but not able to find any valid as per my data
[07:20:24] sevenseacat: I don't know if this is the original, but status codes in a nutshell: https://twitter.com/stevelosh/status/372740571749572610
[07:20:38] alphaatom: has joined #RubyOnRails
[07:20:42] arup_r: I want some status which means kind of confirming
[07:21:04] sevenseacat: arup_r: there is none for that. if the request was successful, you probably want a 200 response
[07:21:32] fighella: has joined #RubyOnRails
[07:21:36] sevenseacat: regardless of whether it was confirmed or not
[07:21:36] arup_r: Ok.. then it will better to send a custom message with a status code 200..
[07:22:00] rhizome: like what?
[07:22:05] arup_r: they will check the message like "already liked"
[07:22:13] arup_r: rhizome: post/answer etc
[07:22:16] rhizome: "pie is good"
[07:22:42] rhizome: i'm not sure an http status code is the best place to transmit data
[07:24:15] arup_r: I was not also.. that's why I asked.. :)
[07:24:22] arup_r: To see what people say
[07:24:25] rhizome: maybe a better way of thinking of voting apis is "ensure an upvote is associated with this user"
[07:24:45] lethjakman: has joined #RubyOnRails
[07:25:16] sevenseacat: also, https://www.flickr.com/photos/girliemac/sets/72157628409467125
[07:25:50] rhizome: http doesn't care whether the actual sentiment is "i don't like this...wait, yes i do, let me change it because of complicated reasons. i know it used to be a downvote, but i want it to be an upvote now"
[07:26:04] arup_r: rhizome: in controller.. you mean to check right.. ?
[07:26:19] arup_r: if already liked or not
[07:26:26] rhizome: why do you care about "already?"
[07:26:41] arup_r: ok.. let me tell you now my current idea
[07:26:46] rhizome: i can't wait
[07:27:04] arup_r: I got my indea.. what to do..
[07:30:25] rhizome: i guess it's chips 'n salsa time for me then
[07:30:27] nso95: has joined #RubyOnRails
[07:31:45] benhuda: has joined #RubyOnRails
[07:33:40] eyck: has joined #RubyOnRails
[07:33:51] pontiki: party on the patio at rhizomes
[07:38:07] allcentury: has joined #RubyOnRails
[07:38:56] Trefex: has joined #RubyOnRails
[07:39:38] RegulationD: has joined #RubyOnRails
[07:40:38] solars: has joined #RubyOnRails
[07:41:39] bruno-: has joined #RubyOnRails
[07:42:24] cornerma1: has joined #RubyOnRails
[07:45:30] GriffinHeart: has joined #RubyOnRails
[07:48:28] Ergo: has joined #RubyOnRails
[07:51:32] jenrzzz: has joined #RubyOnRails
[07:51:56] blackmes1: has joined #RubyOnRails
[07:52:35] Pupeno: has joined #RubyOnRails
[07:59:43] jsrn_: has joined #RubyOnRails
[08:01:57] robertfalken: has joined #RubyOnRails
[08:02:11] ndrei: has joined #RubyOnRails
[08:04:04] eGGsha: has joined #RubyOnRails
[08:07:18] konsolebox: has joined #RubyOnRails
[08:10:08] iamse7en: sevenseacat: i'm now creating filter buttons, e.g. `<%= link_to 'NFL', request.original_url + '&league=nfl', class: 'btn btn-default' %>`. Obviously the opposite (- &league=nfl) won't work to remove the filter... how can I remove that portion but still retain whatever date filter is in the url?
[08:10:50] sevenseacat: iamse7en: thats not a great way to do it - it means that every new click will add another league to the end of the URL
[08:11:12] iamse7en: well i'd like users to be able to have whatever sports clicked that they want?
[08:11:25] iamse7en: e.g. see list of games on that day of ncb, nfl, and nba for example
[08:11:52] iamse7en: as opposed to just one sport at a time
[08:12:06] marr: has joined #RubyOnRails
[08:12:41] iamse7en: fyi, i have <% if request.original_url.to_s.include? 'league=nfl' %> beforehand
[08:13:23] pontiki: iamse7en: you will need to understand how to specify multiple values for the same parameter
[08:13:34] sevenseacat: because that wont work as is
[08:14:08] pontiki: doing ?league=nfl&league=ncb&league=zaa will only get you one league
[08:14:26] noodman: has joined #RubyOnRails
[08:15:17] vigintas999: has joined #RubyOnRails
[08:15:42] pontiki: url encoded arrays append [] to the key: ?league[]=nfl&leaque[]=ncb&league[]=zaa
[08:16:15] pontiki: never mind the typos, i can't type league worth shit, it appears
[08:16:28] iamse7en: i see what you're saying though.
[08:16:32] adre: has joined #RubyOnRails
[08:17:05] pontiki: however, as well, you can't build that up with a bunch of link_to's
[08:17:23] iamse7en: it's never as easy as it seems upon first look
[08:17:33] pontiki: a link_to is a single-shot link
[08:18:10] pontiki: you'll basically need to build a form, possibly with checkboxes
[08:18:41] iamse7en: thank you very kindly for your direction
[08:18:47] arBmind: has joined #RubyOnRails
[08:19:12] robertfalken: Ok, guys. I have the weirdest bug. I have a model with an attribute named "success_url". And I also have a route defined as "get 'success' => 'controller#action'". Problem is, when I'm serializing this model using ActiveModel::Serializer, this method call "read_attribute_for_serialization(:success_url)" returns the url of my route instead of the attribute of the model. Is this expected behaviour?
[08:19:24] blackmesa: has joined #RubyOnRails
[08:20:10] robertfalken: (giving the route a name seems to be a workaround)
[08:21:09] pontiki: ok, back to bed for me
[08:21:56] benhuda: has joined #RubyOnRails
[08:23:21] chinmay_dd: has joined #RubyOnRails
[08:23:34] VeryBewitching: Bedtime for me too, take it easy folks.
[08:24:10] jamey-uk: has joined #RubyOnRails
[08:33:44] yardenbar: has joined #RubyOnRails
[08:35:09] yfeldblum: has joined #RubyOnRails
[08:38:44] dlitz: has joined #RubyOnRails
[08:42:02] lapide_viridi: has joined #RubyOnRails
[08:43:50] x-light: has joined #RubyOnRails
[08:46:28] jkwood: has joined #RubyOnRails
[08:47:04] sebbers_: has joined #RubyOnRails
[08:47:06] voodo: has joined #RubyOnRails
[08:47:09] voodo: has left #RubyOnRails: ()
[08:47:31] matcouto: has joined #RubyOnRails
[08:52:12] shock_one: has joined #RubyOnRails
[08:53:13] DEA7TH: has joined #RubyOnRails
[08:54:36] vigintas999: good morning guys, do any of you know any good advanced ruby/rails training houses in uk? jbi is over-booked till october =( price is not a major concern. thanks a lot!
[08:56:28] jottr: has joined #RubyOnRails
[08:58:11] microdex: has joined #RubyOnRails
[08:59:34] baweaver: has joined #RubyOnRails
[09:04:45] edwinvdgraaf: has joined #RubyOnRails
[09:07:09] skroon: anyone know why there is OpenID Connect, i'm not sure yet what the difference is between regular OAuth2 flow... the only thing I can think of is that it OIDC includes user information inside a JWT, or is there perhaps more to it then that?
[09:11:47] elaptics: vigintas999: who's jbi? What sort of advanced training are you looking for?
[09:12:21] DEA7TH: has joined #RubyOnRails
[09:12:39] bin_005: has joined #RubyOnRails
[09:12:50] startupality: has joined #RubyOnRails
[09:13:34] lethjakman: has joined #RubyOnRails
[09:14:23] xkickflip: has joined #RubyOnRails
[09:17:47] xkickflip: has joined #RubyOnRails
[09:18:27] arup_r: has joined #RubyOnRails
[09:18:54] Creeves: has joined #RubyOnRails
[09:19:15] vigintas999: elaptics: jib is a training house in london, http://www.jbinternational.co.uk/course/399/ruby-rails-training-course-london-uk. i'm looking for a 3d to a weeks long in-depth training of advanced design patterns, tdd, bdd in rails/ruby
[09:20:12] kham: has joined #RubyOnRails
[09:20:25] vigintas999: possibly a delve into existing code base if 1on1
[09:20:59] DEA7TH: has joined #RubyOnRails
[09:22:06] xkickflip: has joined #RubyOnRails
[09:23:50] givanse: has joined #RubyOnRails
[09:25:03] DoctorMonocular: has joined #RubyOnRails
[09:26:03] elaptics: vigintas999: these guys might be what you're looking for then? https://cucumber.io/training
[09:27:00] elaptics: vigintas999: failing that I might be willing/able to offer you something. I don't officially offer training courses but I've been doing Rails for 7-8 years now
[09:27:02] eGGsha: has joined #RubyOnRails
[09:28:14] RegulationD: has joined #RubyOnRails
[09:33:51] krz: has joined #RubyOnRails
[09:35:13] cornerma1: has joined #RubyOnRails
[09:36:04] qejk: has joined #RubyOnRails
[09:36:10] wethu: has joined #RubyOnRails
[09:43:01] Rukeal: has joined #RubyOnRails
[09:45:38] givanse_: has joined #RubyOnRails
[09:47:03] vigintas999: has joined #RubyOnRails
[09:47:09] tvw: has joined #RubyOnRails
[09:49:22] Pathfinder: has joined #RubyOnRails
[09:52:51] weckl: has joined #RubyOnRails
[09:54:00] Anakat: has joined #RubyOnRails
[09:55:34] srinidhi: has joined #RubyOnRails
[09:56:10] Papierkorb: has joined #RubyOnRails
[09:58:17] Lytol: has joined #RubyOnRails
[09:58:41] microdex: has joined #RubyOnRails
[09:59:39] bin_005_i: has joined #RubyOnRails
[10:00:40] ur5us: has joined #RubyOnRails
[10:00:44] nfk: has joined #RubyOnRails
[10:01:36] eGGsha: has joined #RubyOnRails
[10:03:57] n008f4g_: has joined #RubyOnRails
[10:05:13] Grundell: has joined #RubyOnRails
[10:07:07] ndrei: has joined #RubyOnRails
[10:07:58] koos303: has joined #RubyOnRails
[10:11:05] vigasdeep: has joined #RubyOnRails
[10:19:34] bonhoeffer: has joined #RubyOnRails
[10:20:26] PpPyg: has joined #RubyOnRails
[10:20:28] rickmasta: has joined #RubyOnRails
[10:23:47] yashinbasement: has joined #RubyOnRails
[10:23:58] bonhoeffer: has joined #RubyOnRails
[10:28:20] CatMartyn: has joined #RubyOnRails
[10:31:28] one_zero: has joined #RubyOnRails
[10:34:18] pwnz0r: has joined #RubyOnRails
[10:35:32] nickenchuggets: has joined #RubyOnRails
[10:36:07] jottr: has joined #RubyOnRails
[10:40:18] mos: has joined #RubyOnRails
[10:42:14] startupality: has joined #RubyOnRails
[10:47:52] nya: has joined #RubyOnRails
[10:48:10] Tempesta: has joined #RubyOnRails
[10:50:10] RickJamesTheThir: has joined #RubyOnRails
[10:51:29] RickJamesTheThir: Would anybody know what a manifest.appcache is? Everytime I go to the root of my application (localhost:3000) it loads up this other page that isn't part of my application and is not the root. Its like it's totally ignoring my route which is set to go to my articles controller index action
[10:52:15] Hates_: has joined #RubyOnRails
[10:52:20] MaDErroR123: has joined #RubyOnRails
[10:54:48] Anakat: has joined #RubyOnRails
[10:58:20] PlasmaStar: has joined #RubyOnRails
[10:59:42] microdex: has joined #RubyOnRails
[10:59:51] yashinbasement: is that showing you an error
[11:01:21] mrbubbles: has joined #RubyOnRails
[11:02:17] lethjakman: has joined #RubyOnRails
[11:02:25] yaymukund: has joined #RubyOnRails
[11:03:51] toomus: has joined #RubyOnRails
[11:05:31] toomus: What does mean <%== %> in ERB?
[11:05:59] yardenbar: has joined #RubyOnRails
[11:06:38] mrbubbles: has joined #RubyOnRails
[11:07:38] yashinbasement: did you jus type two equls ?
[11:09:02] chipotle: has joined #RubyOnRails
[11:09:12] eGGsha: has joined #RubyOnRails
[11:10:02] toomus: no, two equals
[11:10:14] toomus: this is part of ERB
[11:10:29] toomus: but I can't find what doest it mean
[11:10:38] yashinbasement: hmm, why do you need this ?
[11:11:55] startupality: has joined #RubyOnRails
[11:12:43] bonhoeffer: has joined #RubyOnRails
[11:13:05] toomus: I founs some gist, where someone used it, and I'm just wondering what this do.
[11:15:22] lupine: ERB.new("<%== %>").result
[11:15:22] lupine: SyntaxError: (erb):1: syntax error, unexpected '='
[11:15:39] toomus: This is related with this function http://apidock.com/rails/v4.2.1/ActionView/OutputBuffer/safe_expr_append%3D
[11:17:34] bruno-: has joined #RubyOnRails
[11:18:28] vigasdeep: @toomus can you give the link to gist you found ?
[11:18:31] toomus: OK it lloks like shortcut for raw()?
[11:18:51] startupality: has joined #RubyOnRails
[11:19:27] toomus: if I do <%== "<script>alert('OK');</script>" %>
[11:19:32] toomus: script executes
[11:19:43] robertfalken: has joined #RubyOnRails
[11:19:44] toomus: But this <%= "<script>alert('OK');</script>" %>
[11:19:50] toomus: escapes script
[11:21:18] yashinbasement: http://www.kuwata-lab.com/erubis/users-guide.02.html#tut-escape
[11:21:55] mrbubbles: has joined #RubyOnRails
[11:26:03] Creeves: has joined #RubyOnRails
[11:26:10] ndrei: has joined #RubyOnRails
[11:28:25] Takumo: has joined #RubyOnRails
[11:28:26] Takumo: has joined #RubyOnRails
[11:30:48] Detch: has joined #RubyOnRails
[11:32:03] Takumo: has joined #RubyOnRails
[11:32:03] Takumo: has joined #RubyOnRails
[11:33:54] ldnunes: has joined #RubyOnRails
[11:34:13] benhuda: has joined #RubyOnRails
[11:35:28] krz: has joined #RubyOnRails
[11:36:09] jamey-uk: has joined #RubyOnRails
[11:36:16] Takumo: has joined #RubyOnRails
[11:36:16] Takumo: has joined #RubyOnRails
[11:37:05] toomus: has joined #RubyOnRails
[11:38:12] aderium: has joined #RubyOnRails
[11:38:33] creature: has joined #RubyOnRails
[11:38:56] mauro1254: has joined #RubyOnRails
[11:39:19] ndrei: has joined #RubyOnRails
[11:39:44] toomus: I have problem with escaping javascript
[11:40:20] toomus: escape_javascript and its alias j doesn't work
[11:40:54] toomus: I mean works, as it should be, but escaped string breakes the page
[11:45:43] toomus: OK sanitize() :)
[11:45:45] doodlehaus: has joined #RubyOnRails
[11:46:43] vaikla: has joined #RubyOnRails
[11:48:16] quazimodo: has joined #RubyOnRails
[11:48:18] quazimod1: has joined #RubyOnRails
[11:50:07] yashinbasement: did you make it work
[11:50:36] PhantomSpank: has joined #RubyOnRails
[11:50:38] baweaver: has joined #RubyOnRails
[11:50:39] yashinbasement: working on something else! :(
[11:55:31] Anakat: has joined #RubyOnRails
[11:56:17] Schalla: has joined #RubyOnRails
[11:56:17] Schalla: has joined #RubyOnRails
[11:56:18] vaikla: has joined #RubyOnRails
[12:00:21] microdex: has joined #RubyOnRails
[12:00:39] erich: has joined #RubyOnRails
[12:00:56] sp1rs: has joined #RubyOnRails
[12:02:56] srinidhi: has joined #RubyOnRails
[12:03:05] lethjakman: has joined #RubyOnRails
[12:08:11] Lightsword: has joined #RubyOnRails
[12:08:23] MaDErroR123: has joined #RubyOnRails
[12:11:35] arup_r: has joined #RubyOnRails
[12:14:40] MaDErroR123: has joined #RubyOnRails
[12:17:18] mostlybadfly: has joined #RubyOnRails
[12:18:24] cytoskeletor: has joined #RubyOnRails
[12:19:09] eGGsha: has joined #RubyOnRails
[12:19:39] eggoez: has joined #RubyOnRails
[12:20:11] leonardoajim: has joined #RubyOnRails
[12:20:19] rickmasta: has joined #RubyOnRails
[12:22:38] iooner: has joined #RubyOnRails
[12:23:00] annlewis: has joined #RubyOnRails
[12:24:14] newguy: has joined #RubyOnRails
[12:25:03] voker57: has joined #RubyOnRails
[12:25:19] lemonada: has joined #RubyOnRails
[12:27:52] gerep: has joined #RubyOnRails
[12:29:02] bhuvanaurora: has joined #RubyOnRails
[12:29:33] robertfa_: has joined #RubyOnRails
[12:30:05] tvw: has joined #RubyOnRails
[12:30:22] FCser: has joined #RubyOnRails
[12:30:32] victortyau: has joined #RubyOnRails
[12:30:47] yie: hi, is it possible to get session_id after calling devise method sign_in
[12:31:16] yie: i need to filter some user sessions right after they auth
[12:31:49] yie: but i can't get current session_id
[12:32:20] bbrowning: has joined #RubyOnRails
[12:32:40] JoshL: has joined #RubyOnRails
[12:32:41] yie: session.id still holds id before auth
[12:35:09] lemonada: guys newbie here. How do I set a button, so when it is clicked method is called in controller?
[12:36:13] elaptics: lemonada: what's the action for? Is it just a get request or are you posting some data?
[12:36:42] george2: has joined #RubyOnRails
[12:37:40] balr0g: has joined #RubyOnRails
[12:38:22] DEA7TH_: has joined #RubyOnRails
[12:39:47] DEA7TH_: My code doesn't work, is this correct: post '/digi/send/', to: 'digi#send'
[12:39:48] DEA7TH_: post '/digi/register/', to: 'digi#register'
[12:40:13] DEA7TH_: when trying to post to localhost:3000/digi/register, I think it tries to use digi#send instead
[12:40:18] jkamenik: has joined #RubyOnRails
[12:40:43] elaptics: lemonada: !rule12
[12:40:43] helpa: lemonada: Do not PM members of the channel without first asking if that is OK.
[12:40:57] elaptics: lemonada: post your question and gist here
[12:41:00] surrealanalysis: has joined #RubyOnRails
[12:41:03] blackmesa: has joined #RubyOnRails
[12:41:23] jamey-uk: has joined #RubyOnRails
[12:42:13] elaptics: DEA7TH_: can you gist your actual routes, and an example of the request being made - if this is from a form, gist the view too
[12:42:37] lemonada: http://pastie.org/10289866 i am trying to call grab method once button is pressed
[12:43:03] nfk: has joined #RubyOnRails
[12:43:32] elaptics: lemonada: ok, so you need a form to send the url then?
[12:43:47] elaptics: where's this url coming from?
[12:43:48] lemonada: yes i have it in the view
[12:43:56] stantonnet: has joined #RubyOnRails
[12:44:10] lemonada: url is in the model
[12:45:08] stamina: has joined #RubyOnRails
[12:45:13] DEA7TH_: https://gist.github.com/VelizarHristov/72c8456e7eb41551aa1c
[12:45:27] elaptics: lemonada: you just need to create a route in your routes.rb, e.g. post "/grab", to: "websites#grab"
[12:45:50] elaptics: lemonada: then you can just use that route in your form, e.g. form_tag "/grab"
[12:46:06] elaptics: lemonada: I would recommend you read the routing guide if you haven't already
[12:46:08] elaptics: lemonada: !routing
[12:46:08] helpa: lemonada: http://guides.rubyonrails.org/routing.html - Rails Routing From the Outside In - Rails Guide - by Mike Gunderloy
[12:46:42] brazenbraden: has joined #RubyOnRails
[12:46:52] varunwachaspati: has joined #RubyOnRails
[12:46:52] elaptics: DEA7TH_: you probably don't want the trailing slash on the urls
[12:47:15] DoubleMalt: has joined #RubyOnRails
[12:47:18] elaptics: DEA7TH_: otherwise I can't see why it wouldn't be working unless you're doing something odd somewhere
[12:47:24] neanderslob: has joined #RubyOnRails
[12:47:28] elaptics: DEA7TH_: can you gist your actual controller
[12:47:35] SeanLazer: has joined #RubyOnRails
[12:48:28] DEA7TH_: Huh, this is really weird. The error I'm getting is complaining about "app/controllers/digi_controller.rb:23:in `send'"
[12:48:33] elaptics: DEA7TH_: also do you _know_ that it's calling the wrong controller?
[12:48:41] DEA7TH_: I'll gist the error and the controller
[12:48:42] elaptics: DEA7TH_: gist the full output from your logs
[12:49:05] DEA7TH_: elaptics: the wrong controller? you mean the correct controller but the wrong method?
[12:49:16] elaptics: DEA7TH_: yes :)
[12:49:29] charliesome: has joined #RubyOnRails
[12:51:06] DEA7TH_: https://gist.github.com/VelizarHristov/4e6e15adadffab1ba80d
[12:53:51] DEA7TH_: I commented out everything between (not including) `def send` and `end`, restarted the server, and I get the same error
[12:53:55] konsolebox: has joined #RubyOnRails
[12:54:12] elaptics: DEA7TH_: could you add the controller as a separate file in the gist so that line numbers are easy to correlate
[12:54:21] elaptics: DEA7TH_: !gist-usage
[12:54:21] helpa: DEA7TH_: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[12:54:36] DEA7TH_: line 23 is the line which says 'def send'
[12:54:38] DEA7TH_: but OK, I will
[12:54:45] elaptics: also means that syntax highlighting will be working better :)
[12:54:57] allcentury: has joined #RubyOnRails
[12:55:56] lapide_viridi: has joined #RubyOnRails
[12:56:05] DEA7TH_: https://gist.github.com/VelizarHristov/9cb68ec094608634cc41
[12:56:14] Anakat: has joined #RubyOnRails
[12:56:50] DEA7TH_: btw, calling a, b = Digi.register from the console works perfectly
[12:57:30] elaptics: DEA7TH_: it's because you've got a method called send - call it something else
[12:57:36] elaptics: #send in ruby is something else
[12:59:03] zorak8: has joined #RubyOnRails
[12:59:32] srinidhi: has joined #RubyOnRails
[13:00:01] n008f4g_: has joined #RubyOnRails
[13:01:17] microdex: has joined #RubyOnRails
[13:01:52] neanderslob: has joined #RubyOnRails
[13:04:02] lethjakman: has joined #RubyOnRails
[13:04:35] k4nd4lf: has joined #RubyOnRails
[13:04:40] garrypolley: has joined #RubyOnRails
[13:05:59] umgrosscol: has joined #RubyOnRails
[13:07:07] davidbitton: has joined #RubyOnRails
[13:08:50] ekain: has joined #RubyOnRails
[13:11:07] DoubleMalt: has joined #RubyOnRails
[13:11:48] jkamenik1: has joined #RubyOnRails
[13:12:45] Oog: has joined #RubyOnRails
[13:13:47] dhjondoh: has joined #RubyOnRails
[13:13:57] Oog: has left #RubyOnRails: ()
[13:14:00] Oog: has joined #RubyOnRails
[13:14:34] JulienTa_: What are your must have gem when you start a new project ?
[13:15:12] noodman: has joined #RubyOnRails
[13:15:55] bungoman: has joined #RubyOnRails
[13:17:31] gerep: JulienTa_, I go with byebug, better_errors and foreman
[13:17:31] vigintas999_: has joined #RubyOnRails
[13:17:31] elaptics: JulienTa_: haml and simple_form
[13:17:31] abuzze: has joined #RubyOnRails
[13:18:23] gerep: JulienTa_, I also go with Slim
[13:19:32] Anakat: has joined #RubyOnRails
[13:20:15] JulienTa_: Thanks :) You usually develop user authentication by hand ?
[13:20:39] elaptics: more often than not
[13:20:45] broman: has joined #RubyOnRails
[13:20:57] tagrudev: has joined #RubyOnRails
[13:21:16] broman: can someone help me? i altered a form to include a checkbox but when i hit send the param is not being sent.. im using rails 3.2
[13:21:28] gerep: JulienTa_, same here =)
[13:21:29] elaptics: broman: !gist
[13:21:29] helpa: broman: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[13:21:44] JulienTa_: ok good to know :)
[13:21:55] elaptics: broman: is the checkbox ticked or not?
[13:22:23] broman: yes it is ticket
[13:22:26] JulienTa_: I'm a PHP developer for 10 years now, and i was trying RoR this week end without even know any ruby... and i kinda liked it :)
[13:23:15] JulienTa_: broman: does your checkbox have a name attribute ?
[13:23:17] broman: elaptics, https://gist.github.com/anonymous/66cd2afbf67bb8e74be4
[13:23:23] broman: yes it does
[13:23:23] gerep: JulienTa_, I suggest this link to have a good first impression: https://www.railstutorial.org/book
[13:23:44] broman: from the gist i posted its the checkbox on line 40
[13:23:51] JulienTa_: gerep : i followed this tutorial,; the 8th first chapter
[13:23:54] broman: it's the only field not send
[13:24:07] elaptics: broman: why aren't you using the rails form helpers?
[13:24:32] broman: elaptics, i just got it like this.. im fixing things here
[13:24:45] broman: and also.. i think i discovered the problem! sorry to bother you guys and thanks a lot!
[13:24:51] broman: its a js problema
[13:25:11] elaptics: broman: well you haven't supplied the "checked" attribute so it's not checked
[13:25:43] annlewis: has joined #RubyOnRails
[13:26:59] annlewis: has joined #RubyOnRails
[13:28:19] oflannabhra: has joined #RubyOnRails
[13:29:32] doodlehaus: has joined #RubyOnRails
[13:29:44] blackmesa: has joined #RubyOnRails
[13:30:04] centrx: has joined #RubyOnRails
[13:30:17] abuzze: has joined #RubyOnRails
[13:30:25] Scripore: has joined #RubyOnRails
[13:31:08] JMarCal: has joined #RubyOnRails
[13:31:30] tsvenson: has joined #RubyOnRails
[13:33:45] bmurt: has joined #RubyOnRails
[13:33:51] eGGsha: has joined #RubyOnRails
[13:34:44] Betray1st: has joined #RubyOnRails
[13:35:24] calleerlandsson: has joined #RubyOnRails
[13:35:48] neanderslob: has joined #RubyOnRails
[13:35:49] hakunin: has joined #RubyOnRails
[13:36:00] LJT: has joined #RubyOnRails
[13:36:52] ramortegui: has joined #RubyOnRails
[13:39:15] devdazed: has joined #RubyOnRails
[13:39:22] JulienTa_: http://railsforzombies.org/ is awesome :)
[13:39:44] bungoman: has joined #RubyOnRails
[13:39:51] Schalla: has joined #RubyOnRails
[13:43:17] bratsche: has joined #RubyOnRails
[13:50:17] mos: has joined #RubyOnRails
[13:51:25] bronson: has joined #RubyOnRails
[13:51:29] DEA7TH_: has joined #RubyOnRails
[13:53:21] microdex: has joined #RubyOnRails
[13:57:10] varunwachaspati: has joined #RubyOnRails
[13:57:29] arBmind: has left #RubyOnRails: ()
[13:59:29] tvw: has joined #RubyOnRails
[13:59:33] pothibo: has joined #RubyOnRails
[13:59:36] neanderslob: hi all, Im using cocoon to generate a set of dynamic fields for a particular model (Model A). In the form I would also like to add fields for another model (Model B) each time I generate the Model A fields with cocoon; does anyone know a good way to do this?co
[13:59:47] darrencauthon: has joined #RubyOnRails
[14:00:17] cpruitt: has joined #RubyOnRails
[14:00:43] paulcsmith: has joined #RubyOnRails
[14:00:51] neanderslob: I figured I might be able to cobble together something using the cocoon:after-insert callback but was wondering if anyone had tried this sort of thing themselves
[14:00:52] stantonnet: has joined #RubyOnRails
[14:04:41] lethjakman: has joined #RubyOnRails
[14:05:33] jschoolcraft: has joined #RubyOnRails
[14:05:54] jkamenik: has joined #RubyOnRails
[14:06:09] fcser_: has joined #RubyOnRails
[14:06:16] JakFrist: has joined #RubyOnRails
[14:09:31] Scripore: has joined #RubyOnRails
[14:09:43] chouhoulis: has joined #RubyOnRails
[14:10:12] seank_: has joined #RubyOnRails
[14:10:22] charliesome: has joined #RubyOnRails
[14:12:05] chouhoulis: has joined #RubyOnRails
[14:14:14] dopie: has joined #RubyOnRails
[14:14:37] fgo: has joined #RubyOnRails
[14:18:28] mos: has joined #RubyOnRails
[14:18:38] RegulationD: has joined #RubyOnRails
[14:19:30] volk_: has joined #RubyOnRails
[14:19:44] sarink: has joined #RubyOnRails
[14:20:23] Anakat: has joined #RubyOnRails
[14:20:25] volk_: question ??? i want to use a constant throughout an app in views, im thinking of either doing it in a model, but that seems like leaking internal model logic into views is bad. would using a view helper that uses the model constant be better practice
[14:20:26] eggoez: has joined #RubyOnRails
[14:22:09] Papierkorb: Is that constant specific to that model?
[14:23:14] nateberkopec: has joined #RubyOnRails
[14:23:35] Papierkorb: I don't see an issue with using that then. You could pull that constant out of the model, but then it's not where it's supposed to be. You could have another constant, but then you have the same constant twice which is also bad
[14:24:26] Papierkorb: For me, that outweights the issue with having the dependency to a model. Maybe you could derive the value of the constant from something else if you really don't want to reference the constant itself in the view
[14:25:55] elaptics: volk_: I'm in agreement with Papierkorb. I'd expose it through a class method on the model, then you've got the option of reimplementing it internally at some future point without needing to change the views
[14:26:27] volk_: right, i totally agree with it beign on the model, im just thinking to instead of using the actual constant in the views, to point a view helper to the constant
[14:26:41] volk_: so that in the future if the model logic slightly changes, the view helper only needs to change
[14:26:45] elaptics: depending on how much indirection you want to deal with then you could wrap the model class method in a view helper if you thought that it might need to move from the model later
[14:26:46] Papierkorb: You could, as work a round, also assign a instance variable to the constant in the controller and then use that variable instead. What I don't like here that it's just shadowing what's really going on and makes it less obvious what's going on in there. But, IMO, that's still a better solution if you really not prefer to use the Model in there
[14:26:53] kies^: has joined #RubyOnRails
[14:26:58] volk_: @elaptics right exacty what i was thinking
[14:27:03] surrealanalysis: has joined #RubyOnRails
[14:27:06] eggoez: has joined #RubyOnRails
[14:27:59] volk_: yeah Papierkorb the thing is that its used in a bunch of different views/controllers so it would be redefined everywhere, unless i have some parent controller hold it but i feel like thats worse
[14:28:08] volk_: i???ll stick to the model constant
[14:29:43] jonathanwallace: has joined #RubyOnRails
[14:30:31] doodlehaus: has joined #RubyOnRails
[14:30:37] Papierkorb: Is it btw possible to put helpers into modules? So I can write something like <%= Some::thing %> instead of contributing to further overpollute the global namespace?
[14:30:46] iooner: has joined #RubyOnRails
[14:30:48] DaniG2k: has joined #RubyOnRails
[14:30:52] startupality: has joined #RubyOnRails
[14:32:18] Xiti: has joined #RubyOnRails
[14:33:17] elaptics: Papierkorb: yes, I believe so although you could just turn off including all of them in all views by default (iirc)
[14:33:25] elaptics: just include what you need when you need them
[14:34:02] iooner: has joined #RubyOnRails
[14:34:13] elaptics: Papierkorb: think it's config.action_controller.include_all_helpers = false
[14:34:23] Papierkorb: elaptics: Should have added, I tried doing that recently. I just had "module Something .. end" inside the helper module, and haml couldn't find it. Though I can't remember the error either -.-;
[14:35:00] cfurrow: has joined #RubyOnRails
[14:35:01] Papierkorb: *Couldn't find a method defined inside that sub module
[14:35:11] elaptics: Papierkorb: http://thepugautomatic.com/2012/08/helpers/
[14:35:56] Frem: has joined #RubyOnRails
[14:36:19] theery: has joined #RubyOnRails
[14:36:26] eGGsha: has joined #RubyOnRails
[14:36:29] werelivinginthef: has joined #RubyOnRails
[14:36:43] alex88: has joined #RubyOnRails
[14:37:10] lapide_viridi: has joined #RubyOnRails
[14:37:41] microdex: has joined #RubyOnRails
[14:38:35] Papierkorb: elaptics: Thanks. I think I'd need to dive into rails' source to see why it didn't work.
[14:38:53] Papierkorb: Maybe I'll do that. if anything, there's the possibility of learning something new
[14:39:32] elaptics: Papierkorb: do share if you learn anything interesting
[14:41:39] disgrntld: has joined #RubyOnRails
[14:41:47] theery: has joined #RubyOnRails
[14:42:35] Dreamer3: has joined #RubyOnRails
[14:43:58] mary5030: has joined #RubyOnRails
[14:46:11] defsdoor: has joined #RubyOnRails
[14:52:16] dudo: has joined #RubyOnRails
[14:53:57] jottr: has joined #RubyOnRails
[14:54:00] mary5030: has joined #RubyOnRails
[14:56:16] jamesrward: has joined #RubyOnRails
[14:56:27] bruno-: has joined #RubyOnRails
[14:59:14] SeanLazer: has joined #RubyOnRails
[15:00:42] mary5030: has joined #RubyOnRails
[15:00:45] charliesome: has joined #RubyOnRails
[15:01:16] jamesrward: Having trouble with permitted params on a has_and_belongs_to_many relationship. Here's a gist https://gist.github.com/jamesrward/da7e416686f56ac886ae I'm seeing Unpermitted parameter: issue_ids in my dev log but I have :issue_ids in my permit_params already. Not sure where to go from here.
[15:01:25] smathy: has joined #RubyOnRails
[15:02:05] Aswebb_: has joined #RubyOnRails
[15:02:13] iamse7en: has joined #RubyOnRails
[15:04:12] smathy: has joined #RubyOnRails
[15:04:22] DEA7TH_: has joined #RubyOnRails
[15:04:29] AzaToth: has joined #RubyOnRails
[15:04:52] symbol: has joined #RubyOnRails
[15:05:08] acti0nman: I've never seen this: f.inputs 'Details' do
[15:05:09] acti0nman: f.input :name
[15:05:10] acti0nman: f.input :country, as: :select2, :collection => Country.all
[15:05:10] acti0nman: f.input :type, as: :select2
[15:05:12] acti0nman: f.input :issues, as: :select2_multiple, collection: Issue.all
[15:05:14] acti0nman: what does that do?
[15:05:35] acti0nman: why f.inputs plural?
[15:05:36] elaptics: acti0nman: looks like formtastic syntax
[15:05:45] jamesrward: acti0nman: sorry, it's the activeadmin dsl for formtastic. behaves like formtastic.
[15:05:59] acti0nman: it belongs in the model?
[15:06:29] elaptics: acti0nman: no it's view stuff
[15:06:36] elaptics: just a shorthand for creating forms
[15:06:43] theery: has joined #RubyOnRails
[15:06:57] elaptics: jamesrward: you need to specify that it's an array in the permit
[15:07:20] elaptics: jamesrward: so stick it at the end of the list like so: issue_ids: []
[15:07:30] jamesrward: elaptics: I thought that too but I can't seem to get the syntax right. Will try that again.
[15:07:44] smathy_: has joined #RubyOnRails
[15:08:08] elaptics: jamesrward: putting it at the end is the best bet
[15:08:36] IanV0rn2341: has joined #RubyOnRails
[15:08:59] jamesrward: elaptics: bingo, end of the list makes the difference. I had it second last before and it threw errors. Great catch, I would never have realized. Thank you.
[15:10:00] artto: has joined #RubyOnRails
[15:10:01] elaptics: jamesrward: yeah, it's just the way you have to do it, the difference between it being a simple list of keys vs list of keys plus a value
[15:10:30] smathy: has joined #RubyOnRails
[15:12:12] adavia: has joined #RubyOnRails
[15:12:38] smathy_: has joined #RubyOnRails
[15:13:03] jamesrward: elaptics: got any projects I can send you gittip on? you saved me some serious time.
[15:13:14] dhjondoh: has joined #RubyOnRails
[15:13:18] startupality: has joined #RubyOnRails
[15:13:48] werelivinginthef: has joined #RubyOnRails
[15:14:23] gambl0re: has joined #RubyOnRails
[15:14:37] smathy__: has joined #RubyOnRails
[15:14:51] krokuz_: has joined #RubyOnRails
[15:15:56] jottr_: has joined #RubyOnRails
[15:16:04] artto: has joined #RubyOnRails
[15:16:10] elaptics: jamesrward: no, but feel free to donate towards someone who's making a difference in the ruby community :)
[15:16:23] smathy: has joined #RubyOnRails
[15:16:35] dmin7b5_: has joined #RubyOnRails
[15:17:24] adavia: elaptics: thanks for the help last day.. i figured out the problem was having to move my form below my microposts results. Dont tell me why
[15:18:52] smathy: has joined #RubyOnRails
[15:19:01] elaptics: adavia: that seems odd. Feel free to gist what you've got and I'll take a look but I've got to leave in about 10 mins - but will be back online later tonight
[15:19:40] adavia: elaptics: its fixed now =)
[15:20:38] strixd: has joined #RubyOnRails
[15:21:02] Anakat: has joined #RubyOnRails
[15:22:21] doodlehaus: has joined #RubyOnRails
[15:22:57] adavia: now im wondering why my javascript fails when i add in my comment form the instance @comment instead of micropost.comments.build. https://gist.github.com/adavia/2b23b749dd28a058287b
[15:23:02] CatMartyn: has joined #RubyOnRails
[15:24:01] vigintas999: has joined #RubyOnRails
[15:24:58] ledestin: has joined #RubyOnRails
[15:25:17] treehug88: has joined #RubyOnRails
[15:25:18] JakFrist: has joined #RubyOnRails
[15:25:38] arup_r: has joined #RubyOnRails
[15:26:42] a346: has joined #RubyOnRails
[15:27:31] arup_r: for payment I need to generate unique *trackid* for each payment ... Is there any gem to gurantee it will be always unique ... I thought about http://ruby-doc.org/stdlib-2.1.2/libdoc/securerandom/rdoc/SecureRandom.html to use for this.,,, but not sure if I am choosing right tool or not
[15:28:00] arup_r: Will it be a good idea to use `id` of the Payment model as the tracking_id
[15:28:03] elaptics: arup_r: that's about a unique a guarantee you're going to get
[15:28:14] arup_r: which one ?
[15:28:17] elaptics: arup_r: I'm talking about the uuid option
[15:28:47] arup_r: Will it uuid always give uniq number ?
[15:28:53] elaptics: no reason you couldn't use the payment id though - depends what you're tracking and whether you're giving away any useful info, e.g. how many payments have been done to date?
[15:29:11] elaptics: arup_r: well it's not a number but yes, it's designed to be unique
[15:29:12] arup_r: if somehow tracking_id is not uniw Bank will reject transaction.. that's why I am thiking..
[15:29:33] baweaver: has joined #RubyOnRails
[15:29:41] Cache_Money: has joined #RubyOnRails
[15:29:41] Pathfinder_: has joined #RubyOnRails
[15:30:19] Scripore: has joined #RubyOnRails
[15:30:47] malhotra: has joined #RubyOnRails
[15:31:15] malhotra: simple_captcha is not working in production environment ....
[15:31:27] LJT: has joined #RubyOnRails
[15:34:27] Oog: has joined #RubyOnRails
[15:35:28] SeanLazer: has joined #RubyOnRails
[15:35:52] kazenjizo: has joined #RubyOnRails
[15:36:45] rubyonrailed: has joined #RubyOnRails
[15:36:55] HenriettaSalt: has joined #RubyOnRails
[15:37:00] IceBear: has joined #RubyOnRails
[15:37:00] angelixd: has joined #RubyOnRails
[15:37:00] thang: has joined #RubyOnRails
[15:37:00] BaNzoun3t: has joined #RubyOnRails
[15:37:00] ohhmaar: has joined #RubyOnRails
[15:37:01] SirCmpwn: has joined #RubyOnRails
[15:37:04] dcope: has joined #RubyOnRails
[15:37:05] phon: has joined #RubyOnRails
[15:37:05] cgrieger^away: has joined #RubyOnRails
[15:37:05] K0nserv-: has joined #RubyOnRails
[15:37:05] aujt74: has joined #RubyOnRails
[15:37:06] queequeg1: has joined #RubyOnRails
[15:37:06] swistak35: has joined #RubyOnRails
[15:37:06] ptierno: has joined #RubyOnRails
[15:37:06] leex: has joined #RubyOnRails
[15:37:06] mosez: has joined #RubyOnRails
[15:37:06] skyjumper: has joined #RubyOnRails
[15:37:06] DefV: has joined #RubyOnRails
[15:37:07] teegee543: has joined #RubyOnRails
[15:37:07] sash_: has joined #RubyOnRails
[15:37:08] abracadaniel: has joined #RubyOnRails
[15:37:09] skakri: has joined #RubyOnRails
[15:37:09] ankhers: has joined #RubyOnRails
[15:37:09] w0bni: has joined #RubyOnRails
[15:37:10] flori: has joined #RubyOnRails
[15:37:11] cappsio: has joined #RubyOnRails
[15:37:13] waltz: has joined #RubyOnRails
[15:37:14] defswork: has joined #RubyOnRails
[15:37:14] herenow: has joined #RubyOnRails
[15:37:15] Megatomte: has joined #RubyOnRails
[15:37:16] svkurowsl: has joined #RubyOnRails
[15:37:17] vij-: has joined #RubyOnRails
[15:37:17] josqu4red: has joined #RubyOnRails
[15:37:18] Veejay: has joined #RubyOnRails
[15:37:19] noah256: has joined #RubyOnRails
[15:37:19] Senjai: has joined #RubyOnRails
[15:37:20] Dfoolz: has joined #RubyOnRails
[15:37:24] Kovensky: has joined #RubyOnRails
[15:37:24] finges: has joined #RubyOnRails
[15:37:27] Silex: has joined #RubyOnRails
[15:37:27] coffeeju1: has joined #RubyOnRails
[15:37:28] IFrank00: has joined #RubyOnRails
[15:37:29] machuga: has joined #RubyOnRails
[15:37:31] EiNSTeiN_: has joined #RubyOnRails
[15:37:32] ght: has joined #RubyOnRails
[15:37:37] hectortrope: has joined #RubyOnRails
[15:37:55] maxmanders: has joined #RubyOnRails
[15:38:04] jxie: has joined #RubyOnRails
[15:38:06] deavid: has joined #RubyOnRails
[15:38:07] asi_: has joined #RubyOnRails
[15:38:07] apeiros: has joined #RubyOnRails
[15:38:44] AntiSpamMeta: has joined #RubyOnRails
[15:38:48] mozzarella: has joined #RubyOnRails
[15:38:49] [H]unt3r: has joined #RubyOnRails
[15:39:05] icedp: has joined #RubyOnRails
[15:39:13] neanias: has joined #RubyOnRails
[15:39:29] TheMoonMaster: has joined #RubyOnRails
[15:39:34] g3funk: has joined #RubyOnRails
[15:40:35] riotjones: has joined #RubyOnRails
[15:40:49] jwaldrip: has joined #RubyOnRails
[15:41:09] defsdoor: has joined #RubyOnRails
[15:41:33] oflannabhra: has joined #RubyOnRails
[15:44:24] cardoni_: has joined #RubyOnRails
[15:44:29] ewilliam: has joined #RubyOnRails
[15:45:53] jlpeters: has joined #RubyOnRails
[15:45:58] bruno-: has joined #RubyOnRails
[15:46:05] arup_r: has joined #RubyOnRails
[15:46:48] arup_r: elaptics: "how many payments have been done to date?" may be 100 +
[15:46:50] iamse7en: I have a button that adds a filter: <%= link_to 'NFL', request.original_url + '&league[]=nfl', class: 'btn btn-default' %>, but how do I do the exact opposite, removing the filter or removes '&league[]=nfl' from the url?
[15:47:16] sshuff: has joined #RubyOnRails
[15:47:26] arup_r: using track_id as payment `id` is good option.. but thinking about threads.. I mean multiple users will try to do payment..
[15:47:28] cpruitt: has joined #RubyOnRails
[15:47:37] lemonada: How do I change this code so when i create new website_params i also do the grab method? http://pastie.org/10290189
[15:47:50] varunwachaspati: has joined #RubyOnRails
[15:49:24] arup_r: elaptics: Would it be good to concatenate `id` with timestamps and use it as `track_id` .. ?
[15:49:30] smathy: has joined #RubyOnRails
[15:49:35] arup_r: good idea**
[15:49:48] mr_blue: has joined #RubyOnRails
[15:50:09] mr_blue: how to know on which plateform my rails app runs ?
[15:50:16] r_baron: has joined #RubyOnRails
[15:50:16] mr_blue: windows or linux ?
[15:50:26] lethjakman: has joined #RubyOnRails
[15:50:36] jimbeaudoin: has joined #RubyOnRails
[15:51:53] Lloyd: has joined #RubyOnRails
[15:52:19] shinnya: has joined #RubyOnRails
[15:52:33] smathy_: has joined #RubyOnRails
[15:53:37] mary5030: has joined #RubyOnRails
[15:53:51] eminencehc_: has joined #RubyOnRails
[15:54:02] tubbo: mr_blue: test it on windows i suppose?
[15:54:39] smathy: has joined #RubyOnRails
[15:54:49] mary5030: has joined #RubyOnRails
[15:55:14] mr_blue: tubbo: I just want to know on which os my rails app runs
[15:55:40] mr_blue: Is there a ENV['OS'] or something else ?
[15:57:14] tubbo: mr_blue: i'm not sure i understand your question. can you be a little more specific as to what your issue is? i typically know the OS when i build the machine i'm going to deploy an app on, what kind of web host do you have wherein you don't know the OS? :)
[15:57:39] tubbo: mr_blue: just so you know, if you're using a PaaS/SaaS (unless it's Azure I guess) like Heroku or something, it's linux.
[15:58:04] seank_: has joined #RubyOnRails
[15:58:20] mheld: has joined #RubyOnRails
[15:58:47] stantona: has joined #RubyOnRails
[15:59:07] theery: has joined #RubyOnRails
[15:59:50] iamdevnul: has joined #RubyOnRails
[16:00:15] mr_blue: tubbo: my rails app needs to start an external program and the program name change with the plateform where it runs (windows / linux). But I do not know how to select the correct name function of the plateform
[16:00:34] rubyonrailed: has joined #RubyOnRails
[16:03:31] clintb: has joined #RubyOnRails
[16:04:47] tubbo: mr_blue: ah, your question sounds similar to http://stackoverflow.com/questions/170956/how-can-i-find-which-operating-system-my-ruby-program-is-running-on, Ruby in fact provides a RUBY_PLATFORM constant that you can test to see whether you're on the right OS.
[16:05:20] blackmesa: has joined #RubyOnRails
[16:05:30] towski_: has joined #RubyOnRails
[16:05:34] IanV0rn2341: has joined #RubyOnRails
[16:05:42] rubyonrailed: has joined #RubyOnRails
[16:05:42] mr_blue: tubbo: thanks a lot for your link
[16:06:13] tubbo: mr_blue: no prob
[16:07:43] hololeap: has joined #RubyOnRails
[16:08:34] mr_blue: It works great. Exactly what i need. This constant I missed is documented into the Object api doc
[16:08:53] JulienTant: has joined #RubyOnRails
[16:11:03] bricker: has joined #RubyOnRails
[16:11:38] tubbo: mr_blue: i think it might be part of Kernel, not Object
[16:11:42] nickenchuggets_: has joined #RubyOnRails
[16:11:43] tubbo: hence why you can just call it directly
[16:12:29] Spami: has joined #RubyOnRails
[16:15:08] simplyianm: has joined #RubyOnRails
[16:15:48] lampd1: has joined #RubyOnRails
[16:16:06] jmaya: has joined #RubyOnRails
[16:16:21] DEA7TH_: has joined #RubyOnRails
[16:16:26] s2013: has joined #RubyOnRails
[16:18:22] mr_blue: tubbo: not part of the Kernel module but an Object constant
[16:18:27] smathy: has joined #RubyOnRails
[16:18:40] epitron: has joined #RubyOnRails
[16:19:22] tubbo: mr_blue: oh really? crazy :)
[16:21:45] Anakat: has joined #RubyOnRails
[16:23:14] zola25: has joined #RubyOnRails
[16:24:16] werelivinginthef: has joined #RubyOnRails
[16:25:51] nfk: has joined #RubyOnRails
[16:27:48] [Butch]: has joined #RubyOnRails
[16:27:54] richipargo: has joined #RubyOnRails
[16:31:23] n008f4g_: has joined #RubyOnRails
[16:32:56] garrypolley: has joined #RubyOnRails
[16:35:14] hamster88: has joined #RubyOnRails
[16:35:25] hamster88: Hello everyone !
[16:36:35] hamster88: One question i have , what path should i select in order to setup multi-domain.
[16:38:04] hamster88: like if a user signsup i want them to have an option for choosing custom domain. How could this be achieved.
[16:41:00] solars: has joined #RubyOnRails
[16:43:40] cnk: has joined #RubyOnRails
[16:44:36] moeabdol: has joined #RubyOnRails
[16:45:25] richipargo: has joined #RubyOnRails
[16:45:38] melonstorm: has joined #RubyOnRails
[16:47:10] DEA7TH_: For Devise, I find a config/initializers/devise.rb file, but it doesn't appear to be associated with a model. How do I make it specific to a certain Devise model?
[16:48:14] DEA7TH_: For example, if I want to turn off encryption for only one of the models.
[16:48:29] richipargo: has joined #RubyOnRails
[16:51:28] Senjai: has joined #RubyOnRails
[16:51:30] Senjai: hamster88: Dont give them an option
[16:51:33] bronson: has joined #RubyOnRails
[16:51:56] Senjai`work: has joined #RubyOnRails
[16:52:12] Senjai`work: has joined #RubyOnRails
[16:52:29] hamster88: Senjai, what you mean don't give them an option
[16:52:45] Senjai: hamster88: Just redirect to the login page on that domain
[16:52:47] dan0034001: has joined #RubyOnRails
[16:52:55] Senjai: hamster88: Why do they have to choose what domain to login to
[16:52:56] Sharcho_: has joined #RubyOnRails
[16:53:54] hamster88: Senjai, I am not giving option to login to.. i am trying to give option choose their app to be accessed via that domain.
[16:54:02] mary5030_: has joined #RubyOnRails
[16:54:48] mary5030: has joined #RubyOnRails
[16:55:36] Sharcho: has joined #RubyOnRails
[16:55:41] hamster88: lets say, i have a user a and another user b... and they came to signup for creating their new blog.. and they sign up as a.com and other as b.com .. and when they do this, 2 different instances will get created, one for each user.
[16:55:59] srinidhi: has joined #RubyOnRails
[16:56:15] hamster88: and these users can access it via the respective domain they choose at the time of sign up
[16:57:36] srinidhi: has joined #RubyOnRails
[16:57:42] towski_: has joined #RubyOnRails
[16:58:12] Senjai: What do you need two instances. A user should just have_many domains
[16:58:14] Senjai: in that case
[16:58:23] Senjai: Not saying I completely understand that structure
[16:58:28] Sharcho: What would be the best way to paginate results from an external API, preferably using kaminari?
[16:58:47] pixelhandler: has joined #RubyOnRails
[16:58:55] Senjai: Sharcho: You can't. Unless you reformatted it to work with kaminari
[16:59:10] Senjai: Sharcho: Most external API's come with metadata about how many total entries there are, what page you're on, etc
[16:59:10] alphaatom: has joined #RubyOnRails
[16:59:31] PhantomSpank: has joined #RubyOnRails
[16:59:41] baweaver: has joined #RubyOnRails
[16:59:48] Senjai: That can all be done clientside. Serverside, just fetch page + 1 if page < total_pages
[17:01:56] dan0034001: anyone using Rack-CORS with puma?
[17:02:12] dan0034001: i cant get OPTIONS requests to work, i simply have migrated form unicorn
[17:02:13] Sharcho: Senjai: maybe clientside would indeed be better in this case.
[17:02:42] dan0034001: config.middleware.insert_before ActionDispatch::Static, Rack::Cors do
[17:02:44] dan0034001: resource "*", headers: :any, methods: [:get, :post, :put, :delete, :options]
[17:02:52] dan0034001: https://gist.github.com/anonymous/1a4a83a1fb64b06028a5 sorry here
[17:04:36] JimmyNeutron: has joined #RubyOnRails
[17:06:21] eGGsha: has joined #RubyOnRails
[17:07:37] charliesome: has joined #RubyOnRails
[17:10:42] ascarter: has joined #RubyOnRails
[17:14:52] sillypog: has joined #RubyOnRails
[17:15:26] simplyianm: has joined #RubyOnRails
[17:17:16] nettoweb: has joined #RubyOnRails
[17:17:45] stantona: has joined #RubyOnRails
[17:17:48] nettoweb: has joined #RubyOnRails
[17:18:23] nettoweb: guys, I had some problems with mandrill sending transitional email, sometimes I gor a "authentication failed" and they ask me to send them the SMTP conversation, but how I get this conversation? just changing to config.log_level = :debug in production? Os there's a better way to debug this issue?
[17:19:44] oflannabhra: has joined #RubyOnRails
[17:20:25] fuzzyhorns: has joined #RubyOnRails
[17:22:30] Anakat: has joined #RubyOnRails
[17:24:40] JakFrist: has joined #RubyOnRails
[17:24:53] jottr_: has joined #RubyOnRails
[17:25:08] dan0034001: need help with rac cors and puma web server
[17:25:47] roolo: has joined #RubyOnRails
[17:26:39] nfk: has joined #RubyOnRails
[17:30:40] giowong: has joined #RubyOnRails
[17:31:10] alphaatom: has joined #RubyOnRails
[17:31:35] iamjarvo: has joined #RubyOnRails
[17:33:31] giowong: is gem whenever the appropriate choice for cronjob?
[17:33:50] garrypolley: has joined #RubyOnRails
[17:34:01] giowong: i need to run a script once a month at the end of each month to send a automated email through sendgrid
[17:35:40] Maletor: has joined #RubyOnRails
[17:36:05] skroon: anyone here doing microservices, i'm just wondering how you take apart frontned/UI related stuff
[17:36:13] Spami: has joined #RubyOnRails
[17:37:22] volk_: has joined #RubyOnRails
[17:37:26] bricker: "take apart
[17:38:12] oflannabhra: has joined #RubyOnRails
[17:39:09] lethjakman: has joined #RubyOnRails
[17:40:23] IFrank00: has joined #RubyOnRails
[17:41:20] Spami: has joined #RubyOnRails
[17:41:57] dopie: has joined #RubyOnRails
[17:42:29] smathy: has joined #RubyOnRails
[17:42:31] zorak8: has joined #RubyOnRails
[17:43:56] werelivinginthef: has joined #RubyOnRails
[17:45:20] jsrn_: has joined #RubyOnRails
[17:47:14] jmaya: has joined #RubyOnRails
[17:48:50] smathy_: has joined #RubyOnRails
[17:48:52] _djbkd: has joined #RubyOnRails
[17:51:10] podman: has joined #RubyOnRails
[17:51:48] Pathfinder: has joined #RubyOnRails
[17:53:01] smathy: has joined #RubyOnRails
[17:53:02] sonOfRa: has joined #RubyOnRails
[17:53:22] ararog: has joined #RubyOnRails
[17:54:41] nzst: has joined #RubyOnRails
[17:55:16] nzst: What is a nice method to duplicate an object and fix any uniqueness validation fails along the way?
[17:56:06] allcentury: has joined #RubyOnRails
[17:56:13] p8m: has joined #RubyOnRails
[17:57:12] skyjumper: nzst: amoeba gem?
[17:58:00] nzst: skyjumper: that might work, haven't heard of it
[17:58:52] seank_: has joined #RubyOnRails
[18:00:49] yardenbar: has joined #RubyOnRails
[18:01:45] smathy: has joined #RubyOnRails
[18:02:49] bungoman: has joined #RubyOnRails
[18:02:53] yfeldblum: has joined #RubyOnRails
[18:04:10] toretore: has joined #RubyOnRails
[18:04:50] _djbkd: has joined #RubyOnRails
[18:05:19] _djbkd: has joined #RubyOnRails
[18:06:32] jkamenik: has joined #RubyOnRails
[18:07:37] smathy: has joined #RubyOnRails
[18:08:48] mary5030: has joined #RubyOnRails
[18:10:24] mary5030: has joined #RubyOnRails
[18:10:24] jhack: has joined #RubyOnRails
[18:10:57] Axsuul: has joined #RubyOnRails
[18:11:12] yocapybara: has left #RubyOnRails: ()
[18:11:40] werelivinginthef: has joined #RubyOnRails
[18:11:59] doodlehaus: has joined #RubyOnRails
[18:12:37] jottr_: has joined #RubyOnRails
[18:13:28] bronson: has joined #RubyOnRails
[18:14:52] Aswebb__: has joined #RubyOnRails
[18:15:22] Schalla: has joined #RubyOnRails
[18:15:22] Schalla: has joined #RubyOnRails
[18:15:33] jobewan: has joined #RubyOnRails
[18:15:44] gerep: has joined #RubyOnRails
[18:16:29] bklane: has joined #RubyOnRails
[18:17:15] codepete: has joined #RubyOnRails
[18:19:04] nzst: Amoeba gem seems like overkill, I think #dup will work, but I'm unsure of a good way to handle name validation errors and mod the name cleanly
[18:19:33] sloggerkhan: Is there a shortcut in Ruby for doing something like `things.reduce(true) { |run, val| run && val }` (IE reduce to true/false)? (I don't particularly mind writing it out, am just curious.)
[18:19:36] fuzzyhorns: has joined #RubyOnRails
[18:21:16] _djbkd: has joined #RubyOnRails
[18:23:05] Papierkorb: SloggerKhan: may 'things' contain true/false's? Or is that just a trick to filter out nils?
[18:23:28] tenderlo_: has joined #RubyOnRails
[18:24:19] smathy: nzst, a valid modification is going to be very domain-specific, ie. we can't tell you how to validly do that.
[18:25:19] bungoman: has joined #RubyOnRails
[18:25:50] garrypolley: has joined #RubyOnRails
[18:26:16] nzst: I was hoping for a rails way to dup and have a custom hook of some sort where I can put my domain logic
[18:27:35] noodman: has joined #RubyOnRails
[18:27:37] smathy: SloggerKhan, things.all? {|v| v }
[18:28:10] simplyianm: has joined #RubyOnRails
[18:28:50] smathy: That also has the advantage of short-circuiting on false.
[18:29:01] jamiely: has joined #RubyOnRails
[18:29:25] sloggerkhan: Papierkorb: it's an array or set of things that can be treated as truthy, and if they're all "true" then the set is "true," but if one is "false" the set is "false" I guess would be how I'd describe it.
[18:29:41] marr: has joined #RubyOnRails
[18:29:54] DLSteve: has joined #RubyOnRails
[18:30:07] riotjones: has joined #RubyOnRails
[18:30:25] rhizome: sorry, &:!!
[18:30:30] kadoppe: has joined #RubyOnRails
[18:31:00] tubbo: wouldn't that just return the last result?
[18:31:10] tubbo: i think you want all?(&:!!)
[18:31:21] tubbo: (btw any?() means "does any of these return true")
[18:31:24] rhizome: oh, i misunderstood
[18:31:55] allcentury: hi all - in rspec, how can I stub DateTime.now.to_s(:iso8601)
[18:31:55] vickleton: has joined #RubyOnRails
[18:32:16] allcentury: when I do, DateTime.now.stub(:to_s).and_return { "2015" } it's not working
[18:32:52] simplyianm: has joined #RubyOnRails
[18:32:53] rhizome: SloggerKhan: i'd look at enumerable#detect
[18:33:04] smathy: Umm, .all?
[18:33:09] smathy: ACTION already answered this above
[18:33:35] _djbkd: has joined #RubyOnRails
[18:33:36] sloggerkhan: What kinds of objects have `all?` methods?
[18:33:42] smathy: Enumerable.
[18:33:43] rhizome: enumerable
[18:33:54] smathy: (ie. everything that has a .reduce method)
[18:34:40] smathy: nzst, no, nothing built in. You'll need to dup it, then .valid? it, then check `errors` and update each field that has a uniqueness error - maybe using a dispatch table.
[18:35:03] baweaver: has joined #RubyOnRails
[18:35:23] bklane: has joined #RubyOnRails
[18:35:27] nzst: smathy: i've never heard of a dispatch table
[18:35:39] sloggerkhan: smathy: yeah, all does seem to do exactly what I asked. Thanks!
[18:35:44] smathy: nzst, google is your friend.
[18:35:47] smathy: SloggerKhan, you're welcome.
[18:37:05] vickleton_: has joined #RubyOnRails
[18:37:19] sloggerkhan: It doesn't seem to even need the block.
[18:37:33] nzst: smathy: ugh, google snark, thanks for the info, regardless
[18:38:40] smathy: SloggerKhan, ah perfect, I was wondering what the right syntax for that was. Well done.
[18:38:49] stantona: has joined #RubyOnRails
[18:39:11] smathy: nzst, not a snark, just a topic that's beyond a simple explanation here in this channel.
[18:40:06] sloggerkhan: It just seemed like the kind of thing there was probably a method for, but googling gave a lot of terrible results.
[18:40:48] djbkd_: has joined #RubyOnRails
[18:42:45] bklane: has joined #RubyOnRails
[18:42:45] smoak: has joined #RubyOnRails
[18:42:54] Lightsword: has joined #RubyOnRails
[18:45:02] nfk: has joined #RubyOnRails
[18:47:09] hanss: has joined #RubyOnRails
[18:48:52] smathy: has joined #RubyOnRails
[18:49:29] zack6849: Hey guys, i'm having some troubles with rails
[18:49:31] Surt_Q: has joined #RubyOnRails
[18:49:37] zack6849: When i run in development mode, all is well
[18:49:47] zack6849: however when i run in production mode, *all* of my stylesheets 404
[18:50:30] tubbo: zack6849: did you `rake assets:precompile` as part of your deploy process to production?
[18:50:32] nzst: sounds like a compilation issue
[18:50:51] zack6849: i didn't, i don't think anyways, i wasn't aware that was a thing
[18:50:57] zack6849: I'm fairly new to how rails works :P
[18:51:35] zack6849: nope, that didn't fix it.
[18:51:49] zack6849: This may be of use
[18:51:51] zack6849: ActionController::RoutingError (No route matches [GET] "/highlight.pack.js"):
[18:51:57] tubbo: zack6849: don't paste multiple lines into irc
[18:52:02] tubbo: zack6849: ok n/m :D
[18:52:03] zack6849: it seems as though it's not even trying to read the file as a file for some reason
[18:52:17] IFrank00: has joined #RubyOnRails
[18:52:17] zack6849: full log: http://hastebin.com/wagesewehi.vbs
[18:52:21] zack6849: well, close to full, that is
[18:52:33] zack6849: if necessary i can post my routes.rb
[18:52:36] jenrzzz: has joined #RubyOnRails
[18:52:56] tubbo: zack6849: hah, i wonder why the extension is .vbs
[18:53:00] weaksauce: zack6849 read up on the asset pipeline.
[18:53:13] zack6849: i think that hastebin just interprets all console stuff as vbs
[18:53:18] tubbo: back in the day that used to mean "vbscript" :D
[18:53:21] zack6849: java stack traces are also flagged as vbs
[18:53:25] zack6849: i'm not really sure why
[18:53:43] nzst: ACTION shudders at the rememberance of visual basic
[18:54:23] zack6849: weaksauce, looking at it, i see the use, but i don't think that's applicable to my current setup?
[18:54:24] tubbo: zack6849: you need to precompile your assets. that rake command that i showed you has to be run *on* the production server.
[18:54:42] tubbo: zack6849: ok so let's start debugging. where are your asset files located?
[18:54:45] zack6849: it wrote two files, one js and one css.
[18:54:52] tubbo: zack6849: !gist your application.js and application.css
[18:54:52] helpa: zack6849: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:55:04] tubbo: zack6849: remember to use asset_path helpers because it doesn't seem you are actually fetching the right assets
[18:55:08] zack6849: i'm not gonna post *all* of my code, that'd be silly
[18:55:15] tubbo: zack6849: your asset files should look like /assets/application-2308432094808324093240932840938209432098432.js
[18:55:20] zack6849: but i am, it runs just dandy in development
[18:55:34] tubbo: zack6849: i said to gist your application.js and application.css, if you don't want to do that, then i really can't help you
[18:55:35] intuxicated: has joined #RubyOnRails
[18:55:39] zack6849: directory structure: https://www.zack6849.com/uploads/ZWU5YzlhNGQz.png
[18:55:40] weaksauce: zack6849 it doesn't serve up the precompiled assets in debug
[18:55:49] tubbo: just those two files would be helpful, nothing else is necessary
[18:56:14] rhizome: /uploads shouldn't be a part of the asset pipeline
[18:56:22] zack6849: That's part of my files.
[18:56:23] tubbo: zack6849: that dir structure looks good to me. how are you calling it? = javascript_include_tag 'application' right?
[18:56:32] zack6849: i'm not even calling that
[18:56:38] zack6849: *none* of my assets load
[18:56:41] zack6849: css, images, etc
[18:56:47] tubbo: rhizome: it's /public/uploads, not /public/assets/uploads. threw me for a loop too :)
[18:56:51] zack6849: stock css as well, no preprocessors
[18:57:09] zack6849: Ah yeah, sorry for not clarifying on that.
[18:57:22] tubbo: zack6849: app/assets/stylesheets/uploader.scss would disagree with you :P
[18:57:31] tubbo: if you name it .scss it doesn't matter what you put in the file, it's getting precompiled.
[18:57:34] tubbo: err, preprocessed*
[18:57:36] sypheren: has joined #RubyOnRails
[18:57:40] zack6849: considering that was autogenerated and is literally blank
[18:57:43] zack6849: i beg to differ :D
[18:57:59] zack6849: (well, blank aside from comments.)
[18:58:12] tubbo: zack6849: you're missing the point...rails doesn't know or care what's in there, if it finds .scss it runs that blank/commented/generated/whatever file through the sass preprocessor.
[18:58:38] zack6849: right, but that's besides the point, at least i think, you saw the error, yes?
[18:58:51] zack6849: it's looking like it's trying to load my js files as pages
[18:58:56] zack6849: and then failing and returning 404
[18:58:58] tubbo: zack6849: !gist however you include the application.js and application.css into your codebase.
[18:58:58] helpa: zack6849: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:59:02] rhizome: zack6849: that's what your directories look like in development?
[18:59:07] tubbo: zack6849: like, the application.html.erb file for example
[18:59:11] bklane: has joined #RubyOnRails
[18:59:21] zack6849: all i do to switch from development to production is click a button in intellij
[18:59:24] werelivinginthef: has joined #RubyOnRails
[18:59:25] tubbo: i think your issue is how you're calling it (like if you're just doing a bare <script src="..."> tag that's not going to work)
[18:59:26] zack6849: i'm not touching the files at all
[18:59:57] zack6849: tubbo, here's my application.html.erb https://www.zack6849.com/uploads/MDgwOTY3ZTUz.txt
[19:00:11] surrealanalysis: has joined #RubyOnRails
[19:00:36] zack6849: am i including my css files wrong? i'm confused
[19:00:37] tubbo: so now we have to figure out why your production env is not appending the proper cache-buster hashes on the end of each file
[19:01:04] tubbo: zack6849: however, i would highly recommend keeping all styles and JS files inside the asset pipeline and using your manifests to require them in.
[19:01:08] tubbo: zack6849: !assets
[19:01:08] helpa: zack6849: http://guides.rubyonrails.org/asset_pipeline.html - The Asset Pipeline Guide by Ryan Bigg, Richard Hulse & Mohammad Typaldos
[19:01:18] tubbo: ^ that will give you more info on how the asset pipeline works if/when you need it
[19:01:42] zack6849: tubbo, even if they're not something i need to be compiled? (ie bootstrap and standard css?)
[19:01:55] zack6849: also, the files inside of the assets folder *are* having the hashes appended
[19:02:11] zack6849: https://www.zack6849.com/uploads/OTg0OTRjMThl.png
[19:02:11] weaksauce: zack6849 the reason for the asset pipeline is to compile things and then serve them once from that one file.
[19:02:25] zack6849: so it does one, compile them all into one file?
[19:02:28] weaksauce: basically it just concatenates everything into one file
[19:02:38] zack6849: i'll try that and see if it works i suppose.
[19:02:43] tubbo: zack6849: i am not sure that is true... "ActionController::RoutingError (No route matches [GET] "/javascripts/application.js"):", that should say /javascripts/application-2309409234093240923094.js in prod, right?
[19:03:10] weaksauce: sending one file is less latency than sending a bunch of small requests and then after the initial load they get served from the cache
[19:03:17] zack6849: wrong copypaste
[19:03:18] zack6849: ActionController::RoutingError (No route matches [GET] "/assets/application-de263cb0b9ed1b2c6e56cf8f36fd1343e239eaf144bd34e177c6662f53e61b6c.js"):
[19:03:26] tubbo: zack6849: oh cool
[19:03:37] zack6849: full trace: https://www.zack6849.com/uploads/OGY5MGZhNzJk.txt
[19:03:50] weaksauce: and you need to serve static assets from nginx or apache typically.
[19:04:00] tubbo: zack6849: ohhh i know what's wrong
[19:04:22] tubbo: zack6849: in production, serve_static_assets is turned off. rails isn't looking in /public at all because it assumes you're running rails behind an http server like nginx or apache.
[19:04:32] zack6849: booooooooooooooooooooooo
[19:04:34] tubbo: zack6849: this is by default and by design.
[19:04:36] zack6849: where can i change that/
[19:04:56] tubbo: zack6849: why are you running your rails app in production on your local machine?
[19:05:01] zack6849: ah, found it
[19:05:06] zack6849: cause i'm testing it, iunno
[19:05:17] tubbo: zack6849: there's most likely an easier way to do what you're doing that's less error-prone.
[19:05:48] a346: has joined #RubyOnRails
[19:06:03] tubbo: zack6849: there are very few reasons to run prod locally, you should only need to if you have to debug problems such as this actually :D
[19:06:19] tubbo: like, a configuration in prod broke something that you can't reproduce in dev
[19:06:35] tubbo: but also, most professional shops have staging servers with identical prod-level configuration so you won't have to run it locally
[19:07:40] pullphinger: has joined #RubyOnRails
[19:08:06] pullphinger: has joined #RubyOnRails
[19:08:46] nya: has joined #RubyOnRails
[19:08:53] loc22: has joined #RubyOnRails
[19:09:48] soule: has joined #RubyOnRails
[19:10:44] loc22: Hi guys! Is there anyone using Phusion Passanger 5 (Raptor) on Heroku?
[19:12:24] jmaya: has joined #RubyOnRails
[19:12:51] DEA7TH_: has joined #RubyOnRails
[19:13:25] jottr_: has joined #RubyOnRails
[19:13:46] ariedler: has joined #RubyOnRails
[19:16:05] Aswebb_: has joined #RubyOnRails
[19:16:24] Lightsword: has joined #RubyOnRails
[19:16:57] netzfisch: has joined #RubyOnRails
[19:16:59] bklane: has joined #RubyOnRails
[19:19:10] SteenJobs: has joined #RubyOnRails
[19:19:13] RandyT: has joined #RubyOnRails
[19:20:24] ledestin: has joined #RubyOnRails
[19:21:41] giowong: how do i specify a path if i need to test a script on a test server
[19:22:12] werelivinginthef: has joined #RubyOnRails
[19:22:57] TheShaun: has joined #RubyOnRails
[19:25:46] Hates_: has joined #RubyOnRails
[19:26:19] pothibo: has joined #RubyOnRails
[19:27:03] iamse7en: has joined #RubyOnRails
[19:27:41] jwaldrip: has joined #RubyOnRails
[19:28:00] lethjakman: has joined #RubyOnRails
[19:29:05] allcentury: has joined #RubyOnRails
[19:29:45] bklane: has joined #RubyOnRails
[19:29:48] zack6849: tubbo, that did in fact fix it, thanks :P
[19:30:07] arup_: has joined #RubyOnRails
[19:30:11] skroon: anyone here using Doorkeeper as an authorization server? I'm wondering if 'doorkeeper_authorize!' can only be used on a Doorkeeper server, or is ment to be on a client connecting/authorizing against a remove doorkeeper server?
[19:30:16] zack6849: i suppose in general though it's nice to know how to fix that should i ever need to run production without a frontend server
[19:32:31] arup_: has joined #RubyOnRails
[19:32:58] garrypolley: has joined #RubyOnRails
[19:35:22] reptilain_brain: has joined #RubyOnRails
[19:36:07] kazenjizo: has joined #RubyOnRails
[19:36:20] reptilain_brain: hey guys is it ok for Rails app to have some 20 Puma ???cluster workers??? and about same number of idle postgres connections to just hang there (in ???top???)?
[19:36:47] rikkipitt: has joined #RubyOnRails
[19:37:02] eminencehc_: has joined #RubyOnRails
[19:37:03] bin_005_i: has joined #RubyOnRails
[19:37:13] centrx: reptilain_brain, It's "okay"...
[19:37:41] reptilain_brain: but is is it indicative of some memory / postgres leak ?
[19:39:17] jkamenik: has joined #RubyOnRails
[19:39:34] haltEnigma: has joined #RubyOnRails
[19:39:38] broman_: has joined #RubyOnRails
[19:40:08] haltEnigma: has joined #RubyOnRails
[19:40:54] haltEnigma: does any one know why i'm getting this ERROR: While executing gem ... (Errno::EPERM)
[19:40:54] haltEnigma: Operation not permitted - /Users/kevingiraldo/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/railties-3.1.3/CHANGELOG.md ?
[19:40:57] bklane: has joined #RubyOnRails
[19:41:13] haltEnigma: I'm trying to install rails 3.1.3
[19:41:13] zack6849: do you have write permission to that file?
[19:41:21] RandyT: has joined #RubyOnRails
[19:41:46] nettoweb: has joined #RubyOnRails
[19:43:44] netzfisch: has joined #RubyOnRails
[19:44:03] reptilain_brain: centrx, but are those stale puma / postgres processes indicative of some memory / postgres leak ?
[19:44:35] Aswebb__: has joined #RubyOnRails
[19:45:02] tubbo: reptilain_brain: how many workers have you configured puma to use?
[19:45:24] tubbo: reptilain_brain: i think each one of those workers has a number of threads attached to it
[19:45:34] tubbo: so if you have 10 threads per worker, 20 seems right
[19:46:04] edwinvdgraaf: has joined #RubyOnRails
[19:46:05] reptilain_brain: tubbo, so these ???cluster??? workers are therads?
[19:46:11] tubbo: the same number of idle PG connections seems legit as well since each server needs its own persistent connection to postgresql. though i think it uses a `pool:` configuration in YAML to tell postgresql how many workers it needs to spawn as well.
[19:46:39] reptilain_brain: tubbo, gotcha - makes sense thank you
[19:46:51] reptilain_brain: tubbo, I have posted this on StackOverflow http://stackoverflow.com/questions/31387301/is-it-normal-for-rails-application-to-keep-so-many-idle-puma-and-postgres-connec
[19:47:01] tubbo: reptilain_brain: it's actually easy to see if you're on linux, type `ps -faux` and see if your worker procs have a parent.
[19:47:03] TheShaun: has joined #RubyOnRails
[19:47:14] reptilain_brain: tubbo, please feel free to copy-paste answer there if you care for those internet points
[19:47:46] reptilain_brain: StackOverflow is not like it used to be.. only upvotes but no answers for hours
[19:47:58] Grundell: has joined #RubyOnRails
[19:48:07] edwinvdgraaf: has joined #RubyOnRails
[19:49:20] n008f4g_: has joined #RubyOnRails
[19:49:39] vlad_starkov: has joined #RubyOnRails
[19:50:09] vlad_starkov: Question: point me to some good article about using ActiveRecord outside Rails. Thanks.
[19:50:39] garrypolley: has joined #RubyOnRails
[19:50:50] reptilain_brain: tubbo, while we are at it - is it better to have many workers with fewer threads or fewer workers with many threads? I have single core processor
[19:51:30] arBmind: has joined #RubyOnRails
[19:52:15] dopie: has joined #RubyOnRails
[19:52:20] Jarboe: has joined #RubyOnRails
[19:52:45] IFrank00: has joined #RubyOnRails
[19:54:15] tubbo: vlad_starkov: not sure if anyone took your question, but just wanted to comment that it wasn't a question :D
[19:54:40] tubbo: vlad_starkov: when i've had to do that, i found http://recipes.sinatrarb.com/p/models/active_record was a helpful start
[19:54:46] tubbo: even if you're not using sinatra
[19:55:03] vlad_starkov: tubbo: Thanks :-)
[19:55:05] tubbo: it's pretty easy though, you just need to ActiveRecord::Base.establish_connection :)
[19:55:17] jkamenik: has joined #RubyOnRails
[19:55:25] haltEnigma: has joined #RubyOnRails
[19:55:26] bungoman: has joined #RubyOnRails
[19:55:36] tubbo: also, i think if the rake tasks are included (you may have to manually include them) AR will even run migrations in db/migrate for you.
[19:55:46] vlad_starkov: tubbo: What I'm really looking for is rake tasks for ActiveRecord
[19:55:59] bklane: has joined #RubyOnRails
[19:56:12] tubbo: vlad_starkov: can you maybe describe the problem you're having in a bit more detail? you might be unaware of a more complete solution.
[19:56:31] vlad_starkov: tubbo: I copied https://github.com/rails/rails/blob/master/activerecord/lib/active_record/tasks/database_tasks.rb to Rakefile
[19:56:54] nfk: has joined #RubyOnRails
[19:56:55] tenderlove: has joined #RubyOnRails
[19:57:05] vlad_starkov: tubbo: and then when I run rake -T I got this: rake aborted! NameError: uninitialized constant ActiveRecord::Tasks::MySQLDatabaseTasks
[19:57:09] alphaatom: has joined #RubyOnRails
[19:57:40] tubbo: yeah you'll probably need to pull in ActiveRecord::Tasks::MySQLDatabaseTasks, ActiveRecord::Tasks::PostgreSQLDatabaseTasks and ActiveRecord::Tasks::SQLiteDatabaseTasks too
[19:58:05] tubbo: vlad_starkov: also since Rakefiles are also Ruby, you can require 'active_record/tasks/database_tasks' and just `include ActiveRecord::Tasks::DatabaseTasks` i'm pretty sure...
[19:58:28] tubbo: since the top level of a Rakefile also includes the Rake DSL (allowing you to just do things like `task` from the top-level of the file), i think that will work.
[19:58:52] tubbo: but i'm *pretty* sure just including a file from AR in your Rakefile is going to bring in all the tasks you need.
[19:58:52] vlad_starkov: tubbo: Thanks I'll try this out
[19:58:52] loc22: Hava any of you have tried http://gwan.ch before?
[19:59:10] SteenJobs: has joined #RubyOnRails
[19:59:20] tubbo: loc22: the jamaican MC's server of choice (GWON!)
[19:59:34] baweaver: has joined #RubyOnRails
[19:59:37] seank_: has joined #RubyOnRails
[19:59:51] RandyT: has joined #RubyOnRails
[19:59:54] loc22: tubbo: Did you ever tried it?
[20:00:16] tubbo: loc22: nope. is it supposed to be a replacement for nginx/apache?
[20:00:50] loc22: tubbo: Yes, the benchmarks looks amazing, but havent tried it ye
[20:01:01] gnagno: has joined #RubyOnRails
[20:01:34] loc22: tubbo: Which ruby web server do you normally use? Puma, unicorn or passanger?
[20:02:00] mhib: has joined #RubyOnRails
[20:02:01] tubbo: loc22: i use puma on my own projects, typically. here at work i think we use passenger but we're moving to unicorn.
[20:02:42] bonhoeffer: has joined #RubyOnRails
[20:03:42] tubbo: loc22: just so you know, you can try out g-wan without much effort. let us know how it works!
[20:04:05] bklane: has joined #RubyOnRails
[20:04:07] tubbo: loc22: it's just the webserver part of the stack, so all you have to do is tell it to proxy_pass from whatever ruby app server you're using.
[20:04:13] loc22: tubbo: Nice. I have done some research and looks like passanger 5 (raptor) looks pretty good. Im dealing with high response time with Heroku and trying to fix it.
[20:04:17] tubbo: but i don't think changing out the web server is going to affect performance too much
[20:04:22] loc22: Will try it and let you know ;)
[20:04:25] tubbo: loc22: "high response time"...where?
[20:04:28] eggoez: has joined #RubyOnRails
[20:04:38] tubbo: loc22: what part of the response cycle does it seem to bottleneck at?
[20:04:46] DoubleMalt: has joined #RubyOnRails
[20:05:23] loc22: I have a couple of bottlenecks, but generating json looks like one
[20:05:46] loc22: Im using jbuilder
[20:06:01] tubbo: loc22: well unless any of those bottlenecks are occurring in the nginx part of your response, then changing out the web server won't fix anything
[20:06:10] tubbo: loc22: ahhh, jbuilder is known for being a pain sometimes
[20:06:46] tubbo: loc22: problem is it does have caching, but you have to enable it explicitly where you want the data to be cached. here's an issue that might help you out https://github.com/rails/jbuilder/issues/45
[20:06:55] tubbo: you should also be caching if you aren't already
[20:07:08] tubbo: and i'm sure you're using New Relic or some other kind of RPM? if not, do it!
[20:07:30] loc22: Thanks! Yes, Im using New Relic
[20:08:07] loc22: I have changed some of the methods that answer json, and stop using jbuilder, and I started getting better response times
[20:08:32] baweaver: has joined #RubyOnRails
[20:08:59] tubbo: loc22: i was never a huge fan of jbuilder. one issue is that it forces you to define the structure of your json explictly. instead of providing some kind of abstraction between the actual hash of json data and the information populating the json
[20:09:07] kazenjizo: has joined #RubyOnRails
[20:09:28] tubbo: it's basically builder (for XML) in JSON format. i'm pretty sure it was designed because basecamp needed to port a lot of xml builder code into json and they didn't feel like re-doing how their API worked
[20:09:38] JakFrist: has joined #RubyOnRails
[20:09:44] tubbo: but it's not part of rails core because most people use active_model_serializers or just `render json:` directly out of the controller.
[20:09:46] loc22: Yes, that make sense
[20:10:17] loc22: Yes, I changed to use 'render json:' and get better results
[20:10:24] tubbo: i always recommend AMS due to its upcoming JSON-API support. supporting this new standard for APIs has a lot of benefits, and you just have to flip a flag on AMS to get it working.
[20:10:35] loc22: I also think that Im dealing with n+1 queries
[20:11:38] imuglyandimproud: has joined #RubyOnRails
[20:11:54] tubbo: you might be
[20:11:59] tubbo: install Brakeman to get a good view into that
[20:12:11] imuglyandimproud: hey all, how do I go about removing table, model, and migration prefix from rails engines?
[20:12:15] bklane: has joined #RubyOnRails
[20:12:15] tubbo: though i *thought* new_relic and codeclimate both run brakeman on your code
[20:12:17] iamse7en: has joined #RubyOnRails
[20:12:37] tubbo: imuglyandimproud: not sure what you mean
[20:13:00] tubbo: imuglyandimproud: i'm not entirely sure you can remove the table prefixes...it helps prevent collisions of data between a gem and an app
[20:13:21] loc22: The problem is that some of the main methods have complicated queries and looks like there is no way to make them simpler. But I will continue trying :)
[20:13:31] ndrei: has joined #RubyOnRails
[20:13:33] jkamenik: has joined #RubyOnRails
[20:13:35] imuglyandimproud: tubbo I make an engine named Example. Whenever I create models, they are prepended with example_ which I would not like as the engine has tables that will never conflict
[20:14:14] jottr_: has joined #RubyOnRails
[20:14:22] ValicekB: has joined #RubyOnRails
[20:15:52] werelivinginthef: has joined #RubyOnRails
[20:15:58] ur5us: has joined #RubyOnRails
[20:17:35] rhizome: famous last words
[20:17:57] vlad_starkov: tubbo: The right answer was https://github.com/rosenfeld/active_record_migrations
[20:18:12] Lightsword: has joined #RubyOnRails
[20:18:13] vlad_starkov: rhizome: Hi there!)
[20:18:58] _djbkd: has joined #RubyOnRails
[20:19:29] _djbkd: has joined #RubyOnRails
[20:21:01] doodlehaus: has joined #RubyOnRails
[20:21:18] rhizome: hey hows it going
[20:22:50] reptilain_brain: has left #RubyOnRails: ()
[20:23:01] netzfisch: has joined #RubyOnRails
[20:23:25] Maletor: has joined #RubyOnRails
[20:23:50] Davedo: has joined #RubyOnRails
[20:26:15] x-light: has joined #RubyOnRails
[20:26:52] moeabdol: has joined #RubyOnRails
[20:28:41] Maletor: has joined #RubyOnRails
[20:29:24] jkamenik: has joined #RubyOnRails
[20:29:34] suffice: has joined #RubyOnRails
[20:31:27] clintb: has joined #RubyOnRails
[20:31:44] dopie: has joined #RubyOnRails
[20:31:56] gnagno: has joined #RubyOnRails
[20:32:08] gnagno: hello all
[20:32:09] Papierkorb: has joined #RubyOnRails
[20:33:51] tenderlove: has joined #RubyOnRails
[20:34:29] giowong: has joined #RubyOnRails
[20:35:36] JakFrist: has joined #RubyOnRails
[20:39:16] creature: has joined #RubyOnRails
[20:41:05] bronson: has joined #RubyOnRails
[20:41:25] leonardoajim: has joined #RubyOnRails
[20:43:26] Lightsword: has joined #RubyOnRails
[20:43:46] charliesome: has joined #RubyOnRails
[20:44:42] eminencehc_: has joined #RubyOnRails
[20:45:59] noodman: has joined #RubyOnRails
[20:46:05] VeryBewitching: has joined #RubyOnRails
[20:47:40] baweaver: has joined #RubyOnRails
[20:48:10] creature: has joined #RubyOnRails
[20:48:52] Coldblackice: has joined #RubyOnRails
[20:50:55] MrPunkin: has joined #RubyOnRails
[20:52:12] Detch: has joined #RubyOnRails
[20:52:43] IFrank00: has joined #RubyOnRails
[20:55:58] ndrei: has joined #RubyOnRails
[20:59:56] Lightsword_: has joined #RubyOnRails
[21:00:37] Lightsword__: has joined #RubyOnRails
[21:01:12] wasp__: has joined #RubyOnRails
[21:02:06] bungoman: has joined #RubyOnRails
[21:04:40] bob14: has joined #RubyOnRails
[21:04:50] riotjones: has joined #RubyOnRails
[21:05:56] jmaya: has joined #RubyOnRails
[21:06:43] werelivinginthef: has joined #RubyOnRails
[21:07:00] FernandoBasso: has joined #RubyOnRails
[21:08:56] hololeap: has joined #RubyOnRails
[21:10:11] Lightsword_: has joined #RubyOnRails
[21:12:37] LJT: has joined #RubyOnRails
[21:13:16] tubbo: false. the correct answer is always to re-implement it in ASM.
[21:13:23] MrPunkin: has left #RubyOnRails: ()
[21:13:54] nfk: has joined #RubyOnRails
[21:14:32] r_baron: has joined #RubyOnRails
[21:16:10] adavia: why i get No route matches [DELETE] "/likes" when i do likes_path(micropost_id: micropost.id)
[21:16:27] tenderlove: has joined #RubyOnRails
[21:16:29] raenk: has joined #RubyOnRails
[21:16:45] lethjakman: has joined #RubyOnRails
[21:17:00] tubbo: adavia: you're gonna have to give a little more info than that
[21:17:05] jonathanwallace: has joined #RubyOnRails
[21:17:25] tubbo: i don't know if resources :likes was even defined in config/routes.rb
[21:17:49] chipotle: has joined #RubyOnRails
[21:17:50] tubbo: let alone whether likes_path(micropost_id: micropost.id) is even real code or pseudocode, it could be likes_path(some_method_that_actually_returns_nil) for all i know
[21:18:22] charliesome_: has joined #RubyOnRails
[21:18:33] adavia: tubbo: https://gist.github.com/adavia/c24b032f4aee7aad2450
[21:18:58] bungoman: has joined #RubyOnRails
[21:19:56] smathy: adavia, paste the entire text of the error you're getting.
[21:20:08] Axsuul: has joined #RubyOnRails
[21:20:24] tubbo: adavia: also, is micropost.id nil?
[21:20:27] solars: has joined #RubyOnRails
[21:20:55] Axsuul: has joined #RubyOnRails
[21:21:07] adavia: smathy: https://gist.github.com/adavia/c24b032f4aee7aad2450
[21:21:11] adavia: tubbo: no
[21:22:13] tubbo: adavia: probably unrelated, but what's the point of `@micropost = Micropost.find(params[:micropost_id])`? you already do `@like = @user.likes.find_by_micropost_id(params[:micropost_id])`
[21:22:17] bronson: has joined #RubyOnRails
[21:22:24] tubbo: shouldn't that always return the same record?
[21:22:41] loc22: has joined #RubyOnRails
[21:22:42] smathy: adavia, likes_path is trying to construct the index path, but you have only: [:create, :destroy]
[21:22:58] paulcsmith: has joined #RubyOnRails
[21:23:11] smathy: adavia, you almost certainly meant like_path - but you also need to provide an `:id` for that.
[21:23:15] adavia: smathy: i tried likes_path(micropost_id: micropost.id)
[21:23:27] smathy: adavia, yes, I see that - you have that in your gist.
[21:23:43] ascarter: has joined #RubyOnRails
[21:23:53] smathy: The resource plural _path is for the index action.
[21:24:00] smathy: adavia, see the output of `rake routes`
[21:24:13] smathy: (for another resource)
[21:24:15] jottr_: has joined #RubyOnRails
[21:24:31] smathy: You'll see the plural `foos` path helper as the prefix for the index action.
[21:24:41] LJT: has joined #RubyOnRails
[21:24:54] adavia: smathy: so maybe would be better to renamed both actions?
[21:25:18] VeryBewitching: adavia: You should be using like_path instead of likes_path, as smathy said
[21:25:22] ascarter: has joined #RubyOnRails
[21:25:44] VeryBewitching: Unless you've specified your route to differ from the standard.
[21:25:52] VeryBewitching: Using :as or some such
[21:25:54] adavia: if i use like_path i get No route matches {:action=>"destroy", :controller=>"likes", :micropost_id=>68} missing required keys: [:id]
[21:26:01] smathy: adavia, I don't see why you'd want to rename your actions.
[21:26:13] smathy: adavia, right, because you're missing the required key :id
[21:26:14] VeryBewitching: adavia: Do: rake routes
[21:26:21] smathy: ACTION loves reading error messages back to people
[21:26:33] VeryBewitching: Do you like repeating yourself too smathy? :D
[21:26:44] smathy: I'm here aren't I? ;)
[21:26:54] VeryBewitching: Ah, true enough
[21:27:05] ruurd: has joined #RubyOnRails
[21:28:03] Scripore: has joined #RubyOnRails
[21:28:07] smathy: adavia, thing here is that rails routing and controller boilerplate is designed to create singular paths like the delete path using the id of the resource in question.
[21:28:19] smathy: ...so here that would be the like instance, not the micropost instance.
[21:28:33] adavia: smathy: so the problem is with micropost_id
[21:28:35] smathy: adavia, why aren't you creating a `micropost_path( micropost )` ?
[21:28:51] VeryBewitching: adavia: I suggest you read http://guides.rubyonrails.org/routing.html thoroughly
[21:28:51] allcentury: has joined #RubyOnRails
[21:28:53] smathy: ...or why not use the `like.id` here?
[21:29:20] smathy: adavia, VeryBewitching is right, the problem here is your general misunderstanding of how to wire this together.
[21:29:35] smathy: adavia, have you read that guide ?
[21:30:16] Mr_Grim: has joined #RubyOnRails
[21:30:19] adavia: not completely. I get quiet lost when it comes to route associations
[21:30:33] zorak8: has joined #RubyOnRails
[21:30:44] Mr_Grim: is there a chanel dedicated on freenode to all web technologies? i cant figure out what to use for my next project
[21:31:01] Mr_Grim: i need recommendations, rails might be it, might not be it
[21:31:16] yfeldblum: has joined #RubyOnRails
[21:31:17] Mr_Grim: i dont want to start debates or flaming in a dedicated chanel
[21:31:27] Zackio: has joined #RubyOnRails
[21:32:18] w09x: has joined #RubyOnRails
[21:34:03] bricker: Mr_Grim: I think this is a fine channel for it, it has the most active users
[21:34:06] febuiles: has joined #RubyOnRails
[21:34:09] RegulationD: has joined #RubyOnRails
[21:34:10] bricker: and nobody cares if you talk about non-rails stuff
[21:34:16] bricker: also nobody cares if you choose something besides rails
[21:35:23] febuiles: Hello, is there a backport of the `or` AR method for Rails 4? (for ActiveRecord, not ARel)
[21:35:51] jokke: has joined #RubyOnRails
[21:35:57] tubbo: febuiles: "backport"? first of all, Rails 4 is the current major version, so you can't backport anything. second of all, i'm pretty sure or() exists in Rails 4.
[21:36:08] febuiles: tubbo: I'm talking about (introduced here: https://github.com/rails/rails/commit/9e42cf019f2417473e7dcbfcb885709fa2709f89)
[21:36:16] tubbo: Mr_Grim: what are you looking to make?
[21:36:16] Lightsword: has joined #RubyOnRails
[21:36:19] baweaver: has joined #RubyOnRails
[21:36:50] febuiles: Rails 4 has the or operator if you're working inside arel_table, is there an equivalent for AR queries?
[21:37:04] bonhoeffer: has joined #RubyOnRails
[21:37:33] bricker: febuiles: you mean you want "or" in Rails 3? You can use Arel for that, it's not very difficult.
[21:37:47] tubbo: febuiles: i know what you're talking about, have you actually tried or() in Rails 4?
[21:37:52] ascarter: has joined #RubyOnRails
[21:37:54] rickmasta: has joined #RubyOnRails
[21:38:28] frankson: has joined #RubyOnRails
[21:38:57] febuiles: bricker tubbo: https://gist.github.com/f7be342286a9227ad3d8 -- what am I missing here
[21:39:15] tubbo: febuiles: wrong syntax
[21:39:28] tubbo: User.where(name: "Foo").or(name: "bar") is the right syntax
[21:40:12] tubbo: febuiles: !gist your code immediately for faster responses in the future :) if we had seen that code at the start, we could have solved your issue in about 30 seconds :)
[21:40:12] helpa: febuiles: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[21:40:55] smathy: tubbo, you've gone batty, Rails 4 doesn't have .or
[21:41:12] febuiles: tubbo: nope, NoMethodError
[21:41:20] smathy: febuiles, no, it hasn't been back-ported.
[21:41:59] febuiles: smathy: I see, thanks :(
[21:43:05] bricker: febuiles: just use Arel... it's not hard!
[21:43:13] GnuYawk: has joined #RubyOnRails
[21:43:22] tubbo: pretty sure it did
[21:43:25] tubbo: wtf rails 4
[21:43:36] bricker: User.where(User.arel_table[:name].eq("Foo").or(User.arel_table[:name].eq("bar"))
[21:43:39] bricker: febuiles: ^
[21:44:21] bricker: the active record query interface is annoyingly restrictive
[21:44:22] febuiles: bricker: I can't use the arel_table since the param to the or is a SQL query, but I'll see if I can port the `or` :)
[21:45:04] edwinvdgraaf: has joined #RubyOnRails
[21:45:52] Lightsword_: has joined #RubyOnRails
[21:46:34] bricker: febuiles: wrap your string in Arel::Nodes::SqlLiteral.new()
[21:46:50] bklane: has joined #RubyOnRails
[21:46:51] bricker: User.where(User.arel_table[:name].eq("Foo").or(Arel::Nodes::SqlLiteral.new("users.name = 'bar'")))
[21:47:49] febuiles: bricker: will try that, thank you!
[21:50:10] smathy: Heh, so much better than just adding an OR string in :)
[21:51:10] cornerma1: has joined #RubyOnRails
[21:52:30] darrencauthon: has joined #RubyOnRails
[21:53:33] eggoez: has joined #RubyOnRails
[21:53:58] duderonomy: has joined #RubyOnRails
[21:54:56] ararog: has joined #RubyOnRails
[21:55:55] baweaver: has joined #RubyOnRails
[21:56:01] wasp__: has joined #RubyOnRails
[22:00:14] lucha: has joined #RubyOnRails
[22:00:21] ruurd_: has joined #RubyOnRails
[22:00:29] Mr_Grim: bricker im either going to for Rails or some python framework
[22:00:39] seank_: has joined #RubyOnRails
[22:00:45] Mr_Grim: im implementing some quants for financial trading
[22:00:51] arooni-mobile: has joined #RubyOnRails
[22:00:51] Mr_Grim: im building my own alert service
[22:00:58] arooni-mobile__: has joined #RubyOnRails
[22:01:20] Mr_Grim: i already know some ruby but poeple seem to prefer python for finance
[22:01:31] Mr_Grim: and there is ASP .NET MVC with C# and F#
[22:02:35] ruurd: has joined #RubyOnRails
[22:03:12] ruurd: has joined #RubyOnRails
[22:06:19] Casty: has joined #RubyOnRails
[22:06:29] edwinvdgraaf: has joined #RubyOnRails
[22:06:43] ruurd_: has joined #RubyOnRails
[22:07:16] VeryBewitching: has joined #RubyOnRails
[22:07:36] JoshL_: has joined #RubyOnRails
[22:07:55] ruurd: has joined #RubyOnRails
[22:09:02] bungoman: has joined #RubyOnRails
[22:09:04] victortyau: has joined #RubyOnRails
[22:09:45] weaksauce: Mr_Grim how fast are you looking to do? python has some really nice numerical computing libs. c# is a great language by itself but a little verbose.
[22:09:59] weaksauce: real time trading in ruby is a nonstarter
[22:10:14] Scripore: has joined #RubyOnRails
[22:10:59] ProLoser: has joined #RubyOnRails
[22:11:54] DEA7TH_: has joined #RubyOnRails
[22:11:59] weaksauce: ruby is a great language for programmer happiness but not a great one for speed usually.
[22:13:18] Papierkorb: Which is weird I think. V8 and Python are proof enough (for me) that it's the fault of the VMs
[22:13:55] Papierkorb: But no one really cares? I mean "oh, just add another three servers".
[22:14:36] duderonomy: has joined #RubyOnRails
[22:14:56] ascarter: has joined #RubyOnRails
[22:15:26] bricker: Papierkorb: more servers doesn't make ruby faster
[22:15:50] Papierkorb: it makes the service faster towards the user, nothing else
[22:16:11] bricker: Papierkorb: performance wasn't a big concern for the ruby team until only about 5 years ago when they started paying attention, and it's gotten much better since then but still has a ways to go
[22:16:17] bklane: has joined #RubyOnRails
[22:16:39] ascarter: has joined #RubyOnRails
[22:16:47] Lightsword: has joined #RubyOnRails
[22:19:15] smoak: has left #RubyOnRails: ("WeeChat 1.2")
[22:19:58] edwinvdgraaf: has joined #RubyOnRails
[22:20:24] bricker: Papierkorb: ehhhhh...... that's a naive way to think about scaling but I am not in the mood to talk about it
[22:20:29] weaksauce: how much slower is it than python in general? not including the specialty built c extensions to python.
[22:20:58] chintanparikh: has joined #RubyOnRails
[22:23:16] charliesome: has joined #RubyOnRails
[22:23:27] loc22: has joined #RubyOnRails
[22:23:33] wasp__: has joined #RubyOnRails
[22:23:45] eminencehc_: has joined #RubyOnRails
[22:24:19] triangles2: has joined #RubyOnRails
[22:24:43] SteenJobs: has joined #RubyOnRails
[22:24:58] DoctorMonocular: has joined #RubyOnRails
[22:29:30] xkickflip: has joined #RubyOnRails
[22:29:43] bklane: has joined #RubyOnRails
[22:31:06] bricker: weaksauce: I never benchmarked it but I would say "noticeably"
[22:31:33] xkickflip: has joined #RubyOnRails
[22:31:48] bricker: weaksauce: between a Django website and a comparable Rails website, the Django one was faster
[22:32:10] bricker: that's the only "benchmark" I have though
[22:32:31] lethjakman: has joined #RubyOnRails
[22:34:47] maknz: has joined #RubyOnRails
[22:34:53] duderonomy: has joined #RubyOnRails
[22:36:47] kies^: has joined #RubyOnRails
[22:37:51] ndrei: has joined #RubyOnRails
[22:37:52] bklane: has joined #RubyOnRails
[22:38:42] GPrime: has joined #RubyOnRails
[22:39:21] GPrime: is there a way to instantiate a ruby object in erb from a javascript variable?
[22:39:55] Papierkorb: GPrime: Could you elaborate on what you mean with "from a javascript value"?
[22:40:01] GPrime: I have var two = 2; , and I'd like to have something like <% rubyTwo = two %>
[22:40:20] GPrime: and <%= rubyTwo %> would produce 2
[22:40:43] ciree: GPrime: is the javascript variable coming from the user?
[22:41:01] GPrime: ciree, nope its not
[22:41:06] Papierkorb: GPrime: You'd need to somehow ship the variables value to the server side (And this is a great moment to think about verifying user input btw)
[22:41:17] ciree: then why do you need it to be a javascript variable?
[22:41:23] yashinbasement: has joined #RubyOnRails
[22:42:50] grimly: has joined #RubyOnRails
[22:42:58] GPrime: Actually yes, the javascript variable is coming from the variable. ciree
[22:43:26] ciree: like, the user submits a form/ajax call?
[22:43:28] GPrime: We are want to take a marker selected by the user on a google map, and save the information from the marker
[22:43:41] ciree: okay, now we're talking
[22:43:57] ciree: its just going to be numbers correct? not anything else?
[22:44:04] fluxsource: GPrime: generally speaking, no it's not - all the ERB has been run before the JS is even sent to the browser
[22:44:24] ciree: and what do you want to do with rubyTwo from your example?
[22:44:27] codeshah: has joined #RubyOnRails
[22:45:43] bklane: has joined #RubyOnRails
[22:45:54] GPrime: we want to take the new ruby object and create a WaterFountain which takes a number for its constructor
[22:46:13] ciree: well, if they are submitting it to your server
[22:46:21] ciree: it will be available in the params object
[22:46:50] ciree: WaterFountain.create(params)
[22:47:04] duderonomy: has joined #RubyOnRails
[22:47:05] GPrime: i dont think that'll work in our case
[22:47:05] ciree: not sure why you mentioned erb
[22:47:18] ciree: I mean you want to persist to db
[22:47:38] ciree: so what is giving you doubts
[22:47:40] GPrime: but selecting a marker on the google map is all done in javascript
[22:47:57] ciree: so you need to take a look at the google maps api reference
[22:47:58] GPrime: so all the information is in javascript?
[22:48:03] ciree: and figure out how to get the information from the map
[22:48:10] ciree: then submit that data to your server
[22:48:23] GPrime: okay thanks, i'll get that a try
[22:48:29] GPrime: thanks :)
[22:48:32] ciree: always :)
[22:50:38] pixelhandler: has joined #RubyOnRails
[22:51:02] bruno-: has joined #RubyOnRails
[22:51:42] baweaver: has joined #RubyOnRails
[22:51:48] doodlehaus: has joined #RubyOnRails
[22:52:38] Oog: has joined #RubyOnRails
[22:53:08] Oog: RuntimeError (Circular dependency detected while autoloading constant Api::V1::CreditCardsController): https://gist.github.com/anonymous/393e710028f056223380 - only happened once. should i be worried or just freak accident?
[22:54:52] bricker: Oog: I would look into it
[22:54:55] Radar: GOOD MORNING
[22:55:05] Oog: what would cause it...
[22:55:06] Radar: Oog: KICK IT IN THE FACE
[22:55:15] Radar: Oog: Investigate only if it keeps happening imo
[22:55:19] Oog: i think what happened was i had to requests come in at basically the smae
[22:55:28] Oog: messed up ajax form
[22:55:49] Oog: in development and i have concurrency on
[22:56:16] arBmind1: has joined #RubyOnRails
[22:56:32] Guest6988: has joined #RubyOnRails
[22:59:18] bklane: has joined #RubyOnRails
[23:00:24] JeramyRR: has joined #RubyOnRails
[23:01:16] r_baron_: has joined #RubyOnRails
[23:02:01] bonhoeffer: has joined #RubyOnRails
[23:05:25] haroldofurtado: has joined #RubyOnRails
[23:05:26] mary5030: has joined #RubyOnRails
[23:05:39] nfk: has joined #RubyOnRails
[23:06:39] mikefulcher: has joined #RubyOnRails
[23:06:43] rushed: has joined #RubyOnRails
[23:07:57] bklane: has joined #RubyOnRails
[23:08:38] haroldofurtado: has joined #RubyOnRails
[23:09:07] haroldofurtado: has left #RubyOnRails: ()
[23:09:47] jhack: has joined #RubyOnRails
[23:09:48] jhack: has joined #RubyOnRails
[23:11:13] haroldofurtado: has joined #RubyOnRails
[23:11:41] grimly: has left #RubyOnRails: ()
[23:12:20] gambl0re: has joined #RubyOnRails
[23:12:41] SeanLazer: has joined #RubyOnRails
[23:13:05] dopie: I use delegate on belongs_to correct?
[23:13:46] Grundell: has joined #RubyOnRails
[23:14:59] ekain: has joined #RubyOnRails
[23:15:33] yashinbasement: has joined #RubyOnRails
[23:15:50] bungoman: has joined #RubyOnRails
[23:16:10] ndrei: has joined #RubyOnRails
[23:18:39] bonhoeffer: has joined #RubyOnRails
[23:18:44] bklane: has joined #RubyOnRails
[23:18:50] seank_: has joined #RubyOnRails
[23:19:30] Ropeney: has joined #RubyOnRails
[23:20:21] r_baron_: has left #RubyOnRails: ()
[23:21:50] IFrank00: has joined #RubyOnRails
[23:24:07] smathy: dopie, `delegate :foo, to: :bar` is basically just syntactic sugar for: def foo *args; bar.foo *args; end
[23:24:33] jkamenik: has joined #RubyOnRails
[23:24:49] dopie: smathy, ok so help me out here with this
[23:24:55] dopie: delegate :category, :to => :video, :prefix => :video
[23:25:17] smathy: Syntactic sugar for: def video_video *args; category.video *args; end
[23:25:17] dopie: i still have to list the .name
[23:25:18] dopie: = link_to item.video_category.name
[23:25:25] dopie: k hold on
[23:25:40] SteenJobs: hey guys, i???m trying to get an angularJS frontend to run locally with its rails backend, but i???m getting a CSRF error when i try and create a new user. what???s the best way to fix this for development?
[23:25:44] smathy: Sorry: def video_category *args; video.category *args; end
[23:26:32] rushed: has joined #RubyOnRails
[23:26:55] dopie: smathy how would i insert the .category in delegate?!
[23:27:26] bonhoeffer: hmm . . . such odd behavior: the entry_date is made nil on creation: JournalEntry.new({"entry_date"=>"10-23-2015", "user_id"=>1}) results in: <JournalEntry id: nil, entry_date: nil
[23:27:30] bonhoeffer: https://gist.github.com/tbbooher/0e2c7cd0777107f1db42
[23:27:40] Anakat: has joined #RubyOnRails
[23:27:41] bonhoeffer: it is definitely my validation
[23:27:41] smathy: SteenJobs, read the opening bit about JSON (and XML) requests: http://devdocs.io/rails/actioncontroller/requestforgeryprotection
[23:28:01] smathy: dopie, I have no idea what that question means.
[23:28:14] dopie: ok I think i got it
[23:29:17] smathy: bonhoeffer, run `Date.parse("10-23-2015")` in your console to see why.
[23:29:23] SteenJobs: smathy: i???ve seen/read that before. I assume that???s just a fix that must be removed when placed into production, and if someone forgets that could be a huge blunder.
[23:29:39] SteenJobs: smathy: so is there a safer way to allow angular/rails to play together during dev?
[23:29:50] smathy: SteenJobs, no, that's production code.
[23:29:52] Anakat_: has joined #RubyOnRails
[23:29:59] SteenJobs: smathy: word
[23:29:59] davidbitton: has joined #RubyOnRails
[23:30:16] Radar: bonhoeffer: Date.strptime("10-23-2015", "%m-%d-%Y")
[23:30:18] SteenJobs: smathy: how is that ok? isn???t the whole point of checking the token to not allow exceptions?
[23:30:26] bonhoeffer: smathy: that is definitely part of the problem
[23:30:29] bonhoeffer: hmm ??? comes from bootstrap datepicker
[23:30:35] SteenJobs: smathy: otherwise it wouldn???t require special permission
[23:30:51] bonhoeffer: ok ??? so validation was working perfectly
[23:30:59] bonhoeffer: thanks for the feedback
[23:33:03] viiralvx: has joined #RubyOnRails
[23:33:18] jhack: has joined #RubyOnRails
[23:33:19] SteenJobs: smathy: it works fine right now in production, just in development i hit this issue, and i just figure if you need to allow special persmission for the XML request, doesn???t that mean it doesn???t allow it by default for a reason?
[23:33:45] jhack: has joined #RubyOnRails
[23:34:19] xkickflip: has joined #RubyOnRails
[23:34:26] bonhoeffer: Radar: smathy: any way to make the update hash clean up the date automatically
[23:34:39] bonhoeffer: via a filter ??? i???m sure it is possible, but is that a good idea
[23:34:40] Radar: bonhoeffer: Pass it through as a multi-param string I think is the only way
[23:34:51] Radar: bonhoeffer: You could do it as a before_validates callback on the model too
[23:34:55] bonhoeffer: well, a before filter could clean it up
[23:35:03] Radar: I would do it on the model
[23:35:08] bonhoeffer: ok ??? i like that
[23:35:10] smathy: SteenJobs, cross domain / CORS protects you from CSRF in the JSON world. You can't make a browser send a POST request with application/json from a site outside of the allowed sites.
[23:35:15] superlou: has joined #RubyOnRails
[23:35:28] xkickflip: has joined #RubyOnRails
[23:35:34] smathy: bonhoeffer, there's a gem, something like american_dates
[23:35:57] bonhoeffer: would love a link, but i???ll poke around
[23:36:19] smathy: bonhoeffer, https://goo.gl/0Nv0R8
[23:36:35] SteenJobs: smathy: what if it???s an XML req?
[23:39:17] fighella: has joined #RubyOnRails
[23:39:22] bklane: has joined #RubyOnRails
[23:39:54] SteenJobs: smathy: nvrm, it didn???t work
[23:40:01] dc4: has joined #RubyOnRails
[23:40:47] smathy: SteenJobs, cool :) I'm not sure about XML, I'd guess it's the same, I think only text/* requests are vulnerable.
[23:40:56] baweaver: has joined #RubyOnRails
[23:41:04] SteenJobs: smathy: aright i???ll try a few things. (i said it did not work haha)
[23:41:42] smathy: Right, cool.
[23:42:03] SteenJobs: smathy: ah rails server is telling me the controller is processing it as html
[23:42:35] fighella: has joined #RubyOnRails
[23:42:51] eggoez: has joined #RubyOnRails
[23:44:05] TheNet: has joined #RubyOnRails
[23:44:41] TheNet: do I have to do anything special after removing a devise module from a model?
[23:45:53] SteenJobs: has joined #RubyOnRails
[23:45:57] SteenJobs: smathy: sorry got disconnected, you say anything?
[23:46:38] Radar: SteenJobs: neg
[23:46:47] Radar: TheNet: where does that question come from?
[23:46:55] smathy: TheNet, save the file?
[23:47:16] TheNet: db:migrate? anything like that
[23:47:17] TheNet: I'm guessingno
[23:47:21] smathy: SteenJobs, so much, I totally wrote your app for you and posted it to the channel, but then I lost my history.
[23:47:43] SteenJobs: smathy: hahaha who knew it would take such a heroic effort
[23:47:57] smathy: Oh, oh oh, I know this one.
[23:48:14] SteenJobs: smathy: honestly i just cloned this app earlier because i???m inheriting it, and i just need to get angular + rails to make nice in development so i can freaking start working on it.
[23:48:41] smathy: Is this that same app we spoke about a few weeks back?
[23:49:12] SteenJobs: that app was full rails. this is a pretty simple app with an angular frontend
[23:51:20] quazimodo: has joined #RubyOnRails
[23:51:25] quazimod1: has joined #RubyOnRails
[23:51:53] voker57: has joined #RubyOnRails
[23:52:30] Surt_Q: has joined #RubyOnRails
[23:52:37] moeabdol: has joined #RubyOnRails
[23:52:55] bungoman: has joined #RubyOnRails
[23:55:29] RegulationD: has joined #RubyOnRails
[23:56:16] surrealanalysis: has joined #RubyOnRails
[23:59:29] bklane: has joined #RubyOnRails