« Back to channel list

#RubyOnRails - 09 May 2016

« Back 1 day Forward 1 day »
[00:03:34] chipotle: has joined #RubyOnRails
[00:05:43] hahuang61: has joined #RubyOnRails
[00:06:53] nickenchuggets: has joined #RubyOnRails
[00:06:53] nickenchuggets: has joined #RubyOnRails
[00:08:34] chouhoulis: has joined #RubyOnRails
[00:12:31] dikaio: has joined #RubyOnRails
[00:16:02] xcesariox: has joined #RubyOnRails
[00:16:12] stannard: has joined #RubyOnRails
[00:20:51] dudepare: has joined #RubyOnRails
[00:21:41] SteenJobs: has joined #RubyOnRails
[00:27:22] Oliphaunte: has joined #RubyOnRails
[00:31:58] dikaio: has joined #RubyOnRails
[00:33:10] cmditch: has joined #RubyOnRails
[00:37:48] cmditch: anyone encounter responsive nav bar issues using rails?
[00:38:26] JFlash: hey, I want to add a custom inflection in initializers/inflections
[00:38:59] JFlash: should I add it as the first one or the last one? which gets more priority?
[00:40:04] Ebok: Not really cmditch
[00:40:05] Radar: JFlash: whatever's defined last is the highest prioroty.
[00:40:11] Radar: cmditch: !used
[00:40:11] helpa: cmditch: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[00:40:33] cmditch: touche, thanks
[00:40:38] cmditch: let me be more specific
[00:41:00] cmditch: https://stark-taiga-50900.herokuapp.com/denver
[00:41:19] cmditch: if you collapse the page down so the nav bar shifts to the right, you can freely open and close the navbar
[00:41:47] cmditch: but when you change to route list (the only working link other than Denver Admin atm) a big blank space occupies the right side of the screen
[00:41:54] cmditch: if you refresh the page it goes away
[00:42:18] cmditch: <html class=“nav-open”> sticks during the page change, but clears after a refresh
[00:42:23] twilling: has joined #RubyOnRails
[00:43:45] Radar: route list?
[00:43:47] dikaio: has joined #RubyOnRails
[00:44:21] cmditch: Route List - second link down in the navbar
[00:44:30] Radar: http://imgur.com/620rVY4
[00:44:32] Radar: You mean this one
[00:45:53] Rubie: has joined #RubyOnRails
[00:48:32] cmditch: has joined #RubyOnRails
[00:48:52] cmditch_: has joined #RubyOnRails
[00:50:59] Ropeney: has joined #RubyOnRails
[00:53:50] Radar: cmditch_: ^
[01:02:00] Orkid: has joined #RubyOnRails
[01:02:27] Orkid: has joined #RubyOnRails
[01:02:52] Orkid42: has joined #RubyOnRails
[01:07:02] diego1: has joined #RubyOnRails
[01:10:32] techsethi: has joined #RubyOnRails
[01:10:43] maletor2: has joined #RubyOnRails
[01:16:14] patrick_star_3: has joined #RubyOnRails
[01:21:28] hahuang61: has joined #RubyOnRails
[01:23:27] djbkd: has joined #RubyOnRails
[01:26:12] djbkd: has joined #RubyOnRails
[01:28:37] sevenseacat: has joined #RubyOnRails
[01:29:34] r3vDev: has joined #RubyOnRails
[01:29:36] Orkid42: has joined #RubyOnRails
[01:30:27] sypheren: has joined #RubyOnRails
[01:31:10] nofxx: has joined #RubyOnRails
[01:31:10] nofxx: has joined #RubyOnRails
[01:31:25] heyrhett: has joined #RubyOnRails
[01:32:13] JFlash: if add a migration to add a field to my model, will it update the autogenerated forms or do I have to do it by hand:
[01:32:40] JFlash: will try now. let's see if Rails is as AutoMagical (TM) as I think it is
[01:32:59] sevenseacat: good idea, on trying it yourself :)
[01:33:19] r3vDev: has left #RubyOnRails: ()
[01:35:04] r3vDev: has joined #RubyOnRails
[01:35:33] etiago: has joined #RubyOnRails
[01:37:12] moeabdol: has joined #RubyOnRails
[01:38:02] JFlash: doesnt do anything to views. I'm disappointed :(
[01:39:05] JFlash: so which places I'd have to modify by hand?
[01:39:15] JFlash: create, show and edit views?
[01:39:58] sevenseacat: wherever you want the new field to appear
[01:40:01] JFlash: new and edit seem to render the same _form
[01:40:15] JFlash: ok, that is kinda clever
[01:40:29] JFlash: so basically there would be 2 places I have to update?
[01:40:32] crystal77: has joined #RubyOnRails
[01:40:33] JFlash: anything else?
[01:41:00] JFlash: sevenseacat, not a very useful answer
[01:41:18] sevenseacat: JFlash: I know nothing about how your app is structured, so I cannot give you any more information
[01:41:44] sevenseacat: I don't know if your new field is supposed to be user-editable, or appear on an index listing - only you know that
[01:41:46] JFlash: it's a brand new app with a single scaffolded model at this point
[01:44:09] r3vDev: has joined #RubyOnRails
[01:46:12] djbkd: has joined #RubyOnRails
[01:46:38] diego1: has joined #RubyOnRails
[01:46:56] chipotle: has joined #RubyOnRails
[01:46:59] qejk: has joined #RubyOnRails
[01:47:21] diego1: has joined #RubyOnRails
[01:47:52] Orkid42: has left #RubyOnRails: ()
[01:51:50] djbkd: has joined #RubyOnRails
[01:52:17] JFlash: hey this seems cools
[01:52:22] JFlash: https://github.com/ahe/reverse_scaffold
[01:52:33] JFlash: it will regenerate my views from an existing model
[01:52:33] sypheren: has joined #RubyOnRails
[01:52:52] JFlash: it's AutoMagical(TM) !!
[01:54:01] sypheren: has joined #RubyOnRails
[01:54:44] sevenseacat: guessing it also means you can't change your own code, ever
[01:54:52] sevenseacat: because it will just get overwritten
[01:55:06] maxz: has joined #RubyOnRails
[01:55:36] JFlash: and by the way, looks like it's only been updated to rails 3.x
[01:56:20] JFlash: plus it will probably overwrite the controller too. dont see an option for views only
[01:57:14] jenrzzz: has joined #RubyOnRails
[01:57:58] JFlash: ok this looks like a better option
[01:57:58] JFlash: rails g scaffold User --migration=false --skip
[01:58:15] djbkd: has joined #RubyOnRails
[01:58:30] JFlash: I can just delete the outdated views like the _form file and it's reacreate it.. automagically
[01:58:43] JFlash: I love rails
[02:00:32] Oliphaunte: has joined #RubyOnRails
[02:00:39] stardiviner: has joined #RubyOnRails
[02:00:46] nbdy: has joined #RubyOnRails
[02:00:50] tvon: has joined #RubyOnRails
[02:02:29] d5sx43: has joined #RubyOnRails
[02:05:38] dikaio: has joined #RubyOnRails
[02:10:18] RegulationD: has joined #RubyOnRails
[02:12:03] Megamos: has joined #RubyOnRails
[02:12:19] macsteps: has joined #RubyOnRails
[02:15:59] brent__: has joined #RubyOnRails
[02:20:14] gambl0re: hi sevenseacat
[02:23:36] sypheren: has joined #RubyOnRails
[02:37:13] stannard: has joined #RubyOnRails
[02:43:37] one_zero: has joined #RubyOnRails
[02:46:12] ur5us: has joined #RubyOnRails
[02:46:31] ur5us: has joined #RubyOnRails
[02:48:26] hashrate_: has joined #RubyOnRails
[02:50:36] chouhoulis: has joined #RubyOnRails
[02:52:00] chopin: has joined #RubyOnRails
[02:53:31] hahuang61: has joined #RubyOnRails
[02:57:46] d0nn1e: has joined #RubyOnRails
[03:02:13] yfeldblum: has joined #RubyOnRails
[03:03:59] idefine: has joined #RubyOnRails
[03:04:13] kkeuning: has joined #RubyOnRails
[03:05:06] bruno-: has joined #RubyOnRails
[03:05:44] Oliphaunte: has joined #RubyOnRails
[03:07:46] Devalo: has joined #RubyOnRails
[03:08:34] sypheren: has joined #RubyOnRails
[03:09:21] viiralvx: has joined #RubyOnRails
[03:09:27] twilling: has joined #RubyOnRails
[03:11:32] maletor2: has joined #RubyOnRails
[03:13:32] braincrash: has joined #RubyOnRails
[03:14:45] chopin: has joined #RubyOnRails
[03:15:34] chopin_: has joined #RubyOnRails
[03:19:20] kkeuning: has joined #RubyOnRails
[03:21:03] kkeuning: has joined #RubyOnRails
[03:25:34] sypheren: has joined #RubyOnRails
[03:25:41] moeabdol: has joined #RubyOnRails
[03:27:05] Oliphaunte: has joined #RubyOnRails
[03:28:24] idefine: has joined #RubyOnRails
[03:30:18] smoitra: has joined #RubyOnRails
[03:31:54] Cache_Money: has joined #RubyOnRails
[03:32:01] kgrz: has joined #RubyOnRails
[03:41:46] adre: has joined #RubyOnRails
[03:43:33] sypheren: has joined #RubyOnRails
[03:44:55] njero: has joined #RubyOnRails
[03:45:05] webdestroya: has joined #RubyOnRails
[03:50:39] bruce_lee: has joined #RubyOnRails
[03:52:17] sypheren: has joined #RubyOnRails
[03:56:42] chipotle: has joined #RubyOnRails
[03:59:49] roamingdog: has joined #RubyOnRails
[04:09:28] b|ackwolf: has joined #RubyOnRails
[04:12:19] maletor2: has joined #RubyOnRails
[04:12:44] JFlash: has joined #RubyOnRails
[04:12:56] pawnbox: has joined #RubyOnRails
[04:13:45] fernando: has joined #RubyOnRails
[04:22:15] logik-bomb: has joined #RubyOnRails
[04:25:19] JFlash: has joined #RubyOnRails
[04:27:14] sdwrage: has joined #RubyOnRails
[04:31:39] Cache_Money: I'd like to update my model (FantasyGame) from the FantasyGame#show view. I just want to update the FantasyGame.status column from "sharing" to "picking". Since I'd like the user to be able to update other attributes of the FantasyGame within the Update action, how should I handle this?
[04:32:51] Cache_Money: should I just create an action in my fantasy_games_controller called "start_picking" and a GET on that updates the record and then redirects?
[04:34:33] Ropeney: without context, im gunna ask why not just do ajax with status param to picking calling the update action?
[04:34:35] roamingdog: you shouldn't want to update things during a GET request eh
[04:35:56] JFlash: hey supose I have a table of some data and I want to delete a row of data
[04:36:23] JFlash: what is the correct way to do this in Rails 4, turbolinks?
[04:36:32] JFlash: where can I read about doing this
[04:37:19] dikaio: has joined #RubyOnRails
[04:37:21] fedexo: has joined #RubyOnRails
[04:37:23] chopin: has joined #RubyOnRails
[04:39:17] Ropeney: JFlash, to allow a client to delete a row?
[04:39:43] Ropeney: a destroy action in the controller...?
[04:40:12] JFlash: ok, but then it will re render the whole shebang on the server
[04:40:26] JFlash: i thought turbolinks was supposed to avoid that?
[04:41:14] Ropeney: I've never used turbolinks, but doesn't turbolinks just keep your JS compiled across pages by re rendering the whole body inside?
[04:41:33] JFlash: i'm not sure
[04:41:46] JFlash: so suppose I have a screen like this in my rails app
[04:41:58] Ropeney: give it a go :)
[04:42:09] Ropeney: super easy to implement and know your answer
[04:42:17] JFlash: http://www.vetusweb.com.br/wp-content/uploads/2014/07/entradanotafiscal1.png
[04:42:30] JFlash: say it's a boostrap form and some sort of grid of data
[04:42:56] JFlash: unless I use ajax it will have to refresh the page in evry row delete
[04:43:30] JFlash: I obviouly want to avoid page refreshes, also not using a js SAP framework at this point
[04:45:29] moeabdol: has joined #RubyOnRails
[04:45:29] Ropeney: JFlash, I could be wrong, but I don't believe TurboLinks has anything to do with what your asking
[04:45:38] JFlash: yah, looks like turbolinks will request the whole page, just will re render instead of refreshing it
[04:46:09] Ropeney: thats my understanding
[04:46:33] Ropeney: I would do ajax and then delete the element with js if success
[04:47:16] JFlash: yeah looks like that's what I will have to do unless I go with SAP
[04:47:49] JFlash: so, any gems or js libs for that? not a big fan of jquery
[04:48:03] JFlash: I heard of something called 'fetch'
[04:48:14] Ropeney: not a fan of jquery... hmmm
[04:48:23] JFlash: it's a polyfill
[04:50:16] JFlash: but ok, then if I do an ajax request I'd have to have an extra action on my controller which is dedicated to processing that request?
[04:50:53] Ropeney: `var element = document.getElementById("#therow"); element.parentNode.removeChild(element);` if you want vanilla jS?
[04:50:59] JFlash: like destroyRow or something?
[04:51:09] Ropeney: or just def destroy?
[04:51:59] JFlash: just destroy and the I should respond with render some_json ?
[04:53:04] JFlash: oh boy.. this is stuff gets more complicated by the minute
[04:53:16] Ropeney: its... really the simple parts of it
[04:53:39] JFlash: I hope I dont regret not going with js framework like 3 weeks from now
[04:54:26] Ropeney: You may want to investigate that now then
[04:54:48] bronson: has joined #RubyOnRails
[04:54:48] njero: has joined #RubyOnRails
[04:56:20] JFlash: the asset pipeline and all the gem ecosystem around it, including scaffolding.. makes evrything so much streamlined
[04:56:52] JFlash: I have like at least 20 forms that I will have to create
[04:57:27] JFlash: using the asset pipeline most of the work is done at scaffolding time
[04:57:47] JFlash: but if I go with say, ember, than I suppose I'm on my own
[04:58:37] Ropeney: I don't think, the screens you showed before, will get much out of scaffolding
[04:59:53] JFlash: well it's basically a big form , that the scaffold already gives me and most whatI have to do is re-layout the form so that the fields are properly sized
[05:00:20] Ropeney: cool, goodluck!
[05:00:54] JFlash: thank you
[05:01:33] Oog: has joined #RubyOnRails
[05:02:58] bruno-: has joined #RubyOnRails
[05:06:27] JFlash: http://issues.wenzhixin.net.cn/bootstrap-table/
[05:06:40] JFlash: ACTION does a little dance
[05:06:57] Cache_Money: I have `before_validation :create_share_hash` so that I can validate that the `share_hash` attribute is unique before I save the object. However, when I go to update the object it also updates the `share_hash` attribute. Which callback should I be using here?
[05:07:30] Cache_Money: ^ the `def create_share_hash` creates a random string
[05:08:06] Cache_Money: If I use `before_create` will it validate that it's unique?
[05:12:13] Cache_Money: Nevermind, it looks like I need to use `before_validation :create_share_hash, on: :create`
[05:13:06] maletor2: has joined #RubyOnRails
[05:14:51] yfeldblum: has joined #RubyOnRails
[05:15:15] moeabdol: has joined #RubyOnRails
[05:19:49] Devalo: has joined #RubyOnRails
[05:24:28] wethu: has joined #RubyOnRails
[05:29:54] Axilla: has joined #RubyOnRails
[05:40:10] sevenseacat: has joined #RubyOnRails
[05:46:13] dionysus69: has joined #RubyOnRails
[05:49:32] sdwrage: has joined #RubyOnRails
[05:50:16] SteenJobs: has joined #RubyOnRails
[05:51:33] b|ackwolf: has joined #RubyOnRails
[05:54:03] yardenbar: has joined #RubyOnRails
[05:55:17] triptec_: has joined #RubyOnRails
[05:56:09] moeabdol: has joined #RubyOnRails
[05:58:50] moeabdol: has joined #RubyOnRails
[06:01:10] EdwardIII: has joined #RubyOnRails
[06:03:48] solars: has joined #RubyOnRails
[06:07:31] scepticulous: has joined #RubyOnRails
[06:09:09] Devalo: has joined #RubyOnRails
[06:11:48] RegulationD: has joined #RubyOnRails
[06:13:45] brianpWins_: has joined #RubyOnRails
[06:13:50] maletor2: has joined #RubyOnRails
[06:13:57] edwinvdgraaf: has joined #RubyOnRails
[06:19:20] ur5us: has joined #RubyOnRails
[06:20:58] maxz: has joined #RubyOnRails
[06:22:41] patrick_star_2: has joined #RubyOnRails
[06:24:55] duncannz: has joined #RubyOnRails
[06:26:50] DoubleMalt: has joined #RubyOnRails
[06:32:12] PaulePanter: if language_ids.any?
[06:32:19] PaulePanter: bookings = bookings.where("bookings.language_id IN (?)", language_ids)
[06:34:05] PaulePanter: Can this be written without the if statement.
[06:34:27] arBmind: has joined #RubyOnRails
[06:34:48] PaulePanter: If NULL or the empty array are passed, I want that it shows all bookings.
[06:36:47] DoctorMonocular: has joined #RubyOnRails
[06:36:57] comrad: has joined #RubyOnRails
[06:37:32] sevenseacat: PaulePanter: what happens if you leave the `if` statement off?
[06:37:34] roamingdog: has joined #RubyOnRails
[06:38:50] solars: is it possible to combine number_with_precision and number_with_delimiter somehow?
[06:38:55] tildes: has joined #RubyOnRails
[06:40:05] lxsameer: has joined #RubyOnRails
[06:42:58] Tichodroma: has joined #RubyOnRails
[06:43:51] maxz: has joined #RubyOnRails
[06:43:55] PaulePanter: sevenseacat: Well, in case of `[]`, no bookings are shown, in contrast to getting all bookings beforehand.
[06:44:04] ur5us: has joined #RubyOnRails
[06:44:12] sevenseacat: then I guess the answer to your question is "no"
[06:44:47] idefine: has joined #RubyOnRails
[06:50:38] solars: does it make sense to not set the delimiter in number_to_currency to the same locale as locale?
[06:51:48] tildes: has joined #RubyOnRails
[06:55:35] kareeoleez: has joined #RubyOnRails
[06:56:36] kareeoleez: How can I repeat the execution of an activejob ? Is clockwork the only way ?
[06:56:51] sevenseacat: re-schedule it in itself?
[06:57:04] cd83x: has joined #RubyOnRails
[06:57:19] r3vDev: has joined #RubyOnRails
[06:57:38] aganov: has joined #RubyOnRails
[06:59:40] Pumukel: has joined #RubyOnRails
[07:00:34] kareeoleez: sevenseacat: is it possible to schedule it e.g. like cron does ?
[07:00:45] kareeoleez: I've been only using clockwork until now
[07:00:53] sevenseacat: personally, if you want cron behaviour, i would use cron
[07:01:35] kareeoleez: I want to embed the control and execution of ruby "jobs"
[07:01:56] kareeoleez: so clockwork does it but I wonder If I can use "less"
[07:02:06] kareeoleez: so is it possible with Active Job ?
[07:02:18] kareeoleez: or is it just re-scheduling upon completion ?
[07:03:33] solars: aren't you talking about two different things? re-scheduling has no fixed interval, but cron does?
[07:03:52] Fernandos: has joined #RubyOnRails
[07:04:36] tagaulap: has joined #RubyOnRails
[07:05:15] ur5us: has joined #RubyOnRails
[07:05:38] artto: has joined #RubyOnRails
[07:05:50] antgel: has joined #RubyOnRails
[07:06:12] kareeoleez: solars: to make it clear, I want to read values from the database (e.g. @users = User.all) every 1 second
[07:06:51] sevenseacat: for what purpose?
[07:06:52] solars: did you have a look at the 'whenever' gem?
[07:07:21] kareeoleez: solars: I am already using clockwork but I want to find out If activejob itself supports that
[07:07:43] kareeoleez: sevenseacat: does it matter ?
[07:07:51] solars: kareeoleez, alright
[07:07:54] sevenseacat: to my willingness to help you, absolutely
[07:08:01] solars: I think it doesn't make too much sense for activejob
[07:08:17] kareeoleez: sevenseacat: to show them on a <table> with ajax
[07:08:29] sevenseacat: now that doesnt make any sense to do with activejob
[07:08:52] kareeoleez: sevenseacat: what would you use ?
[07:08:59] sevenseacat: activejob runs in the background for background tasks that are independent from your app
[07:09:19] sevenseacat: *independent from your HTML interface
[07:09:26] kareeoleez: sevenseacat: ajax to trigger the query ?
[07:09:28] solars: it's probably easier to have the interval in the frontend and just pull
[07:09:32] sevenseacat: kareeoleez: yes
[07:09:43] solars: but that depends on what you use
[07:09:49] sevenseacat: though I don't know why you would want to refresh a table of users every 1 second, either
[07:09:52] solars: might as well be push
[07:09:57] kareeoleez: sevenseacat: any tips ?
[07:10:04] kareeoleez: where to look at
[07:10:04] sevenseacat: kareeoleez: don't be vague and annoying?
[07:10:12] sevenseacat: oh, with the code
[07:10:17] sevenseacat: google, maybe
[07:10:37] sevenseacat: https://api.jquery.com/jquery.ajax/
[07:10:57] kareeoleez: sevenseacat: where's the connection with rails ?
[07:10:59] solars: it depends on the frontend framework you're using
[07:11:01] sevenseacat: there isnt one
[07:11:04] sevenseacat: because its not related
[07:11:06] solars: I assume things are different with actioncable as well
[07:11:12] kareeoleez: sevenseacat: I don't get you
[07:11:21] sevenseacat: I don't get you either, so we're even
[07:11:33] kareeoleez: sevenseacat: I'll somehow have to trigger a query in the backend ?
[07:11:37] solars: how I miss the days when there wasn't so much overhead in this channel
[07:11:51] kareeoleez: solars: jquery
[07:12:24] solars: just use an interval and within this interval pull users from your controller as json and render it
[07:12:31] solars: in jquery
[07:12:47] solars: if you don't have any databinding or things like that
[07:13:54] kareeoleez: solars: so jquery requests data which are rendered into .json
[07:13:59] sevenseacat: this is why i wish people wouldnt try to do advanced things without knowing the basics
[07:14:17] srinidhi: has joined #RubyOnRails
[07:14:31] solars: sevenseacat, because beginners cannot distinguish between advanced and basic, easy as that
[07:14:35] maletor2: has joined #RubyOnRails
[07:14:52] kareeoleez: I don't think it's advanced
[07:14:54] solars: kareeoleez, your controller renders the json, and jquery fetches it at specified times
[07:14:57] kareeoleez: it's pretty basic
[07:15:04] sevenseacat: solars: that's actually the first thing you've said that i agree with
[07:15:39] solars: I'm feeling honored
[07:16:26] kareeoleez: solars: only downside would be If the query is slow
[07:16:44] kareeoleez: solars: so the frontend will freeze a bit
[07:16:52] solars: it won't as it is ajax
[07:17:11] kareeoleez: I mean the values will be empty until the data are fetched
[07:17:14] solars: the spinner will just spin a little longer :)
[07:17:38] solars: depends on the implementation
[07:17:43] kareeoleez: in case of fetching data with a job every second, they will be async with the ajax request
[07:17:47] solars: on first access you just render the list
[07:17:53] solars: and then start the pulling
[07:18:10] solars: and replace them once you get them
[07:18:13] kareeoleez: so the worst that will happen is ajax getting the same results for 2 seconds
[07:18:22] kareeoleez: solars: this works also
[07:18:36] janno_: has joined #RubyOnRails
[07:18:50] r3vDev: has joined #RubyOnRails
[07:19:22] solars: just start implementing it and you will see where you end up
[07:19:32] kareeoleez: I'll test it
[07:19:51] kareeoleez: I need various stats to display e.g. system processes like ps aux
[07:20:04] kareeoleez: and I dont' want to go with web sockets yet
[07:20:10] helpa: http://i.imgur.com/m9m3wr9.gif
[07:20:21] kareeoleez: solars: thanks
[07:20:21] solars: there might be better ways nowadays using data binding or actioncable
[07:20:54] kareeoleez: actioncable is pretty heavy for this
[07:21:21] kareeoleez: I've checked SSE also
[07:21:31] solars: yes, many options
[07:21:43] kareeoleez: but we're talking for something very light in resources and code/gems
[07:21:55] solars: then use jquery
[07:24:52] dionysus69: has joined #RubyOnRails
[07:27:03] kareeoleez: solars: it works
[07:27:21] kareeoleez: solars: shit, I always look for complicated ways to do things instead of the simple ones
[07:27:39] kareeoleez: sevenseacat is right
[07:27:50] tildes: kareeoleez: been there, done that :)
[07:28:34] kareeoleez: I could find easier to setup sidekiq, clockwork to control a job instead of an ajax request
[07:28:56] kareeoleez: it has its downsides though.. but I'm trying to hard for an overkill
[07:29:02] tildes: ajax request makes so much more sense in this case. it's a useful thing to learn anyway
[07:29:19] kareeoleez: tildes: true
[07:29:24] solars: kareeoleez, nice
[07:30:49] Axilla: has joined #RubyOnRails
[07:32:58] bonswouar: has joined #RubyOnRails
[07:34:31] agit0: has joined #RubyOnRails
[07:34:52] mikecmpbll: has joined #RubyOnRails
[07:37:14] platzhirsch: has joined #RubyOnRails
[07:39:13] Macaveli: has joined #RubyOnRails
[07:40:45] DoctorMonocular: has joined #RubyOnRails
[07:41:23] artto: has joined #RubyOnRails
[07:43:23] adre: has joined #RubyOnRails
[07:44:28] Oog: has joined #RubyOnRails
[07:45:17] idefine: has joined #RubyOnRails
[07:45:25] helpa: Oog: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[07:45:41] Oog: https://gist.github.com/anonymous/f6d125ce09e585d48a7ad24f0413bcfe
[07:46:08] Oog: ST_GeomFromText('POLYGON((top_left_lng top_left_lat, ...)) - it doesn't seem to like columns in the POLYGON - is that possible?
[07:46:43] Oog: im trying to find all rows where there point is within the polgyon defined by those columns
[07:46:53] loechel: has joined #RubyOnRails
[07:47:13] universa1: looks like a postgis question, though you might be lucky to find smoeone knowing that here, your chances might be higher in the postgres / postgis(if there is) channel ;)
[07:47:13] Radar: "it doesn't seem to like columns "
[07:47:23] sevenseacat: i dont like columns either bth
[07:47:30] Oog: "POLYGON((to" <-- parse error at position 11 within geometry
[07:47:41] universa1: Oog: anyways: i'd have a look at the geocoder gem.
[07:47:43] Radar: try quoting them
[07:47:43] Oog: i realized im in the wrong channel
[07:47:58] fernando: has joined #RubyOnRails
[07:48:07] Oog: tried quotes didnt work
[07:48:17] helpa: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[07:49:17] habitullence: has joined #RubyOnRails
[07:50:50] Sylario: has joined #RubyOnRails
[07:53:37] snowy: has joined #RubyOnRails
[07:54:10] Sylario: I am using devise to log in in my app, My app is also an oauth provider, and i have a page with a devise login form. It works, but when a login fails, it redirect to the "log in the app" page, and i would like to be able to keep the users on the alternate login page
[07:54:32] Sylario: So is it possible with devise to have multiple login set of views?
[07:55:22] universa1: should be either possible by overwriting some hook in devise, like after_failed_sign_in_path (guessing here!!!) or overwriting the login action
[07:56:24] pawnbox: has joined #RubyOnRails
[07:57:30] bronson: has joined #RubyOnRails
[07:58:27] mikecmpbll: has joined #RubyOnRails
[07:59:23] pawnbox: has joined #RubyOnRails
[08:01:16] drptbl: has joined #RubyOnRails
[08:04:14] drptbl: has joined #RubyOnRails
[08:05:09] edavis: has joined #RubyOnRails
[08:06:31] bruno-: has joined #RubyOnRails
[08:08:19] edavis_: has joined #RubyOnRails
[08:10:14] artto: has joined #RubyOnRails
[08:12:03] darutoko: has joined #RubyOnRails
[08:12:10] mark_66: has joined #RubyOnRails
[08:12:36] RegulationD: has joined #RubyOnRails
[08:14:01] arBmind: has joined #RubyOnRails
[08:15:20] maletor2: has joined #RubyOnRails
[08:16:03] finnnnnnnnnnn: has joined #RubyOnRails
[08:27:37] tvw: has joined #RubyOnRails
[08:27:45] marr: has joined #RubyOnRails
[08:40:25] DoctorMonocular: has joined #RubyOnRails
[08:41:09] BaNzounet: using method like : first_or_create is it possible to know if the instance returned was just created?
[08:41:43] sdwrage: has joined #RubyOnRails
[08:45:00] adre: has joined #RubyOnRails
[08:45:27] PaulePanter: BaNzounet: Yes. There is a method `new?` or so.
[08:47:20] PaulePanter: BaNzounet: http://apidock.com/rails/ActiveRecord/Base/new_record%3F
[08:47:35] blackhuey: has joined #RubyOnRails
[08:47:38] lubekpl: has joined #RubyOnRails
[08:48:03] idefine: has joined #RubyOnRails
[08:48:49] moeabdol: has joined #RubyOnRails
[08:49:06] tildes: BaNzounet, PaulePanter: ActiceRecord#find_or_create_by saves the record into db, so new_record? probably would not work
[08:49:22] BaNzounet: yep it doesn't in my case
[08:49:35] tildes: (unless there is a better way out there) I might just check that created_at and updated_at match, and are fresh enough to count as 'new'
[08:50:46] srinidhi: has joined #RubyOnRails
[08:51:00] tbuehlmann: you could also use #first_or_initialize and use #new_record? or #persisted?
[08:52:04] tildes: ^ sounds like a cleaner approach
[08:52:21] anna`: has left #RubyOnRails: ("-")
[08:53:43] BaNzounet: Not sure this work, persisted will return true in all cases
[08:54:04] opus_: has joined #RubyOnRails
[08:54:04] jsrn_: has joined #RubyOnRails
[08:54:10] tbuehlmann: it shouldn't with first_or_initialize
[08:54:45] BaNzounet: Yep, I read first_or_create :)
[08:55:59] BaNzounet: thanks, I'll try to figure something out with what you gave me :)
[08:58:13] tildes: first or find?
[08:58:16] alaing_: has joined #RubyOnRails
[08:59:41] finnnnnnnnnnn: has joined #RubyOnRails
[08:59:56] moep: has joined #RubyOnRails
[09:01:49] Palsson: has joined #RubyOnRails
[09:04:50] alaing_: Hi I needs some help with exporting a models data as json. I'm using active_model_serializer gem but having problems trhying to bring in data from associated table. https://gist.github.com/aliuk2012/ce8d858a236ac4b5f915d9fe80571cfe. I'm trying to pull in :description from Language model
[09:05:54] pawnbox: has joined #RubyOnRails
[09:08:47] srinidhi: has joined #RubyOnRails
[09:08:53] srinidhi: has joined #RubyOnRails
[09:11:14] neevany: has joined #RubyOnRails
[09:11:51] neevany: Hey Guys, Is it possible to use ActiveRecord::Calculations on Active::model
[09:13:01] neevany: I have a hash and need to aggregate one column with condition on another column, I dont have active record for this
[09:13:17] neevany: I dont need it in database
[09:13:56] herpless: has joined #RubyOnRails
[09:15:01] moeabdol: has joined #RubyOnRails
[09:15:43] blackmes1: has joined #RubyOnRails
[09:15:50] neevany: Hey Guys, I have a hash and need to aggregate one column with condition on another column, I dont have active record for this how should i do this
[09:15:50] herpless: hey, was wondering if anyone could help me figure out how to tackle this issue: I have a user which has many profile fields, such as "experience level" "introduction" "about" "favorite brands (array)" "frequency of play" "gear (multiple entries such as barrel, tank, etc.) (array)" and I am not sure how I should be storing this
[09:16:04] herpless: I was looking at http://api.rubyonrails.org/classes/ActiveRecord/Store.html which looks sort of like what I need, but I am not sure
[09:16:10] maletor2: has joined #RubyOnRails
[09:16:32] DaniG2k: has joined #RubyOnRails
[09:16:38] herpless: and perhaps it's better to create a database field for each profile field (serialized perhaps?) rather than storing them all in a single hash
[09:25:55] sevenseacat: has joined #RubyOnRails
[09:28:24] rodfersou: has joined #RubyOnRails
[09:31:18] smoitra: has joined #RubyOnRails
[09:31:47] Axilla: has joined #RubyOnRails
[09:34:11] workmad3: has joined #RubyOnRails
[09:36:04] brazenbraden: has joined #RubyOnRails
[09:37:10] Sylario: I have asked my question on stack : http://stackoverflow.com/questions/37110688/rails-app-using-doorkeeper-and-devise-how-to-handle-direct-login-and-oauth
[09:37:23] brazenbraden: i keep getting the error: Errno::ENOTDIR - Not a directory @ rb_sysopen - /app/tmp/data/meta_request/d885df6b-1c60-4805-85f8-5f7e8be8882a.json -- and i dont know how to get rid of it. i've cleared the sessions table, deleted cookies, reloaded the db schema, restarted the app multiple times. what do I do?
[09:39:56] b|ackwolf: has joined #RubyOnRails
[09:41:21] finnnnnnnnnnn: has joined #RubyOnRails
[09:42:45] pLaToOn: has joined #RubyOnRails
[09:48:58] alaing: has joined #RubyOnRails
[09:49:00] alaing: Hi I needs some help with exporting a models data as json. I'm using active_model_serializer gem but having problems trhying to bring in data from associated table. https://gist.github.com/aliuk2012/ce8d858a236ac4b5f915d9fe80571cfe. I'm trying to pull in :description from Language model
[09:52:01] universa1: alaing: the data should be in object["language"]["description"]
[09:52:56] alaing: universa1: so in the gist would it be 'attributes object["language]["description"]
[09:53:34] universa1: alaing: no. in your serialized json data, you should already have a key for language, which contains a hash, in which there should be description.
[09:54:45] pawnbox: has joined #RubyOnRails
[09:54:57] alaing: I tried just using "attributes :description" in but it errors with "undefined method `description' for #<CourtForm:0x007fc99be62a78>"
[09:55:12] universa1: alaing: remove attributes :description
[09:55:24] universa1: alaing: and look at the generated json for a form.
[09:56:38] artto: has joined #RubyOnRails
[09:58:58] alaing: universa1: i've had to remove the "belongs_to" as well in that just because its undefined
[09:59:22] bronson: has joined #RubyOnRails
[09:59:53] universa1: alaing: so your form model does not have a belongs_to :language association?
[10:00:35] alaing: it does but I'm using active model serializer to output json as part of a RESTful API
[10:01:01] universa1: alaing: add the model code + error trace to the gist.
[10:03:03] blackmes1: has joined #RubyOnRails
[10:05:59] universa1: alaing: https://github.com/rails-api/active_model_serializers/tree/0-9-stable#associations
[10:06:36] ur5us: has joined #RubyOnRails
[10:07:16] artto: has joined #RubyOnRails
[10:07:23] brazenbraden: i've tried manually deleting the meta_request folder in the tmp folder and that ends up with me just getting a plain white screen on refresh. have to restart the app after which, greeted with the same error (and a whole lot more meta_request .json junk generated)
[10:08:17] bruno-: has joined #RubyOnRails
[10:08:23] universa1: which part of your app generated the meta_requests folder in the first place?
[10:08:54] brazenbraden: i dont know. thought it was rails
[10:08:59] pawnbox: has joined #RubyOnRails
[10:09:17] universa1: BrazenBraden: so googling turns up the following: https://github.com/dejan/rails_panel/tree/master/meta_request ...
[10:09:39] brazenbraden: yea i have come across that (as that is the only thing that mentions meta_request
[10:09:50] kareeoleez: has joined #RubyOnRails
[10:09:52] brazenbraden: i dont use rails panel
[10:09:52] universa1: BrazenBraden: so? Gemfile?
[10:09:57] alaing: universa1: let me add the models, serializer models, controllers and any errors to my gist
[10:10:16] brazenbraden: i will add the gem anyway and see
[10:10:40] brazenbraden: actually it is already there
[10:10:40] universa1: BrazenBraden: gist your Gemfile as it is + full error trace!
[10:11:01] universa1: BrazenBraden: so... somebody added it.
[10:11:23] brazenbraden: universa1, will remove it and see what happens
[10:13:24] RegulationD: has joined #RubyOnRails
[10:16:52] maletor2: has joined #RubyOnRails
[10:17:13] pawnbox: has joined #RubyOnRails
[10:21:16] r3vDev: has joined #RubyOnRails
[10:23:17] brazenbraden: universa1, its back up and running. what a pain in the tooshie.
[10:25:27] DaniG2k_: has joined #RubyOnRails
[10:25:49] mdw: has joined #RubyOnRails
[10:26:01] roelof: has joined #RubyOnRails
[10:26:35] roelof: Anyone who has succeed in making rspec work with Atom or Sublime Text ?
[10:31:20] tildes: roelof: I use sublime and rspec. what is your definition of making rspec work?
[10:33:20] roelof: I have installed several plugin but on every plugin I see error messages like this one : bash rule 1 undefined file not found or cannot read property of undefined
[10:33:36] roelof: I tried ruby-test and rspec plugin
[10:34:16] roelof: I like to see the outcome of rspec within sublime with for example shift+crtl+t
[10:36:53] tildes: has joined #RubyOnRails
[10:37:40] roelof: tildes: is it clear what for me making rspec within sublime is ?
[10:38:05] tildes: roelof: I guess you want to run your tests from sublime?
[10:40:47] tildes: haven't done that myself. so far I just run rspec from command line
[10:41:55] roelof: oke, I do not like it to have 2 different windows open , so I havre to switch all the time
[10:47:53] syath: has joined #RubyOnRails
[10:49:15] tildes: I have terminal on other screen, and sublime on other one, and can switch with a macro. I have been thinking about going tmux and vim though.
[10:49:53] idefine: has joined #RubyOnRails
[10:51:47] r3vDev: has joined #RubyOnRails
[10:51:53] WilfredTheGreat: has joined #RubyOnRails
[10:52:54] pawnbox: has joined #RubyOnRails
[10:53:01] roelof: oke, I have also looked at RubyMine but 200 euro is much money when you only want to learn rails
[10:53:34] adaedra: you don't need RubyMine to do Rails
[10:53:48] adaedra: also, if you have student status, they have an offer.
[10:54:07] r3vDev: has joined #RubyOnRails
[10:54:30] artto: has joined #RubyOnRails
[10:55:08] roelof: nope, Im not a student.
[10:57:05] bobbobbins: has joined #RubyOnRails
[10:57:53] roelof: adaedra: what do you use then for rails development ?
[10:59:08] artto: has joined #RubyOnRails
[10:59:15] njero: roelof: you don't need a specific ide for learning or coding rails
[10:59:38] njero: it's just facilitates you,.. for facility, less you learn
[11:01:02] roelof: I know, I use now a c9.box but I cannot debug things like open_and_save_page because I have no browser
[11:01:13] roelof: and I find it sluggisch sometimes
[11:01:15] artto: has joined #RubyOnRails
[11:01:31] adaedra: The rule about editors and ides is "use what suits you best"
[11:01:45] artto: has joined #RubyOnRails
[11:01:51] adlerdias_: has joined #RubyOnRails
[11:05:00] artto: has joined #RubyOnRails
[11:05:32] GodFather: has joined #RubyOnRails
[11:09:00] wethu: has joined #RubyOnRails
[11:09:37] bruno-: has joined #RubyOnRails
[11:10:49] Macaveli: has joined #RubyOnRails
[11:13:47] roelof: adaedra: thanks, I have to figure out what suits me the best
[11:15:49] finnnnnnnnnnn_: has joined #RubyOnRails
[11:16:32] pawnbox: has joined #RubyOnRails
[11:17:43] maletor2: has joined #RubyOnRails
[11:27:21] artto: has joined #RubyOnRails
[11:29:40] brianpWins: has joined #RubyOnRails
[11:31:16] blackmes1: has joined #RubyOnRails
[11:31:40] adre: has joined #RubyOnRails
[11:32:12] pawnbox: has joined #RubyOnRails
[11:32:31] Axilla: has joined #RubyOnRails
[11:36:49] bobbobbins: has joined #RubyOnRails
[11:37:14] siaw23: has joined #RubyOnRails
[11:39:29] ldnunes: has joined #RubyOnRails
[11:40:45] Axilla: has joined #RubyOnRails
[11:42:50] artto: has joined #RubyOnRails
[11:44:58] artto_: has joined #RubyOnRails
[11:47:07] artto: has joined #RubyOnRails
[11:47:34] |2701: has joined #RubyOnRails
[11:48:41] yogeshrt: has joined #RubyOnRails
[11:53:30] stannard: has joined #RubyOnRails
[11:54:03] nofxx: has joined #RubyOnRails
[11:54:11] Ropeney: has joined #RubyOnRails
[11:58:51] r3vDev: has joined #RubyOnRails
[12:00:42] bronson: has joined #RubyOnRails
[12:02:53] Detch: has joined #RubyOnRails
[12:02:53] ferr: has joined #RubyOnRails
[12:03:08] ferr: Order.where('price = ?', [50, 75, 87]) how would I make this query work?
[12:04:32] universa1: ferr: where(price: [...])
[12:07:46] Macaveli: has joined #RubyOnRails
[12:08:28] artto: has joined #RubyOnRails
[12:11:12] chipotle: has joined #RubyOnRails
[12:12:27] Sylario: I am trying to use this custom failure classs but i do not understand it : https://github.com/plataformatec/devise/wiki/How-To:-Redirect-to-a-specific-page-when-the-user-can-not-be-authenticated
[12:12:47] Sylario: first it says "we want to use the entire URL with a particular sub-domain"
[12:12:53] rails165: has joined #RubyOnRails
[12:12:53] Sylario: what does it mean
[12:13:06] Sylario: use it for what?
[12:13:25] njero: has joined #RubyOnRails
[12:13:28] universa1: for the redirect?!
[12:14:01] Sylario: i see this response copy pasted everywhere like here : http://stackoverflow.com/questions/5832631/devise-redirect-after-login-fail/7782465#7782465
[12:15:03] Sylario: What method of the class is called when there is a failure?
[12:15:11] Sylario: redirect or response?
[12:16:16] Sylario: in the SO question, i do not see how it redirect on a different url if you use a custom form
[12:16:34] universa1: and finding out which method is called, is easily determined, implement it, add some debug statement, run it, boom!
[12:17:17] universa1: there was no question about a custom form in the so question...
[12:17:35] Sylario: it was another question https://railsforum.com/topic/59695-how-to-redirect-devise-after-login-failure-attempt/
[12:17:51] universa1: what is your question?!
[12:17:57] universa1: your code? your problem?
[12:18:24] maletor2: has joined #RubyOnRails
[12:19:00] Sylario: he says that he manage to use that to do not redirect to default signin when using a custome form
[12:19:11] Sylario: but all he really does is setting a notice
[12:19:51] universa1: sylario: no.
[12:20:04] Sylario: i want th devise#login to still redirect to devise#login on fail, and only my custom view to redirect to custom view when failling
[12:20:39] universa1: so you need something to figure out if you came from devise#login or from your custom view...
[12:20:48] universa1: any idea on that?
[12:20:53] Sylario: It's like i cannot find a doorkeeper app where you can also log in the doorkeeper app
[12:22:32] Sylario: soime test in redirect_url?
[12:22:59] universa1: maybe... ...but right now independent of where: just how?
[12:23:27] Sylario: testing the previous URL
[12:23:29] chouhoulis: has joined #RubyOnRails
[12:23:57] universa1: ok. so what do you want to change if a login fails?
[12:24:14] Sylario: the redirect URL
[12:24:28] universa1: ok. so what method do you need to change?
[12:24:39] Sylario: redirect URL
[12:24:51] universa1: ok. where is the problem now?
[12:25:18] chouhoulis: has joined #RubyOnRails
[12:25:31] Sylario: i should test if the referer is accessible from the method
[12:25:32] kkeuning: has joined #RubyOnRails
[12:26:14] Sylario: I guess my problem was trying to understand how they tested the origin, but they do not test it
[12:27:20] brazenbraden: got a silly question (but i always get fandangled by these things). im trying to build a hash that matches what params look like using an AR model object. im currently doing " params[:phones_attributes] = model_object.phones.collect.with_index {|item, index| {index => item.attributes}}
[12:27:20] brazenbraden: " but that results with the hash of attributes inside of an array like ":phones_attributes=>[{0=>{"id"=>1, "number"=>"0818603625", "primary"=>false, "phone_type_id"=>1, "contact_id"=>5, "created_at"=>Mon, 09 May 2016 11:38:44 WAT +01:00, "updated_at"=>Mon, 09 May 2016 11:38:44 WAT +01:00}}, {1=>{"id"=>2, "number"=>"0818654452", "primary"=>false, "phone_type_id"=>1, "contact_id"=>5, "created_at"=>Mon, 09 May 2016 11:38:44 WAT +01:00,
[12:27:20] brazenbraden: "updated_at"=>Mon, 09 May 2016 11:38:44 WAT +01:00}}]" meanwhile I want it to look like: "phones_attributes"=>{"1462790308286"=>{"id"=>"", "_destroy"=>"0", "number"=>"0818603625", "phone_type_id"=>"1", "primary"=>"0"}, "1462790308287"=>{"id"=>"", "_destroy"=>"0", "number"=>"0818654452", "phone_type_id"=>"1", "primary"=>"0"}}. how do i basically extract out each hash and << into the params[:phones_attributes] key (which doesnt exist until after
[12:27:27] brazenbraden: this assignment currently)
[12:27:32] smoitra: has joined #RubyOnRails
[12:27:37] universa1: BrazenBraden: not readable. create a gist with syntax highlighting.
[12:27:45] brazenbraden: universa1, alrighty
[12:28:37] Sylario: thx universa1
[12:29:28] nartes: has joined #RubyOnRails
[12:29:38] universa1: sylario: yw
[12:29:43] brazenbraden: universa1, does this help? https://gist.github.com/brazenbraden/58a23f365e64fbd25a58061d870322d8
[12:30:32] universa1: BrazenBraden: each_with_object should be your friend in this case.
[12:30:46] brazenbraden: alrighty, will look that up. thanks
[12:32:38] htmldrum: has joined #RubyOnRails
[12:32:57] bobbobbins: has joined #RubyOnRails
[12:33:13] tjaco: has joined #RubyOnRails
[12:34:06] brazenbraden: universa1, can you do something like each_with_object({}).with_index {||} ?
[12:34:12] Oliphaunte: has joined #RubyOnRails
[12:34:47] bobbobbins: has joined #RubyOnRails
[12:35:03] hypersymmetry: has joined #RubyOnRails
[12:35:36] universa1: BrazenBraden: each_with_index.each_with_object({}) {|(item, index), result|} probably
[12:35:58] Craigimus: has joined #RubyOnRails
[12:36:01] brazenbraden: fascinating. will give that a test. thanks
[12:36:12] universa1: or just use item.id ;)
[12:36:36] bobbobbins: has joined #RubyOnRails
[12:36:53] Craigimus: has joined #RubyOnRails
[12:36:58] brazenbraden: universa1, a very valid point :P
[12:37:20] brazenbraden: i was initially going hash.size (inside the loop)
[12:39:30] marcules: has joined #RubyOnRails
[12:41:15] crystal77: has joined #RubyOnRails
[12:43:41] brianpWins: has joined #RubyOnRails
[12:44:34] mdw: has joined #RubyOnRails
[12:44:57] djinni`: has joined #RubyOnRails
[12:45:28] dustinm`: has joined #RubyOnRails
[12:46:09] rails165: has left #RubyOnRails: ()
[12:47:56] finnnnnnnnnnn: has joined #RubyOnRails
[12:49:00] Malgorath: has joined #RubyOnRails
[12:49:13] bbrowning: has joined #RubyOnRails
[12:51:39] idefine: has joined #RubyOnRails
[12:51:42] durexlw: has joined #RubyOnRails
[12:51:57] durexlw: afternoon :)
[12:53:22] quazimodo: has joined #RubyOnRails
[12:54:11] artto: has joined #RubyOnRails
[12:54:26] artto: has joined #RubyOnRails
[12:54:43] tbuehlmann: has joined #RubyOnRails
[12:55:08] pawnbox: has joined #RubyOnRails
[12:55:42] roamingdog: has joined #RubyOnRails
[12:56:36] roamingdog: has joined #RubyOnRails
[12:58:05] durexlw: Anyone can recomment a commenting gem?
[12:58:38] roamingdog: has joined #RubyOnRails
[12:58:45] bruno-: has joined #RubyOnRails
[12:59:06] b0un7y: hi everyone, I'm looking at using a value that is passed to a record through the update or create, to be then added to another record that is separate
[12:59:36] b0un7y: Basically I want to be able to get :replied_article and push it into an array attached to another record called :reply_articles
[12:59:48] b0un7y: I'm struggling quite a bit and could use some help
[12:59:56] arup_r: has joined #RubyOnRails
[13:00:04] akshat: has joined #RubyOnRails
[13:00:13] r3vDev: has joined #RubyOnRails
[13:01:18] arup_r: Hi I am upgrading from Rails 4.0 to 4.1, and found this section http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#rendering-content-from-string .. So I have a code, where I used https://gist.github.com/aruprakshit/7fb1da9b0201f649fedf37653bd138c3#file-resource_controller-rb-L9 .. So, my question is should I use now `plain` instead of `text` ?
[13:01:42] dstarh: has joined #RubyOnRails
[13:03:57] durexlw: b0un7y: not sure if I understand what the question is
[13:03:58] mdw7: has joined #RubyOnRails
[13:05:01] b0un7y: durexlw: basically, when I update one record, I want to be able to use a value submitted in that form, to update a single parameter in another record
[13:05:38] ramortegui: has joined #RubyOnRails
[13:05:56] durexlw: b0un7y: so basically Model.parameter = params[:parameter] ?
[13:06:14] durexlw: Model.save...
[13:06:56] b0un7y: durexlw: yes I've been trying that but for some reason, it is unable to do it
[13:07:01] durexlw: arup_r: I'd expect what you say to be true... but I have no experience with it. Does render :text still work?
[13:07:02] b0un7y: I'll give it another shot and return
[13:07:04] fmcgeough: has joined #RubyOnRails
[13:07:27] durexlw: b0un7y: post a gist of the error, check your logs or use pry
[13:07:33] arup_r: it works, but it will be removed as the guide said
[13:07:51] durexlw: arup_r: yeah, sounds tricky then to keep using it
[13:08:34] GodFather: has joined #RubyOnRails
[13:10:37] b0un7y: durexlw: yep so the issue is that I first need to find that specific Model, and I when I try to go Article.find(params[:replied_article]) it returns and error that there is no id: value
[13:11:24] durexlw: b0un7y: that sounds logical to me in a way
[13:11:39] durexlw: it's probably: params[:replied_article_id]
[13:12:08] durexlw: the best is to do a 'binding pry' in your controller code just before the line that throws the error, then inspect params
[13:12:17] durexlw: will make sense instantly I guess
[13:13:01] b0un7y: durexlw: thanks a lot for the help, will continue hacking away at it
[13:13:01] tvw: has joined #RubyOnRails
[13:13:21] smoitra: has joined #RubyOnRails
[13:13:40] durexlw: go get them tiger :)
[13:17:04] artto_: has joined #RubyOnRails
[13:19:12] maletor2: has joined #RubyOnRails
[13:20:04] eljimmy: has joined #RubyOnRails
[13:20:35] Macaveli: has joined #RubyOnRails
[13:21:10] aegis3121: has joined #RubyOnRails
[13:23:38] Palsson: has joined #RubyOnRails
[13:26:49] chouhoulis: has joined #RubyOnRails
[13:27:34] chouhoulis: has joined #RubyOnRails
[13:30:42] broman: has joined #RubyOnRails
[13:31:05] Pazician: has joined #RubyOnRails
[13:31:43] broman: can anyone please help me? I have an already installed application on my rails server and that's ok! now, I need to run redmine but it gives me that message: Could not find 'rack' (~> 1.6) - did find: [rack-1.4.7,rack-1.4.5] (Gem::LoadError) -------- Is there any way to have the 2 rack versions installed?? what should I do?
[13:32:23] universa1: broman: bundler solves exactly that problem.
[13:32:38] universa1: http://bundler.io/
[13:32:43] Craigimus: has joined #RubyOnRails
[13:32:43] broman: universa1, should I give a bundle install here?
[13:33:18] universa1: http://bundler.io/v1.12/deploying.html
[13:33:36] stannard: has joined #RubyOnRails
[13:33:38] dsimon: has left #RubyOnRails: ("Leaving")
[13:35:20] smoitra: has joined #RubyOnRails
[13:38:48] broman: universa1, ok.. I got the other application working but the FIRST application now gives me this: You have already activated rack 1.6.0, but your Gemfile requires rack 1.4.7. Prepending `bundle exec` to your command may solve this
[13:39:59] pwnd_nsfw: Hmmm, seems that error message gives a solution
[13:40:32] broman: yes... it does... I just don't know how to use is... I'm deploying with unicorn+nginx
[13:42:07] Bubo: has joined #RubyOnRails
[13:42:19] mdw: has joined #RubyOnRails
[13:42:55] artto: has joined #RubyOnRails
[13:45:15] artto: has joined #RubyOnRails
[13:52:11] broman: this is what I have and can't use the bundle exec: CMD="/usr/local/rvm/gems/ruby-2.0.0-p643/wrappers/unicorn_rails -c config/unicorn.rb -D"
[13:52:46] Craigimus: has joined #RubyOnRails
[13:54:27] Craigimus: has joined #RubyOnRails
[13:55:20] yellow5: has joined #RubyOnRails
[13:55:50] emachnic_: has joined #RubyOnRails
[13:56:20] StevenXL: Hi everyone. I use carrierwave (0.10.0) in my Ruby app. That, in turn uses mini_magick, and mini_magick uses ImageMagick. I have deployed my app to Heroku.
[13:56:40] StevenXL: Do I need to do anything special so as to avoid being vulnerable to the "ImageTragick" bug?
[13:56:49] crameth: has joined #RubyOnRails
[13:57:31] tildes: stevenxl: ImageTragick can only affect you if your users can load images to the system, and you process them
[13:57:51] tildes: beyond that, it may depend on the gem implementation. paperclip seems to be safe for instance
[13:58:04] idefine: has joined #RubyOnRails
[13:58:10] pwnd_nsfw: But paperclip is dongs in regards to ease of use, etc.
[13:59:28] StevenXL: tildes, thank you. The system does in fact allow user to upload photos for their profile.
[13:59:55] tildes: stevenxl: at least png format is dangerous. I guess you have looked at imagetragick website and some other resources?
[14:00:08] pwnd_nsfw: If I may suggest Cloudinary
[14:00:25] pwnd_nsfw: It's free for a minute, but can get expensive for high traffic
[14:00:31] tildes: if you scale png picture with imagemagick, that's where the tragick can happen
[14:01:26] tildes: stevenxl: the fix is easy and at least with our setup did not require downtime
[14:02:29] King_Rex: has joined #RubyOnRails
[14:02:32] bronson: has joined #RubyOnRails
[14:02:54] senadh: has joined #RubyOnRails
[14:03:14] StevenXL: tildes: I haven't looked at the fixes yet. I am looking at it now, and I like the policy fix, but I don't know how to do that to a heroku deploy, and if it will persist when a dyno is restarted.
[14:03:36] universa1: stevenxl: ask the heroku support, they probably already did that.
[14:03:43] jeffleeismyhero: has joined #RubyOnRails
[14:06:18] finnnnnnnnnnn: has joined #RubyOnRails
[14:06:29] stannard: has joined #RubyOnRails
[14:09:33] broman: my unicorn only starts the first application... can anyone please help me? http://pastie.org/10830275 (init.d script)
[14:14:23] Craigimus: has joined #RubyOnRails
[14:14:54] RegulationD: has joined #RubyOnRails
[14:15:30] Oliphaunte: has joined #RubyOnRails
[14:16:41] context: you should have an init script for each application
[14:17:01] context: so you can control them one at a time. not lumping everything into one init script.
[14:17:02] Oliphaunte: has joined #RubyOnRails
[14:17:05] mrgreenfur: has joined #RubyOnRails
[14:17:32] someish: has joined #RubyOnRails
[14:18:25] dopamean_: has joined #RubyOnRails
[14:19:13] LastWhisper____: has joined #RubyOnRails
[14:19:57] maletor2: has joined #RubyOnRails
[14:21:55] supernov_a: has joined #RubyOnRails
[14:22:05] artto: has joined #RubyOnRails
[14:24:12] bobbobbins: has joined #RubyOnRails
[14:25:21] King_Rex: has joined #RubyOnRails
[14:25:31] akshat: has joined #RubyOnRails
[14:26:18] agent_white: has joined #RubyOnRails
[14:28:34] adgtl: has joined #RubyOnRails
[14:28:34] adgtl: has joined #RubyOnRails
[14:29:10] artto: has joined #RubyOnRails
[14:29:12] bruno-: has joined #RubyOnRails
[14:31:05] artto: has joined #RubyOnRails
[14:31:40] greghoggard: has joined #RubyOnRails
[14:31:59] nartes_: has joined #RubyOnRails
[14:33:30] htmldrum: has joined #RubyOnRails
[14:34:02] greghoggard: Hi. I am building a shopping cart for my app and I have everything set up for it but when I try to add an item to the cart it doesnt and throws me an error of UnknownAttributeError for quantity
[14:34:04] greghoggard: https://gist.github.com/greghoggard/f43e0aa57d673390e05d673bd6c3e4a8
[14:36:21] brenop: has joined #RubyOnRails
[14:36:44] habitullence: has joined #RubyOnRails
[14:36:58] Craigimus: has joined #RubyOnRails
[14:37:37] tbuehlmann: greghoggard: is quantity a column on your OrderItem model?
[14:37:54] workmad3: greghoggard: did you remember to run the migration?
[14:37:58] Malgorath: Can anyone help me with getting an idea where to start with this? I'm trying to Fetch a list of possible ids and titles from a parent model. THe problem is I'm in an engine trying to get information from the parent app model.
[14:38:18] fox_mulder_cp: greghoggard: what style for cart u using? i'm intrested in it too
[14:38:19] greghoggard: wow i spelled it wrong on the migration
[14:38:26] workmad3: greghoggard: that would do it :)
[14:38:26] greghoggard: thank you very much
[14:39:20] greghoggard: has joined #RubyOnRails
[14:40:27] seaworthy: has joined #RubyOnRails
[14:40:48] macsteps: has joined #RubyOnRails
[14:42:46] yellow5: has joined #RubyOnRails
[14:42:53] artto: has joined #RubyOnRails
[14:43:14] [Butch]: has joined #RubyOnRails
[14:45:34] mikecmpbll: has joined #RubyOnRails
[14:45:42] BrazenBraden_: has joined #RubyOnRails
[14:48:04] Slackman1: has joined #RubyOnRails
[14:48:09] Gkj8899: has joined #RubyOnRails
[14:48:19] futilegames: has joined #RubyOnRails
[14:49:33] Talltree: has joined #RubyOnRails
[14:50:08] Devalo: has joined #RubyOnRails
[14:50:10] Craigimus: has joined #RubyOnRails
[14:51:00] yellow5: has joined #RubyOnRails
[14:51:55] Craigimus: has joined #RubyOnRails
[14:53:06] Slackman1: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[14:55:12] Slackman1: has joined #RubyOnRails
[14:57:34] shinnya: has joined #RubyOnRails
[14:58:14] SteenJobs: has joined #RubyOnRails
[14:59:18] jgt: has joined #RubyOnRails
[15:00:02] jgt: hey folks, I'd like my asset compilation completely separate from Rails. If I stick a compiled JS file in /public, how do I access it?
[15:01:23] jhack: has joined #RubyOnRails
[15:01:33] ctrlrsf: has joined #RubyOnRails
[15:03:22] Guest91: has joined #RubyOnRails
[15:04:22] StevenXL: tildes, univera1 you guys are right
[15:04:26] Guest91: has joined #RubyOnRails
[15:04:28] StevenXL: Heroku already has the fix.
[15:04:45] StevenXL: https://devcenter.heroku.com/changelog-items/891
[15:04:57] jgt: figured it out; need to stick it in /public/assets
[15:05:00] StevenXL: It was not the first link on Google, which to my simple brain that can't look 5 links down means I missed it.
[15:05:39] finnnnnnnnnnn: has joined #RubyOnRails
[15:05:53] Slackman1: has joined #RubyOnRails
[15:06:12] zel: has joined #RubyOnRails
[15:06:42] flopsec: has joined #RubyOnRails
[15:09:08] fox_mulder_cp: folks, i'm intrested in question - i want analize web server logs with neural networks, such as fann. somebody use it for expirience, learingn or real tasks?
[15:10:50] DoubleMalt: has joined #RubyOnRails
[15:11:28] tjohnson: has joined #RubyOnRails
[15:12:41] morenoh149: has joined #RubyOnRails
[15:12:58] desnudopenguino: has joined #RubyOnRails
[15:13:31] ferr: I've created a helper method, however, it somehow gives false even though it does not receive a value
[15:13:33] ferr: https://gist.github.com/Fercell/024d34547507d9dec81419fb46667a95
[15:13:35] aegis3121: has joined #RubyOnRails
[15:13:38] harrymoreno: has joined #RubyOnRails
[15:15:08] context: ferr: what
[15:15:27] zave: has joined #RubyOnRails
[15:15:42] context: ferr: and line 5 IS where its being called thats failing? or you are just assuming that
[15:15:56] ferr: context: I do not need to call that, it just fails
[15:16:01] context: locked_color IS where its failing?
[15:16:07] chopin: has joined #RubyOnRails
[15:16:10] ferr: context: that's correct
[15:16:26] context: something has to be calling locked_color for it to throw an exceptiopm
[15:16:28] polishdub: has joined #RubyOnRails
[15:16:36] context: gist the stacktrace
[15:17:20] ferr: Ok, I found the issue, there were methods with same name on presenter
[15:17:23] ferr: Thanks anyways
[15:18:48] artto: has joined #RubyOnRails
[15:20:44] maletor2: has joined #RubyOnRails
[15:21:20] finnnnnnnnnnn: has joined #RubyOnRails
[15:22:26] arup_r: has joined #RubyOnRails
[15:22:56] DoubleMalt: has joined #RubyOnRails
[15:23:12] moeabdol: has joined #RubyOnRails
[15:25:19] disgrntld: has joined #RubyOnRails
[15:25:38] MaDErroR123: has joined #RubyOnRails
[15:25:46] wolfravenous: has joined #RubyOnRails
[15:25:51] dionysus69: has joined #RubyOnRails
[15:26:41] brent__: has joined #RubyOnRails
[15:27:53] durexlw: laterz all
[15:28:54] mdw: has joined #RubyOnRails
[15:29:43] jeffleeismyhero: I have several tables with a column called “import_id.” How can I ensure that my associations use that as a condition? For example, a Style belongs to a VehicleModel. Both have an “import_id” and the import_ids should be equal.
[15:33:27] Malgorath: is @array.push( model, model.parent) not a valid way to push from strings into an array?
[15:34:44] moeabdol: has joined #RubyOnRails
[15:38:56] rodferso1: has joined #RubyOnRails
[15:40:02] hobodave: has joined #RubyOnRails
[15:42:10] qejk: has joined #RubyOnRails
[15:42:46] RegulationD: has joined #RubyOnRails
[15:42:59] lxsameer: has joined #RubyOnRails
[15:44:56] Mia: has joined #RubyOnRails
[15:44:56] Mia: has joined #RubyOnRails
[15:45:26] Chachi: has joined #RubyOnRails
[15:46:40] cd83x: has joined #RubyOnRails
[15:46:45] mdw: has joined #RubyOnRails
[15:46:53] suchness: has joined #RubyOnRails
[15:48:27] suchness: So I have a bunch of different email types, and users can select whether they want to receive them or not. I am trying to determine the best way to have an email not send if a particular user doesn't want them. I am leaning towards having an interceptor, but the interceptor doesn't exactly know which email I am sending, just who sent it (by email) and who is receiving it (by email). Anyone handled this before? Perhaps I should just put
[15:48:27] suchness: some logic in each mail method?
[15:48:55] Megamos: has joined #RubyOnRails
[15:49:13] Ebok: has joined #RubyOnRails
[15:50:41] smathy: has joined #RubyOnRails
[15:51:35] sypheren: has joined #RubyOnRails
[15:52:20] artto: has joined #RubyOnRails
[15:52:51] davidw: has joined #RubyOnRails
[15:55:24] daivyk: has joined #RubyOnRails
[15:56:04] drale2k: has joined #RubyOnRails
[15:59:49] Devalo: has joined #RubyOnRails
[16:00:33] tubbo: Malgorath: can you re-phrase your question? not sure what you mean.
[16:01:02] suchness: Just trying to determine a good approach for selectively sending emails to people without the code ending up terrible
[16:01:05] Malgorath: tubbo: oh nvm, I figured it out. I was trying to concat some stuff but I needed to do it a different way... I think
[16:01:37] tubbo: suchness: i would say maybe it's better to just not enqueue the job/deliver the mail if the user has selected they don't want it. i wouldn't put that logic in the mailer specifically.
[16:01:40] suchness: Maybe having a class that takes the mailer, action, and arguments, checks what we are sending, then determines if it should be sent, and if so forwards the args to the right mailer
[16:01:59] mdw7: has joined #RubyOnRails
[16:02:04] tubbo: suchness: envisioning something on your model like `after_save :send_update_notice, if: :receives_update_notices?`
[16:02:05] suchness: So where to put the logic in that case?
[16:02:39] hobodave_: has joined #RubyOnRails
[16:02:44] tubbo: or you could have a PORO that does the work of determining whether to send the mail or not
[16:03:09] suchness: There is a strange thing in my app though that would prevent that. Some users receive emails intended for other users, so it would need to come after.
[16:03:32] Malgorath: tubbo: what I'm doing is accessing a parent model via a rails engine. What I'm trying to do is in the view have the ability to add a select box with value of ::parentmodel.id and description of ::parentmodel - ::parentmodel.parent :D
[16:03:44] King_Rex: has joined #RubyOnRails
[16:04:02] Bubo: has left #RubyOnRails: ("Leaving")
[16:04:20] bronson: has joined #RubyOnRails
[16:04:23] tubbo: suchness: "plain ol' ruby object", in this case since it's taking some state i'd make it a class.
[16:04:49] tubbo: suchness: yeah so in your case i think an object outside of the MVC world is a better fit
[16:04:55] suchness: Ok, that's pretty much in line with my first thought of sending the Mailer and args into a place that forwards them if they check out
[16:05:03] tubbo: yep, you got the right idea
[16:05:13] suchness: Sounds good to me! Thanks!
[16:07:49] blackmes1: has joined #RubyOnRails
[16:08:23] macsteps: has joined #RubyOnRails
[16:11:01] thesubr00t: has joined #RubyOnRails
[16:11:57] diegoaguilar: has joined #RubyOnRails
[16:12:35] rogue_koder: has joined #RubyOnRails
[16:13:31] thesubr00t: What is the best way to query current_user.posts + current_user.blogs.find([1, 2, 5]).posts ?
[16:14:21] Cache_Money: has joined #RubyOnRails
[16:14:21] tubbo: thesubr00t: what exactly are you looking to get out of that?
[16:14:28] Ebok: has joined #RubyOnRails
[16:14:54] thesubr00t: more specifically current_user.posts.find(array_of_ids) + current_user.blogs.find(array_of_ids).posts
[16:15:18] thesubr00t: tubbo, I want to get an array of uniq posts from the two queries
[16:15:59] thesubr00t: Is there a way to get it from one AR query?
[16:16:00] tubbo: so how is this constructed? does user have_many :posts and have_many :blogs, through: :posts?
[16:16:45] tubbo: hmm, does that '+' actually run the query though or will it actually combine the two queries together? i forget :D
[16:16:50] thesubr00t: User has_many :posts, has_many :blogs and Blog has_many :posts
[16:17:06] tubbo: thesubr00t: interesting, but a Post belongs_to :blog and belongs_to :user
[16:17:32] thesubr00t: tubbo, wait I'll post a gist
[16:17:48] tubbo: so maybe you could do current_user.posts.where(id: array).or(blog_id: array)
[16:18:07] tubbo: or however you do it...thought there was .or(), but it's been a sec
[16:20:05] mugurel: has joined #RubyOnRails
[16:20:15] mugurel: has left #RubyOnRails: ()
[16:20:49] mugurel: has joined #RubyOnRails
[16:21:01] thesubr00t: tubbo, https://gist.github.com/anonymous/a12274a347e5899ac20f722ee9ec901a
[16:21:33] maletor2: has joined #RubyOnRails
[16:21:41] thesubr00t: posts/blogs associations are with a joing table
[16:22:00] mugurel: Hello all. Does anyone know how can I test an app using Rspec, when I need to connect to an extra database?
[16:23:52] thesubr00t: tubbo, you get the idea?
[16:24:24] diegoviola: has joined #RubyOnRails
[16:24:38] zave: has joined #RubyOnRails
[16:24:44] jvanbaarsen: has joined #RubyOnRails
[16:25:26] tubbo: thesubr00t: yeah but that's actually not what you described
[16:25:38] tubbo: thesubr00t: because blog_post and post are different objects
[16:25:49] smathy: ACTION is wondering what a post without a blog is
[16:25:54] cschneid_: has joined #RubyOnRails
[16:26:16] tubbo: yeah me too
[16:26:26] smathy: ...ie. why all posts aren't through blogs for a user?
[16:26:26] thesubr00t: smathy, the name of Models are just examples
[16:26:40] i: has joined #RubyOnRails
[16:27:07] sypheren: has joined #RubyOnRails
[16:27:29] tubbo: thesubr00t: what does (current_user.posts + current_user.blogs.find([1, 2, 5]).posts).to_sql turn into? or does that end up being an array of some kind?
[16:27:29] smathy: thesubr00t, !rule3.3
[16:27:29] helpa: thesubr00t: NO FAKE CODE. If you're under an NDA, we cannot help you with your problem. Go hire a consultant.
[16:28:50] thesubr00t: smathy, helpa sorry, I wasn't aware of such rule. no NDA though :)
[16:29:28] guest56: has joined #RubyOnRails
[16:29:39] jgpawletko: has joined #RubyOnRails
[16:29:42] AzaToth: has joined #RubyOnRails
[16:30:39] sypheren: has joined #RubyOnRails
[16:33:18] thesubr00t: smathy, tubbo, here is what I tried so far https://gist.github.com/anonymous/6e0654b7fd7b1a28bdf2c330e9dbd600
[16:33:53] htmldrum: has joined #RubyOnRails
[16:34:11] tubbo: thesubr00t: ok so a few things
[16:34:13] azor: has joined #RubyOnRails
[16:34:54] tubbo: 1.) i think flat_map will run the query, it won't add a DISTINCT constraint onto it. so you already ran a query to get data, meaning that snippet of code is at least 2 SQL queries.
[16:34:57] smathy: thesubr00t, for again, many channels (this one included) have a topic which lists important information like the rules. Your IRC client should show that to you when you join a new channel.
[16:34:58] jgpawletko: has left #RubyOnRails: ()
[16:35:25] tubbo: 2.) .uniq being applied to the end of that push() call is definitely running it "in Ruby" and again, not adding a DISTINCT condition to the SELECT query
[16:35:49] tubbo: what's the social_accounts thing thesubr00t?
[16:35:59] nartes_: has joined #RubyOnRails
[16:36:17] Malgorath: Why does this not give back the @workpackages to_s function? its in a view: <%= todolist.title %> - <%= @workpackages.select(todolist.work_package_id).to_s %>
[16:36:17] tubbo: oh wait never mind
[16:36:37] beingjohnm: I have a form that asks a user's birthdate. Every time it has posted the data in the format "yyyy-mm-dd" but last week a prospect was trying my software out and it sent the date as "mm/dd/yyyy". I honestly cannot figure out why. Has anybody come across that before?
[16:37:03] tubbo: thesubr00t: what does `(current_user.social_accounts.find(social_account_ids) + current_user.channels.find(channel_ids).social_accounts).to_sql` return?
[16:37:25] thesubr00t: tubbo, one sec
[16:37:30] rakm: has joined #RubyOnRails
[16:39:36] maletor2: has joined #RubyOnRails
[16:40:22] smathy: Malgorath, neither likely version of `select` takes an integer as an argument.
[16:40:56] smathy: beingjohnm, "trying my software out" means they were running it on their own server?
[16:41:25] thesubr00t: tubbo, it gives an error of undefined social_accounts for Array
[16:41:49] thesubr00t: tubbo, current_user.channels.find(channel_ids).social_accounts
[16:42:10] beingjohnm: smathy: no, on my heroku. They were poking around to see if it would be a good fit for their business.
[16:42:21] yellow5: has joined #RubyOnRails
[16:42:34] Malgorath: smathy: can you suggest an alternative for what I"m doing?
[16:43:00] smathy: beingjohnm, are you running some date selector on the front end? In JS?
[16:43:09] jgt: has joined #RubyOnRails
[16:43:14] smathy: Malgorath, it's not apparent from your code what you're doing.
[16:43:23] smathy: ...or what you're trying to do.
[16:44:31] jgpawletko: has joined #RubyOnRails
[16:44:39] Malgorath: smathy: I have an array being passed (@workpackages) and my todolist is a child (belongs_to) and I want to get the to_s from workpackages
[16:44:56] beingjohnm: smathy: I'm using this gem (https://github.com/bootstrap-ruby/rails-bootstrap-forms) which provides a date dropdown. I had tested that across IE, Safari, and Chrome and this was the only time the date posted in that format.
[16:45:18] manfrin: has joined #RubyOnRails
[16:45:21] Malgorath: for that specific todolist entry. the integer in the table is work_package_id
[16:46:02] thesubr00t: tubbo, Why you asked for that sql?
[16:49:21] tubbo: thesubr00t: because i wanted to see if it would work haha
[16:49:45] desnudopenguino: hey. so i am trying to get rails up on an apache server. what method should I try for that?
[16:49:49] tubbo: thesubr00t: but to optimize your AR queries, i think `to_sql` is a great way of figuring out what you're about to do to your DB server..
[16:50:00] tubbo: desnudopenguino: what OS?
[16:50:51] njero: has joined #RubyOnRails
[16:50:57] desnudopenguino: hey tubbo! I got rails up on OpenBSD the other day. It just doesn't like the non-package methods (like the ones you suggested) probably because of the difference in library names
[16:51:45] tubbo: forgot about that
[16:51:52] tubbo: desnudopenguino: !ubuntu
[16:51:52] helpa: desnudopenguino: Ubuntu, Ruby, ruby-install, chruby, Rails setup guide: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/ - Gauranteed to work 100% of the time or your money back!
[16:52:05] tubbo: oh wait a second i'm sorry
[16:52:06] macsteps: has joined #RubyOnRails
[16:52:17] tubbo: never mind :P
[16:52:35] tubbo: desnudopenguino: the way to do it for apache is to either use Passenger or ProxyPass to a unicorn/puma/etc. server.
[16:54:55] Malgorath: smathy: should i use @workpackages.map ?
[16:55:47] BlacksmithMetash: has joined #RubyOnRails
[16:55:51] wolfravenous: has joined #RubyOnRails
[16:56:06] aegis3121: has joined #RubyOnRails
[16:56:51] Devalo: has joined #RubyOnRails
[16:57:33] djbkd: has joined #RubyOnRails
[16:59:15] Megamos: has joined #RubyOnRails
[16:59:33] evenix: has joined #RubyOnRails
[16:59:53] djbkd: has joined #RubyOnRails
[17:00:18] evenix: hi all im getting this weird issues where loading an action within a controller is inconsistent: https://gist.github.com/richardsondx/52da1fd8e80dab12e37761aa8bcdfe43
[17:00:29] evenix: Sometimes I get the following error: AbstractController::ActionNotFound (The action 'index' could not be found for Api::V1::StatsController):
[17:00:52] evenix: and sometime I don't. If multiple instant are loaded on the view at the same time (lets say 15) some of them will return the error and not be displayed on the view.
[17:01:10] desnudopenguino: tubbo: I'll give passenger a shot
[17:01:48] reppair: has joined #RubyOnRails
[17:02:46] tvw: has joined #RubyOnRails
[17:02:59] reppair: Hello all.Sorry for asking non-rails question here but no luck so far anywhere else.. I'm using ruby WITHOUT rails. How can I define a 'section' in .erb file and then yield some html into it from another template.erb? for example: in my main.erb I want to define <title><%= 'section_name' %></title>, and then from another template that I am yielding content in the <body> tag, I also like to yield the title for page from that template.. ?
[17:03:38] artto: has joined #RubyOnRails
[17:04:02] reppair: any ideas ? :)
[17:06:38] mikecmpbll: has joined #RubyOnRails
[17:07:38] bbrowning: has joined #RubyOnRails
[17:07:38] tubbo: reppair: there's #ruby fwiw.
[17:07:57] tubbo: reppair: but i think you'd need to have that method defined to yield some Ruby code out in the place of the ERb
[17:08:08] reppair: asked there..
[17:08:27] tubbo: so if you have the current_title() method defined on whatever object is rendering out that template, it should be usable in both templates..
[17:08:38] tubbo: reppair: some code might help
[17:08:43] Devalo: has joined #RubyOnRails
[17:08:51] Cohedrin: has joined #RubyOnRails
[17:09:51] DragonPunch: has joined #RubyOnRails
[17:10:04] tubbo: reppair: !gist
[17:10:04] helpa: reppair: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[17:10:39] reppair: sure, it will take a min
[17:11:35] bbrowning_: has joined #RubyOnRails
[17:11:47] d0nn1e: has joined #RubyOnRails
[17:12:40] ferr: has joined #RubyOnRails
[17:13:13] smathy: beingjohnm, might be some locale setting in the user's browser.
[17:13:43] smathy: Malgorath, maybe, try it.
[17:14:59] Devalo: has joined #RubyOnRails
[17:16:56] cnk: has joined #RubyOnRails
[17:17:05] beingjohnm: smathy: interesting thought. I'll do some googling along those lines. Thanks.
[17:19:42] haaj: has joined #RubyOnRails
[17:19:54] yellow5: has joined #RubyOnRails
[17:20:24] greghoggard: has joined #RubyOnRails
[17:20:31] habitullence: has joined #RubyOnRails
[17:20:33] reppair: well here is an example .. https://gist.github.com/anonymous/a16216b1cdceede8c946e613c5014c29; and here is the platform that i HAVE to use for the project :( - https://github.com/jackdoe/zinc .. now the question is how can i also define a second 'yield' on the layout.erb and put some html in to it from the fileThatIsBeingRenderedWithTheYieldStatment.erb template..
[17:21:03] Megamos: has joined #RubyOnRails
[17:21:49] kgrz: has joined #RubyOnRails
[17:21:52] reppair: tubbo: , helpa: ^^
[17:22:29] kgrz: has joined #RubyOnRails
[17:23:12] idefine: has joined #RubyOnRails
[17:24:14] Megamosaren: has joined #RubyOnRails
[17:26:33] glasz_: has joined #RubyOnRails
[17:27:11] idefine_: has joined #RubyOnRails
[17:27:18] stannard: has joined #RubyOnRails
[17:27:24] srinidhi: has joined #RubyOnRails
[17:29:28] idefine: has joined #RubyOnRails
[17:30:10] rubyonrails068: has joined #RubyOnRails
[17:30:26] srinidhi1: has joined #RubyOnRails
[17:31:38] SteenJobs: has joined #RubyOnRails
[17:32:43] eljimmy: has joined #RubyOnRails
[17:32:58] Oliphaunte: has joined #RubyOnRails
[17:34:43] Pazician: has joined #RubyOnRails
[17:35:04] Pazician: has joined #RubyOnRails
[17:35:40] srinidhi: has joined #RubyOnRails
[17:35:54] LastWhisper____: has joined #RubyOnRails
[17:36:25] tubbo: reppair: ah ok, it seems zinc depends on sinatra? is that correct?
[17:36:34] azor: has left #RubyOnRails: ("WeeChat 1.4")
[17:36:54] tubbo: reppair: so i'll bet money that http://www.sinatrarb.com/faq.html#partials would work for you just like it would in a normal sinatra app.
[17:37:09] jxs_: has joined #RubyOnRails
[17:37:13] reppair: :* :* going to read it right now
[17:40:27] zave: has joined #RubyOnRails
[17:41:15] jimmtt: has joined #RubyOnRails
[17:41:22] jimmtt: does everything in before_save { .. } really have to only be in one line?
[17:41:42] jimmtt: it's apparently a syntax error to upt it as before_save, newline, {, newline, code, etc
[17:42:03] jimmtt: seems pretty weird
[17:42:13] jgt: has joined #RubyOnRails
[17:42:35] emachnic: has joined #RubyOnRails
[17:42:55] kkeuning: has joined #RubyOnRails
[17:43:10] baweaver: jimmtt no. What's the code look like?
[17:43:19] baweaver: you could also just use do ... end
[17:43:51] baweaver: ah, wait, do you mean you did: before_save\n{ ?
[17:44:01] baweaver: keep those on the same line
[17:44:10] baweaver: otherwise it'd be ambiguous
[17:44:34] jimmtt: so if more than one thing has to be done bfore saving it has to all go in one line
[17:44:37] harrymoreno: has joined #RubyOnRails
[17:44:48] jimmtt: or just the {
[17:45:41] djbkd: has joined #RubyOnRails
[17:46:14] djbkd: has joined #RubyOnRails
[17:46:30] aegis3121: has joined #RubyOnRails
[17:46:49] helpa: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[17:47:02] baweaver: anyways, gotta go for a bit
[17:49:05] jimmtt: the question was pretty obvious without a code sample
[17:49:11] jimmtt: turned out it just needs the { on the same line
[17:49:41] jimmtt: has left #RubyOnRails: ()
[17:51:34] pwnd_nsfw: what a nerd
[17:53:30] hobodave: has joined #RubyOnRails
[17:55:13] glasz_: has left #RubyOnRails: ()
[17:55:26] glasz_: has joined #RubyOnRails
[18:00:39] crystal77: has joined #RubyOnRails
[18:00:56] zave: has joined #RubyOnRails
[18:01:41] habitullence: has joined #RubyOnRails
[18:02:02] glasz: with rails 5 my default rake task dependencies are run in reverse order as opposed to rails 4.2 :(
[18:02:10] glasz: what changed? what do i need to change?
[18:02:19] glasz: `task default: [ :rubocop, :test ]`
[18:02:23] broman: -> /ebeji/rails/bundle exec /usr/local/rvm/gems/ruby-2.0.0-p643/wrappers/unicorn_rails -c config/unicorn.rb -D =========== there is no such file or directory.. from where should I be calling this? It's in the /etc/init.d/unicorn script
[18:03:11] glasz: from inside your rails app's directory, broman
[18:03:23] broman: glasz, how can I do that on the script?
[18:03:43] broman: I know if i type cd ... and then issue the command its ok.. but what should I do within the script?
[18:03:47] glasz: `cd /path/to/rails/app`, i suppose.
[18:03:48] fox_mulder_cp: broman: i think tthat in init.d script u must cd /app_root_dir && unicorn ..
[18:03:55] djbkd: has joined #RubyOnRails
[18:03:59] broman: let me try this
[18:04:52] broman: cd /ebeji/rails/ && bundle exec /usr/local/rvm/gems/ruby-2.0.0-p643/wrappers/unicorn_rails -c config/unicorn.rb -D
[18:04:59] broman: it doesn't start
[18:05:32] glasz: what does it say?
[18:05:35] broman: but if I type this in thats ok
[18:05:40] broman: glasz, starting...
[18:05:41] krelly2: has joined #RubyOnRails
[18:05:44] broman: and ends smoothly
[18:06:09] glasz: can you gist your init script, broman?
[18:07:52] JoshGlzBrk: has joined #RubyOnRails
[18:08:08] etiago: has joined #RubyOnRails
[18:08:11] emachnic: has joined #RubyOnRails
[18:08:23] artto: has joined #RubyOnRails
[18:08:24] bronson: has joined #RubyOnRails
[18:08:54] emachnic: has joined #RubyOnRails
[18:09:01] broman: glasz, https://gist.github.com/brenoman/321fb5126836b9fd38a57bf79391d89b
[18:09:38] wolfravenous: has joined #RubyOnRails
[18:10:01] srinidhi: has joined #RubyOnRails
[18:10:30] glasz: does the variable `$RAILS_APP` exist or have any value?
[18:10:54] glasz: dont you mean RAILS_ROOT?
[18:10:55] broman: im printing it
[18:11:28] tubbo: RAILS_APP=$(cat app/**/*.rb) haha
[18:11:32] broman: Im messing with it so i took the most close version to the solution...
[18:12:11] glasz: please try cd $RAILS_ROOT instead of cd $RAILS_APP
[18:12:28] tubbo: yeah it seems like you're using $RAILS_ROOT everywhere else..
[18:12:49] broman: it says starting
[18:12:54] broman: but it doesnt
[18:13:30] JoshGlzBrk: has joined #RubyOnRails
[18:14:26] broman: any ideas?
[18:14:49] broman: this is the line I need to alter: CMD="cd $RAILS_ROOT && bundle exec /usr/local/rvm/gems/ruby-2.0.0-p643/wrappers/unicorn_rails -c config/unicorn.rb -D"
[18:16:51] Craigimus: has joined #RubyOnRails
[18:18:14] krelly2: anyone here worked with CarrierWave ? I have model with multiple images attached to it. I want to create thumbnail ONLY for the first image from the list (It will be displayed on index action).
[18:18:38] tubbo: broman: what's `aee`?
[18:18:56] fox_mulder_cp: krelly2: - first item - bad idea. in real apps used uuids, and .first - really may be not first///
[18:19:12] SteenJobs: has joined #RubyOnRails
[18:19:22] davidw: has joined #RubyOnRails
[18:20:08] blackmes1: has joined #RubyOnRails
[18:20:16] fox_mulder_cp: krelly2: may add a boolean 'flag' for img.where(cover: true)
[18:21:25] broman: just printing
[18:22:22] emachnic_: has joined #RubyOnRails
[18:22:31] tubbo: broman: da fuck does that mean lol
[18:22:34] fox_mulder_cp: krelly2: and, of cource, thit image may be posted to server as not first, so user can select by himself - what image stay as cover photo
[18:22:50] broman: it's like yooooo
[18:23:07] tubbo: krelly2: i'm a big fan of just having it as a different attachment
[18:23:10] tubbo: like cover_image instead of image
[18:23:25] Oliphaunte: has joined #RubyOnRails
[18:23:56] fox_mulder_cp: tubbo: i said some lines ago about img.cover boolean, for user's selection
[18:24:29] tubbo: fox_mulder_cp: i know.
[18:24:40] krelly2: fox_mulder_cp: thanks for clarifying, i dont thinked in this way, probably will use boolean field for that
[18:25:00] glasz: broman: it may be related to your rvm environment not being properly loaded during init?
[18:25:17] fox_mulder_cp: krelly2: this add to user function to switch cover photo when it needed
[18:25:22] emachnic: has joined #RubyOnRails
[18:25:24] tubbo: i use refile, not carrierwave (anymore), so i feel like it's easier to just attach a file_id directly to the model rather than reusing the separate model or whatever
[18:25:35] Axilla: anyone who uses activeadmin how can I use my application controller for a specific controller action only?
[18:25:56] mdw: has joined #RubyOnRails
[18:26:07] jstransky: has joined #RubyOnRails
[18:26:28] glasz: broman: are you basing your script off this gist? https://gist.github.com/canweriotnow/1065357
[18:27:10] evenix: has joined #RubyOnRails
[18:27:29] glasz: broman: have a look at this - http://blog.kiskolabs.com/post/722322392/unicorn-init-scripts
[18:27:37] evenix: im getting this weird issues where loading an action within a controller is inconsistent: https://gist.github.com/richardsondx/52da1fd8e80dab12e37761aa8bcdfe43 Sometimes I get the following error: AbstractController::ActionNotFound (The action 'index' could not be found for Api::V1::StatsController): and sometime I don't
[18:27:49] evenix: there's some inconsistency on the way that controller action is loaded
[18:27:55] evenix: any idea anyone
[18:28:46] mikecmpbll: has joined #RubyOnRails
[18:29:38] BlacksmithMetash: i like some help importing files via tab delimiter
[18:29:59] BlacksmithMetash: i had been following some examples but i get stuck in bugs
[18:30:06] BlacksmithMetash: can some one help me?
[18:31:06] krelly2: tubbo: i do not want to do that, because there is no actual difference between cover image and other images (It's not a separate image). I mean it will be displayed among the other attached images on show action
[18:31:45] fox_mulder_cp: BlacksmithMetash: ?
[18:32:07] JoshGlzBrk: has joined #RubyOnRails
[18:33:19] manfrin: has joined #RubyOnRails
[18:33:21] xall: has joined #RubyOnRails
[18:34:08] djbkd: has joined #RubyOnRails
[18:34:08] htmldrum: has joined #RubyOnRails
[18:35:36] mdw7: has joined #RubyOnRails
[18:36:25] mdw7: has joined #RubyOnRails
[18:37:13] mdw7: has joined #RubyOnRails
[18:37:25] Malgorath: has joined #RubyOnRails
[18:37:25] Malgorath: has joined #RubyOnRails
[18:37:55] BlacksmithMetash: fox_mulder_cp: look my whole code: https://paste.gnome.org/pmu4shrn3/mwewcy
[18:38:07] BlacksmithMetash: bug: http://picpaste.com/qT2dN1Yp.jpg
[18:38:28] bbrowning: has joined #RubyOnRails
[18:39:58] davidw: has joined #RubyOnRails
[18:39:59] Malgorath: Can someone give me an example of using a f.select that will select the proper item on the edit of a form?
[18:40:13] djbkd: has joined #RubyOnRails
[18:40:35] fox_mulder_cp: Malgorath: in model this property - has value?
[18:41:05] Malgorath: fox_mulder_cp: usually yes
[18:41:20] BlacksmithMetash: thx fox_mulder_cp
[18:41:25] fox_mulder_cp: BlacksmithMetash: self.some - method of class, ss, not instance
[18:42:04] Malgorath: fox_mulder_cp: this is how I am currently building the field in view: <%= f.select(:work_package_id, options_for_select(@workpackages.collect {|w| [ "#{w.project} - #{w}", w.id ] })) %>
[18:42:10] fox_mulder_cp: BlacksmithMetash: http://stackoverflow.com/questions/386115/to-use-self-or-not-in-rails
[18:42:35] Malgorath: I tried adding :selected => todolist.work_package_id but that does not select anything
[18:43:15] kgrz: has joined #RubyOnRails
[18:43:46] emachnic_: has joined #RubyOnRails
[18:43:52] fox_mulder_cp: Malgorath: hm... i use this <%= f.collection_select :registrator_id, @registrator.all, :id, :name, prompt: true %>
[18:44:34] Oliphaun_: has joined #RubyOnRails
[18:44:48] Malgorath: fox_mulder_cp: I'll try that method
[18:44:49] arup_r: has joined #RubyOnRails
[18:45:26] fox_mulder_cp: Malgorath: registrator.all - must be get in new|edit methods in controller
[18:46:58] Malgorath: yeah I got tha tworking fine
[18:47:51] Malgorath: fox_mulder_cp: thats working now, I just have to figure out how to format what is going into the :name area to give the info I need
[18:48:14] fox_mulder_cp: tubbo: i help people, you're not going to block me? :)
[18:49:14] srinidhi: has joined #RubyOnRails
[18:49:29] fox_mulder_cp: Malgorath: twitter bootstrap classes or :name value?
[18:49:52] tubbo: fox_mulder_cp: do you not understand how "helping" people with wrong/useless information is actually making things worse for people coming in here with problems? that's the only thing i was trying to avoid.
[18:50:30] PlasmaStar: has joined #RubyOnRails
[18:50:34] tubbo: fox_mulder_cp: since you haven't been cluttering the chat with wrong information today, i haven't muted you. but if you do that, i will definitely mute you.
[18:50:56] fox_mulder_cp: tubbo: thanks for hints ^) agree with it
[18:52:52] fox_mulder_cp: Malgorath: for my :name i concatenate first, middle and sirnames for private persons
[18:53:08] DoctorMonocular: has joined #RubyOnRails
[18:53:20] fox_mulder_cp: in virtual field
[18:54:09] BlacksmithMetash: give me a new error that i search
[18:54:25] fox_mulder_cp: BlacksmithMetash: ?
[18:55:13] BlacksmithMetash: has joined #RubyOnRails
[18:55:19] emachnic: has joined #RubyOnRails
[18:55:37] BlacksmithMetash: undefined method `each' for nil:NilClass
[18:55:40] Malgorath: fox_mulder_cp: how do you concat them?
[18:56:41] dikaio: has joined #RubyOnRails
[18:57:04] meoblast001: has joined #RubyOnRails
[18:57:12] fox_mulder_cp: Malgorath: def name; "#{first} #{middle} #{sirname}"; end
[18:57:30] Malgorath: fox_mulder_cp: I see
[18:57:53] fox_mulder_cp: BlacksmithMetash: nil -> none in variable. none can't has methods :)
[18:58:26] BlacksmithMetash: but did you see my code?
[18:58:42] BlacksmithMetash: @compradores = Compradore.all
[18:58:57] BlacksmithMetash: in controller.rb on the controller folder
[18:59:36] mikecmpbll: has joined #RubyOnRails
[18:59:56] Malgorath: fox_mulder_cp: options_for_select(@workpackages.collect {|w| [ "#{w.project} - #{w}", w.id ] }) was how I was concating it prior to this change. Any tip on how to make something similar? or do you use the def inside the f.collection_select ?
[18:59:57] fox_mulder_cp: tubbo: can we name controller as controller? may be it fails by namespaces equal?
[19:00:23] tbuehlmann: that's technically wrong, nil can and responds to methods
[19:00:33] fox_mulder_cp: Malgorath: def in model.rb
[19:00:57] Malgorath: fox_mulder_cp: the value comes from a parent model (I'm working inside an engine)
[19:01:57] fox_mulder_cp: Malgorath: now i have no qualify and deep knowledges of rails for helping u wiith engine (
[19:01:58] DoctorMonocular: has joined #RubyOnRails
[19:02:19] fox_mulder_cp: Malgorath: but i take u some hints, may be it helps u
[19:03:12] Macaveli: has joined #RubyOnRails
[19:03:14] Malgorath: fox_mulder_cp: Im starting to think engines are just crazy new or something people avoid for the lack of help I can seem to find online
[19:04:27] fox_mulder_cp: Malgorath: i'm learn rails and make my own hosting of apps control panel
[19:04:52] Malgorath: fox_mulder_cp: sounds neat
[19:05:05] fox_mulder_cp: Malgorath: but if u give me a link about engines - i'mm to be glad
[19:05:23] tubbo: fox_mulder_cp / BlacksmithMetash - you can't name a controller just "controller" afaik
[19:05:24] blackmes1: has joined #RubyOnRails
[19:05:51] tubbo: i think it has to be something like $THINGSController
[19:05:59] tubbo: otherwise rails wouldn't be able to route it and stuff, right?
[19:06:17] Malgorath: I figured a way around it. fox_mulder_cp far as a link goes, not really a whole lot out there other then whats on rails main website about engines
[19:07:39] idefine: has joined #RubyOnRails
[19:08:14] Livadi: has joined #RubyOnRails
[19:09:00] wolfravenous: has joined #RubyOnRails
[19:10:18] tjaco: has joined #RubyOnRails
[19:11:00] BlacksmithMetash: tubbo: i trying to resolve myself, i facing several bugs before i can actually see some view
[19:12:50] MissionCritical: has joined #RubyOnRails
[19:14:53] fox_mulder_cp: tubbo: can i write in my model one line field such as "my_property = 'somethere'" without "def my_property; 'somethere'; end" ?
[19:14:56] jenrzzz: has joined #RubyOnRails
[19:14:56] jenrzzz: has joined #RubyOnRails
[19:15:46] zave: has joined #RubyOnRails
[19:18:50] manfrin: has joined #RubyOnRails
[19:20:42] scepticulous: has joined #RubyOnRails
[19:22:37] kgrz: has joined #RubyOnRails
[19:25:24] DoctorMonocular: has joined #RubyOnRails
[19:29:02] ftj: has joined #RubyOnRails
[19:29:09] ftj: doing a simple marketplace application where users can upload/download files
[19:29:28] ftj: I want to store a record of the download (user_id, product_id, date and stuff)
[19:29:35] ftj: should that use belongs_to for both user and product?
[19:30:31] srinidhi: has joined #RubyOnRails
[19:30:56] Devalo: has joined #RubyOnRails
[19:31:05] ftj: Or should I use has_one?
[19:32:17] yfeldblum: has joined #RubyOnRails
[19:33:13] htmldrum: has joined #RubyOnRails
[19:34:04] DoctorMonocular: has joined #RubyOnRails
[19:36:07] Devalo: has joined #RubyOnRails
[19:36:29] desnudopenguino: ftj: I would assume user has_one product, product belongs_to user
[19:36:44] ftj: users can upload unlimited products
[19:36:57] ftj: and download unlimited
[19:37:03] arBmind: has joined #RubyOnRails
[19:37:10] ftj: So when someone downloads a product, I want to create a record of that download/purchase
[19:37:53] kgrz: has joined #RubyOnRails
[19:39:16] desnudopenguino: okay, that's more of a db design question at the core. So you have users, and you have products
[19:39:24] desnudopenguino: a user can order many products right?
[19:39:44] desnudopenguino: and a product can be ordeded by many users, I am assuming (or are they 1-of-a-kind products?)
[19:40:34] tubbo: fox_mulder_cp: well if you just do `foo = 'something'`, and foo= isn't defined as a method (or attr_accessor), ruby will assign 'something' to a local variable called `foo`.
[19:42:24] zave: has joined #RubyOnRails
[19:42:31] nofxx: desnudopenguino, user x order x product ... user hm products throught orders
[19:43:51] yfeldblum: has joined #RubyOnRails
[19:44:19] desnudopenguino: nofxx: i know, trying to help ftj
[19:44:44] ftj: desnudopenguino sounds like habtm
[19:44:52] ftj: in general, but I need it through Downloads
[19:45:10] desnudopenguino: keeping track through downloads?
[19:45:14] ftj: yeah, has_many :through. didn't know that existed :P
[19:45:22] ftj: perfect
[19:45:41] desnudopenguino: that's where i was going
[19:45:51] jobewan: has joined #RubyOnRails
[19:46:50] jsrn_: has joined #RubyOnRails
[19:47:53] dopamean_: has joined #RubyOnRails
[19:48:12] zave: has joined #RubyOnRails
[19:48:57] zave: has joined #RubyOnRails
[19:49:37] zave: has joined #RubyOnRails
[19:50:23] zave: has joined #RubyOnRails
[19:51:55] renanoronfle: has joined #RubyOnRails
[19:52:15] aegis3121: has joined #RubyOnRails
[19:53:32] Sharcho: has joined #RubyOnRails
[19:54:07] Sharcho: has left #RubyOnRails: ()
[19:54:33] desnudopenguino: anyone have any experience getting "incomplete response received from application" on a LAMR stack?
[19:55:02] jancel: has joined #RubyOnRails
[19:55:18] tubbo: LAMR? haha
[19:55:25] tubbo: she's a bad LAMR JAMR
[19:55:27] desnudopenguino: Linux, Apache, MySQL, Rails
[19:55:37] tubbo: you can't just make up an acronym lol
[19:55:53] desnudopenguino: well LAMP is a thing, I figured LAMR was too
[19:56:14] desnudopenguino: if it wasn't now it is!
[19:56:26] tubbo: well anyway, that message is typically shown when apache and your app server (i think you said you were using passenger?) isn't connected
[19:56:34] jancel: hmmm... i am more linux, nginx, rails, monit, postgres...
[19:56:35] desnudopenguino: and devs using it shall henceforth be known as LAMR JAMR's
[19:56:35] tubbo: because it's an apache error, not a passenger error, right?
[19:57:00] tubbo: desnudopenguino: so i would try running bin/rails server on your production server just to make sure the app can boot
[19:57:12] tubbo: like that typically happens to *me* if the app can't actually boot and thus the server can't start.
[19:58:13] desnudopenguino: but I can't connect to it over the innerwebs
[19:59:21] tubbo: desnudopenguino: well you'd have to go to yourserver.com:3000 instead of just yourserver.com
[19:59:26] tubbo: but if it starts up that's a good first step
[19:59:33] tubbo: !passenger
[19:59:33] helpa: Passenger (mod_rails) is an Apache / nginx module for running Rails applications. It is fast, sexy and very easy to setup. http://www.modrails.com/. Other resources: Peepcode's setup guide: http://peepcode.com/products/phusion-passenger Railscasts: http://railscasts.com/episodes/122-passenger-in-development
[19:59:40] tubbo: ahh that's too old
[20:00:09] yfeldblum: has joined #RubyOnRails
[20:00:29] desnudopenguino: tubbo: I get unable to connect. I have 3 other sites hosted on the server through apache
[20:00:48] desnudopenguino: I have passenger set up
[20:01:03] desnudopenguino: https://www.digitalocean.com/community/tutorials/how-to-setup-a-rails-4-app-with-apache-and-passenger-on-centos-6
[20:01:07] desnudopenguino: used that sort-of
[20:01:32] desnudopenguino: https://www.phusionpassenger.com/library/install/apache/install/oss/trusty/
[20:02:47] Coldblackice: has joined #RubyOnRails
[20:02:58] desnudopenguino: the second link, the phusionpassenger one I used to install and configure it, then I used the digitalocean link to set up the virtualhost config
[20:03:42] jenrzzz_: has joined #RubyOnRails
[20:05:29] Disavowed: has joined #RubyOnRails
[20:05:36] djbkd: has joined #RubyOnRails
[20:06:30] adre: has joined #RubyOnRails
[20:07:53] jhack: has joined #RubyOnRails
[20:11:25] manfrin_: has joined #RubyOnRails
[20:11:55] tubbo: desnudopenguino: did you see this one? https://www.digitalocean.com/community/tutorials/how-to-install-rails-apache-and-mysql-on-ubuntu-with-passenger
[20:12:09] tubbo: seems a little more relevant to your problem
[20:12:36] desnudopenguino: i should have assumed DO had that *facepalm*
[20:13:31] tubbo: yeah they got a lot of guides
[20:14:37] DoctorMonocular: has joined #RubyOnRails
[20:18:35] artto: has joined #RubyOnRails
[20:22:55] pawnbox: has joined #RubyOnRails
[20:26:57] stannard: has joined #RubyOnRails
[20:27:45] RegulationD: has joined #RubyOnRails
[20:28:40] DoctorMonocular: has joined #RubyOnRails
[20:29:02] ur5us: has joined #RubyOnRails
[20:29:35] Jon30: has joined #RubyOnRails
[20:30:14] eljimmy: has joined #RubyOnRails
[20:32:05] jenrzzz: has joined #RubyOnRails
[20:33:14] etiago: has joined #RubyOnRails
[20:35:42] someish: has joined #RubyOnRails
[20:35:43] tris: has joined #RubyOnRails
[20:36:22] desnudopenguino: tubbo: curling localhost:3000 gives me html and 12 sources rendered in the log output, no errors appearing in the log, I get this error when wget'ing localhost:3000...
[20:36:25] desnudopenguino: ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:12
[20:36:40] Guaguasi: has joined #RubyOnRails
[20:36:44] cleopatra: has joined #RubyOnRails
[20:36:58] fox_mulder_cp: tubbo: local variable of instance, yes?
[20:37:37] tubbo: fox_mulder_cp: local variable of that particular code block's scope, not necessarily an instance and certainly not shareable between methods (like an actual instance variable)
[20:37:46] tubbo: fox_mulder_cp: but, for purposes of this discussion, yeah.
[20:37:56] tubbo: desnudopenguino: i'm afraid i've never seen that before
[20:38:12] tubbo: desnudopenguino: can you check your log to see what each request looked like? i assume they're not identical GET requests
[20:38:48] Radar: GOOD MORNING
[20:39:30] habitullence: has joined #RubyOnRails
[20:40:15] tubbo: Radar: yo dawg
[20:40:19] bruce_lee: has joined #RubyOnRails
[20:40:19] bruce_lee: has joined #RubyOnRails
[20:40:22] tubbo: Radar: do you still have access to redis-actionpack?
[20:40:46] Radar: indeed I do
[20:40:49] tubbo: i can't push to it, but we're releasing (released?) 5.0.0.pre today
[20:41:23] Radar: You can't push to it? But you're on the core team?
[20:41:38] tubbo: Radar: apparently
[20:41:45] tubbo: Radar: i mean, i can't push to rubygems.org...sorry
[20:42:03] Radar: email addr?
[20:42:25] desnudopenguino: the logged request... http://pastebin.com/BSjXSbpT
[20:42:50] tubbo: desnudopenguino: "ActiveRecord::AdapterNotSpecified (database configuration does not specify adapter):" might be a problem :)
[20:42:51] fox_mulder_cp: tubbo: hm. seems interest. i have a belongs_to association in my model, but when try to oneliner property return - rails take exeption - says that this belongs_to 'method is nil'
[20:43:36] Guaguasi: i have a quick question about routes. i'm about to put a "get '/:id' => 'pages#show'" route. is there something horribly wrong with that and what are the alternatives?
[20:43:37] desnudopenguino: oh, lol just c&p'd that, didn't notice it
[20:44:37] tubbo: guaguasi: nothing wrong with that as far as i can see. it's how high_voltage works.
[20:44:54] tubbo: guaguasi: you just have to put it at the end of your routes so that basically any other route gets parsed before that one
[20:44:57] jancel: has joined #RubyOnRails
[20:45:06] bbrowning: has joined #RubyOnRails
[20:45:37] desnudopenguino: tubbo: i removed the <<: default from my dev
[20:45:49] Megamos: has joined #RubyOnRails
[20:46:06] tubbo: desnudopenguino: but that also seems to have uncovered a different issue, in that you probably don't want to be running the 'development' env in production
[20:46:15] tubbo: so it seems like RAILS_ENV isn't set
[20:47:04] Guaguasi: yeah, that was the plan. the way i wanted the project to work originally was for the pages resource to work completely off the root (including crud), but that seemed like a bad idea
[20:47:22] desnudopenguino: i set it in the apache config file
[20:48:16] desnudopenguino: but i'm still getting the same issue through apache (incomplete responce received)
[20:48:29] desnudopenguino: well one problem is solved at least
[20:48:48] srinidhi: has joined #RubyOnRails
[20:49:11] tubbo: desnudopenguino: if you just set RailsEnv in your apache config, you'll also need to restart apache for the change to take effect
[20:49:11] idefine: has joined #RubyOnRails
[20:49:24] tubbo: pretty sure
[20:49:41] desnudopenguino: yeah, i did that
[20:50:16] desnudopenguino: the development log wasn't there until I restarted it and used wget on localhost
[20:51:40] desnudopenguino: i'm getting 502 bad gateway
[20:51:46] fox_mulder_cp: tubbo: hm. strange. make one line define without accessor - exeption. with accessor - nil.
[20:52:20] fox_mulder_cp: second defetion - seems ok with or without attr_accessdor
[20:53:07] bronson: has joined #RubyOnRails
[20:54:44] jstransky: has joined #RubyOnRails
[20:54:55] tubbo: fox_mulder_cp: not sure what you mean. a gist would help.
[20:55:13] Puffball: has joined #RubyOnRails
[20:55:13] emachnic: has joined #RubyOnRails
[20:55:46] fox_mulder_cp: tubbo: i'm return to classic def some; .. end
[20:55:54] jenrzzz: has joined #RubyOnRails
[20:58:20] tubbo: belongs_to doesn't work for non-AR models...
[20:59:12] mikecmpbll: has joined #RubyOnRails
[21:00:07] bronson: has joined #RubyOnRails
[21:01:31] fox_mulder_cp: tubbo: its a AR model, but this case with rail5rc1 must be learned and bugged, if case of bug
[21:02:24] tubbo: i mean, still not sure what you're doing but you seem like you have a handle on it
[21:03:30] DoctorMonocular: has joined #RubyOnRails
[21:05:26] stannard: has joined #RubyOnRails
[21:06:37] jenrzzz: has joined #RubyOnRails
[21:07:19] Coldblackice: has joined #RubyOnRails
[21:07:56] blackmes1: has joined #RubyOnRails
[21:08:09] edwinvdgraaf: has joined #RubyOnRails
[21:08:34] workmad3: has joined #RubyOnRails
[21:09:59] fox_mulder_cp: tubbo: i create gist https://gist.github.com/foxmuldercp/34c10e6d344a06d6eb8ad1a6d345ffac
[21:10:25] yfeldblum: has joined #RubyOnRails
[21:10:51] idefine: has joined #RubyOnRails
[21:11:01] desnudopenguino: alright, now I can get stuff through rails running webrick, but not through apache
[21:11:28] fox_mulder_cp: tubbo: i'm comment this gist -rails fails on a client = says that is nil
[21:12:16] fox_mulder_cp: but may be it conflict with defined in sql table variable...
[21:12:47] tubbo: fox_mulder_cp: yeah, you definitely want the former rather than the latter. what you're doing here is trying to call instance methods on the class scope
[21:13:42] workmad3: has joined #RubyOnRails
[21:13:42] fox_mulder_cp: tubbo: but what about self.blabla?
[21:14:29] fox_mulder_cp: class and instance scope...
[21:14:41] tubbo: fox_mulder_cp: dunno what you mean
[21:16:26] tubbo: fox_mulder_cp: your first issue is that the line 'attr_accessor :url_test, :url_internal' is commented out, so naturally the url_test and url_internal methods aren't defined
[21:16:30] tubbo: and neither is url_test= and url_internal=
[21:17:36] tubbo: fox_mulder_cp: in addition, attr_accessor defines methods on the INSTANCE, not the CLASS. so even if you had attr_accessors in there, what you have here still wouldn't work
[21:17:43] fox_mulder_cp: tubbo: i want a 'oneliner' to return a virtual instance string property
[21:17:56] fox_mulder_cp: for make a corde pretty
[21:18:05] tubbo: fox_mulder_cp: you'd have to write some code for that, it's definitely not in ruby or rails.
[21:18:22] srinidhi: has joined #RubyOnRails
[21:18:35] SteenJobs: has joined #RubyOnRails
[21:18:45] tubbo: don't fight the framework. ruby has a syntax for defining instance variables. why would you make your own?
[21:18:52] tubbo: s/instance variables/instance methods
[21:19:07] tubbo: unless, of course, you're just experimenting and screwing around...in which case go for it. :)
[21:19:11] trinaldi: has joined #RubyOnRails
[21:19:22] broman: has joined #RubyOnRails
[21:19:42] fox_mulder_cp: tubbo: so my first variant by 'classic' def some; 'some there'; end - is good
[21:20:00] tubbo: fox_mulder_cp: yeah, the 'model1' example you have in your gist seems like the best and most frictionless approach for anyone else viewing your project.
[21:20:46] fox_mulder_cp: tubbo: but why we can't define this two properties by one line per property?
[21:20:51] fox_mulder_cp: such as model2?
[21:21:23] tubbo: fox_mulder_cp: because you're defining local variables on the class scope. you're not in an instance method or an initialize, so you don't have access to the instance
[21:21:46] tubbo: fox_mulder_cp: it's like i have a model called Model. when you do Model.new, that instance has different state from the 'Model' class. Model.foo is not the same as Model.new.foo
[21:22:16] Disavowed: has left #RubyOnRails: ()
[21:22:22] tubbo: fox_mulder_cp: when you write code within a `class Whatever; end` and you don't wrap it in an instance method, that code will be executed immediately when the class is loaded and in the class scope, NOT the instance scope
[21:22:22] fox_mulder_cp: tubbo: so, this is a way to set up a hardcoded properties of Class, yes?
[21:22:59] sneakerhax: has joined #RubyOnRails
[21:23:09] tubbo: fox_mulder_cp: no. https://gist.github.com/tubbo/107afe3632915eb82e86761946aa304b
[21:23:39] tubbo: fox_mulder_cp: using local variables inside a class/end scope is actually just defining the variable between 'class' and 'end'. it cannot be used outside of that scope.
[21:23:49] tubbo: sort-of a weird side effect of ruby
[21:23:59] tubbo: s/ruby/ruby's scoping rulles
[21:24:02] tubbo: rules* haha
[21:24:28] tubbo: fox_mulder_cp: i can make that code work though i think :)
[21:24:36] fox_mulder_cp: tubbo: but if i say self.url_test = "#{name}.blabla"
[21:24:44] jancel: has joined #RubyOnRails
[21:24:49] robbyoconnor: has joined #RubyOnRails
[21:27:30] tubbo: fox_mulder_cp: https://gist.github.com/tubbo/dc43451f6b77ca9e0551661dc74433d7
[21:27:39] tubbo: totally untested
[21:27:51] tubbo: also a really stupid idea, i'm just demonstrating how cool metaprogramming is
[21:28:01] tubbo: two golden rules for writing ruby apps:
[21:28:06] tubbo: 1.) don't fight the framework or language
[21:28:11] artto: has joined #RubyOnRails
[21:28:12] tubbo: 2.) just because you can, doesn't mean you should
[21:28:14] tubbo: 3.) there is no rule 3
[21:28:26] Axilla: ^ this so much.. i hate rails until i dug into the source, learned the magic and learned to do it "The Rails way"
[21:28:29] Axilla: then i fell in love
[21:29:14] haaj: has joined #RubyOnRails
[21:29:21] fox_mulder_cp: tubbo: what is -> after '=' ?
[21:29:27] tubbo: fox_mulder_cp: just another syntax for a lambda
[21:30:14] tubbo: fox_mulder_cp: you can't just write all that out naked because again, it's the class-level. so 'name' is gonna end up being the actual class name, 'Whatever', if you call name on the class level.
[21:30:14] fox_mulder_cp: tubbo: thanks. today's evening was very informational for me
[21:30:33] tubbo: fox_mulder_cp: so the lambda lets you write code that isn't immediately executed, and then as you can see in my define_method i execute the code that was passed in
[21:31:07] Palsson: has joined #RubyOnRails
[21:32:20] fox_mulder_cp: tubbo: i think, that must use rails code style and my hair is silk(c)Head&Shoulders
[21:32:48] fox_mulder_cp: metaprogramming is hard for me now
[21:34:57] greengriminal: has joined #RubyOnRails
[21:35:09] cleopatra: hello all :)
[21:37:51] maletor3: has joined #RubyOnRails
[21:38:01] greengriminal: Hey all, having a weird migration issue. To give you some context. The migration was supposed to update some values etc. I ran it the first time and checked in my rails console that the values updated. However when I re-ran `db:migrate` its now returning: duplicate key value violates unique constraint "unique_schema_migrations"
[21:38:10] greengriminal: gist with the stack trace: https://gist.github.com/davidpatters0n/a7c773af3d8b16c1206bdf4e6f51aa7b
[21:40:01] sypheren: has joined #RubyOnRails
[21:43:47] sypheren: has joined #RubyOnRails
[21:44:13] Darmani: has joined #RubyOnRails
[21:47:07] greengriminal: ignore sorted it.
[21:47:34] yfeldblum: has joined #RubyOnRails
[21:48:19] sypheren: has joined #RubyOnRails
[21:50:29] patrick99e99: has joined #RubyOnRails
[21:50:47] Dimik: has joined #RubyOnRails
[21:50:57] Dimik: happy victory day
[21:51:43] patrick99e99: Hey guys, I was just asking on #ruby, but thought I'd move over here and ask.. So, I have some middleware in my rails app and it blows up at: @app.call(env) with "bad URI(is not URI?)" if I attempt to go to a url with quotes in it.
[21:52:14] patrick99e99: I can make this stop by doing ["PATH_INFO", "ORIGINAL_FULLPATH", "SCRIPT_URL", "SCRIPT_URI", "REQUEST_URI"].each {|k| env[k] = URI.encode(env[k]) }
[21:52:21] iliketurtles: has joined #RubyOnRails
[21:52:27] benlieb: has joined #RubyOnRails
[21:52:38] patrick99e99: but I don't want to have to do that.. Someone suggested that I use Rack::Protection::EscapedParams, but it doesn't seem to be solving this problem...
[21:52:54] patrick99e99: Does anyone know how I can make it so that my env values are all escaped prior to hitting my rack middleware?
[21:52:54] jowiar: has joined #RubyOnRails
[21:52:57] Dimik: sounds like you need to load your URI first
[21:52:57] Zackio: has joined #RubyOnRails
[21:53:33] Dimik: i had a similar problem with nokogiri/mechanize
[21:56:56] sypheren: has joined #RubyOnRails
[22:01:07] mrgreenfur: has joined #RubyOnRails
[22:01:44] patrick99e99: Dimik: what do you mean load your URI ?
[22:02:26] jenrzzz_: has joined #RubyOnRails
[22:02:53] htmldrum: has joined #RubyOnRails
[22:03:27] manfrin: has joined #RubyOnRails
[22:03:36] jancel: has joined #RubyOnRails
[22:05:53] deur-: has joined #RubyOnRails
[22:07:01] fox_mulder_cp: hm. i need to update instance property in model class and save it
[22:07:25] jenrzzz: has joined #RubyOnRails
[22:11:14] deur-: has joined #RubyOnRails
[22:11:15] zrl_: has joined #RubyOnRails
[22:12:51] Puffball: has joined #RubyOnRails
[22:13:33] Trynemjoel: has joined #RubyOnRails
[22:19:15] drale2k: how could i redirect_to @post, but with a custom finder (i use the file name of the uploaded file). So for example /posts/883hdhj8dfjk3
[22:19:52] drale2k: with redirect_to @post it will just go to /posts/post-id as expected
[22:20:25] drale2k: i still want to use id as the primary key, just want the uniq filename for the show action
[22:22:28] workmad3: has joined #RubyOnRails
[22:22:37] emachnic: has joined #RubyOnRails
[22:23:20] jstransky: has joined #RubyOnRails
[22:25:01] jancel: has joined #RubyOnRails
[22:30:15] Puffball: has joined #RubyOnRails
[22:32:55] recurrence: has joined #RubyOnRails
[22:33:23] patrick99e99: drale2k: http://api.rubyonrails.org/classes/ActiveRecord/Integration.html#method-i-to_param
[22:34:45] drale2k: patrick99e99: thanks awesome
[22:35:33] benlieb: I'm auditing a projects code for security vulnerabilities. Is there a rails way to whitelist the possible VALUES of a params key? mailable.send(params[:which])
[22:35:34] recurrence: Is there a guide to moving projects into from one big controllers/models/services/etc structure to a set of modules? I’m running into issues such as files not being found since modularizing part of my project and was hoping there might be a best practices doc somewhere to follow :)
[22:36:07] dorje: has joined #RubyOnRails
[22:38:42] sypheren: has joined #RubyOnRails
[22:39:24] Oog: has joined #RubyOnRails
[22:39:24] patrick99e99: benlieb: look at #permit for action controller strong params
[22:39:53] benlieb: patrick99e99: doesn't that just do keys?
[22:40:14] patrick99e99: benlieb: you can pass it a block and inspect the object
[22:40:50] Oog: rabl is being very slow at rendering json. im using oj and trying to enable caching. when i enable caching i start to see stuff in log but it deadlocks https://gist.github.com/anonymous/d4335351fb12f999a489e05b8760f8e6 - the request never finishes. ideas?
[22:41:06] benlieb: patrick99e99: currently just doing this:
[22:41:08] benlieb: return service unless ['missing_email','not_edelivered','bad_tins'].include? method
[22:41:25] benlieb: or more clearly: return service unless ['missing_email','not_edelivered','bad_tins'].include? params[:method]
[22:48:32] Radar: Darmani: hi
[22:49:09] |2701: has joined #RubyOnRails
[22:49:47] SteenJobs: has joined #RubyOnRails
[22:50:21] wethu: has joined #RubyOnRails
[22:51:33] d5sx43: has joined #RubyOnRails
[22:52:14] yfeldblum: has joined #RubyOnRails
[22:53:01] PlasmaStar: has joined #RubyOnRails
[22:54:11] EdwardIII: has joined #RubyOnRails
[22:55:19] Puffball: has joined #RubyOnRails
[22:55:22] jenrzzz: has joined #RubyOnRails
[22:55:22] jenrzzz: has joined #RubyOnRails
[22:55:54] desnudopenguino: tubbo: got it semi-working!
[22:56:17] desnudopenguino: i found one tut that had a line in the apache config that was minning from everywhere else
[22:58:41] crystal77: has joined #RubyOnRails
[22:58:54] GodFather: has joined #RubyOnRails
[23:00:06] JoshGlzBrk: has joined #RubyOnRails
[23:00:28] Oog: has joined #RubyOnRails
[23:01:27] jenrzzz: has joined #RubyOnRails
[23:02:24] Oog: rabl is being extremely slow for json rendering... any ideas?
[23:03:04] jancel: has joined #RubyOnRails
[23:08:23] Cohedrin: has joined #RubyOnRails
[23:08:31] crdpink2: has joined #RubyOnRails
[23:09:11] EdwardIII: has joined #RubyOnRails
[23:09:29] Radar: Oog: use Elixir's Phoenix instead
[23:10:17] Radar: https://twitter.com/ryanbigg/status/720010835850960896
[23:10:51] d5sx43: has joined #RubyOnRails
[23:11:53] manfrin: has joined #RubyOnRails
[23:12:22] Oog: how does this work with rails...
[23:13:35] chopin: has joined #RubyOnRails
[23:13:40] Cohedrin: has joined #RubyOnRails
[23:16:36] habitullence: has joined #RubyOnRails
[23:16:37] dalbusch1t: has joined #RubyOnRails
[23:16:43] JoshGlzBrk: has joined #RubyOnRails
[23:16:52] Axilla: has joined #RubyOnRails
[23:18:25] Radar: it doesn't. That's the whole point :D
[23:19:26] Oog: but i like rails :(
[23:22:27] idefine: has joined #RubyOnRails
[23:23:02] htmldrum: has left #RubyOnRails: ()
[23:23:45] Sawbones: has joined #RubyOnRails
[23:23:57] emachnic: has joined #RubyOnRails
[23:24:10] Oog: i think the problem is just rabl
[23:24:14] Oog: need to use to_json...
[23:24:16] Oog: do more manually
[23:27:22] desnudopenguino: time to start grinding out some models now!
[23:28:15] idefine: has joined #RubyOnRails
[23:29:00] deur-: has joined #RubyOnRails
[23:31:31] jenrzzz: has joined #RubyOnRails
[23:32:21] viiralvx: has joined #RubyOnRails
[23:35:24] jalcine: has joined #RubyOnRails
[23:35:38] Oog: why isnt rabl faster :(
[23:37:11] EdwardIII: has joined #RubyOnRails
[23:46:28] kgrz: has joined #RubyOnRails
[23:47:33] Puffball: has joined #RubyOnRails
[23:48:37] twilling: has joined #RubyOnRails
[23:49:07] JoshGlzBrk: has joined #RubyOnRails
[23:50:28] stannard: has joined #RubyOnRails
[23:54:38] timdotrb: has joined #RubyOnRails
[23:54:46] timdotrb: Afternoon, all
[23:57:19] desnudopenguino: good afternoon!
[23:58:23] desnudopenguino: has left #RubyOnRails: ()
[23:59:09] jancel: has joined #RubyOnRails
[23:59:10] EdwardIII: has joined #RubyOnRails
[23:59:40] greengriminal: has joined #RubyOnRails
[23:59:42] sypheren: has joined #RubyOnRails