« Back to channel list

#RubyOnRails - 21 April 2016

« Back 1 day Forward 1 day »
[00:02:42] GriffinHeart: has joined #RubyOnRails
[00:03:39] Rubie: has joined #RubyOnRails
[00:03:58] Rubie: hi all: does anyone know if you can use multiline strings in figaro?
[00:04:18] renegadeandy: Radar: ? im at a loss :(
[00:04:55] ensyde: has joined #RubyOnRails
[00:04:57] Adamp: has joined #RubyOnRails
[00:05:44] Adamp: I have a redmine plugin specific question. Anyone here work with redmine development that can help?
[00:05:48] AmiMoench: has joined #RubyOnRails
[00:07:05] Adamp: Only the 2nd time in this chat, can anyone see my message? I ask because I got a message up logging in that I need to register to talk
[00:07:20] Rubie: adamp: yes
[00:07:46] Adamp: Thanks rubie
[00:08:59] twilling: has joined #RubyOnRails
[00:10:30] bronson: has joined #RubyOnRails
[00:14:21] RahulT: has joined #RubyOnRails
[00:15:49] yfeldblum: has joined #RubyOnRails
[00:17:57] beilabs: has joined #RubyOnRails
[00:18:12] roamingdog: has joined #RubyOnRails
[00:19:17] diegoviola: has joined #RubyOnRails
[00:19:33] roamingdog: has joined #RubyOnRails
[00:21:20] shilon: has joined #RubyOnRails
[00:21:33] King_Rex: has joined #RubyOnRails
[00:22:20] roamingdog: has joined #RubyOnRails
[00:24:17] baweaver: has joined #RubyOnRails
[00:25:53] thejamespinto_: has joined #RubyOnRails
[00:27:49] _djbkd: has joined #RubyOnRails
[00:28:59] tw1sted: has joined #RubyOnRails
[00:29:35] bradleyprice: has joined #RubyOnRails
[00:29:59] _djbkd: has joined #RubyOnRails
[00:30:33] i4: <%= link_to "<i class='fa fa-eye'></i>".html_safe, '#', class: :show_hide_password, 'data-show' => "<i class='fa fa-eye'></i>".html_safe, 'data-hide' => "&f070;".html_safe %>
[00:31:08] i4: I have this string and when I press the button, I see html code <i class='fa fa-eye'></i> and not the icon...
[00:31:38] i4: and I don't understand why because I set "".html_safe for my code...\
[00:31:45] i4: Any ideas how to fix this?
[00:31:52] ensyde__: has joined #RubyOnRails
[00:32:34] diegoaguilar: has joined #RubyOnRails
[00:32:58] pawnbox: has joined #RubyOnRails
[00:35:51] chipotle: has joined #RubyOnRails
[00:36:10] idefine: has joined #RubyOnRails
[00:36:34] yaewa: has joined #RubyOnRails
[00:37:45] rahult_: has joined #RubyOnRails
[00:37:58] diprotic: has joined #RubyOnRails
[00:38:16] pyemkey_: has joined #RubyOnRails
[00:38:20] idefine: has joined #RubyOnRails
[00:38:43] moei: has joined #RubyOnRails
[00:40:04] neanderslob: has joined #RubyOnRails
[00:40:19] armyriad: has joined #RubyOnRails
[00:40:48] Wingar: has joined #RubyOnRails
[00:40:53] rafaelfranca: has joined #RubyOnRails
[00:40:59] flashpoint9: has joined #RubyOnRails
[00:42:29] _djbkd: has joined #RubyOnRails
[00:43:02] stannard: has joined #RubyOnRails
[00:43:18] Spami: has joined #RubyOnRails
[00:44:34] Thai_: has joined #RubyOnRails
[00:44:41] xMopxShell: has joined #RubyOnRails
[00:44:42] alexblom: has joined #RubyOnRails
[00:45:03] apeiros: has joined #RubyOnRails
[00:46:54] segy: has joined #RubyOnRails
[00:48:33] Takumo: has joined #RubyOnRails
[00:48:53] EdwardIII: has joined #RubyOnRails
[00:49:07] Takumo: has joined #RubyOnRails
[00:51:47] polishdub: has joined #RubyOnRails
[00:52:16] GodFather: has joined #RubyOnRails
[00:52:28] lemur: has joined #RubyOnRails
[00:52:50] darkxploit: has joined #RubyOnRails
[00:53:10] moeabdol: has joined #RubyOnRails
[00:55:39] mrgreenfur: has joined #RubyOnRails
[00:56:30] GriffinHeart: has joined #RubyOnRails
[00:57:04] flashpoint9: has joined #RubyOnRails
[00:58:33] nickenchuggets: has joined #RubyOnRails
[00:59:24] jenrzzz: has joined #RubyOnRails
[00:59:51] Radar: renegadeandy: My consulting rate is $200/hr and I have availability this weekend.
[01:00:03] Radar: renegadeandy: Asking for help during my work day when I'm super busy is not ideal.
[01:00:39] renegadeandy: :) no problem Radar I figured it ot
[01:01:17] renegadeandy: You work at a bicycle store...right?
[01:02:59] Radar: renegadeandy: marketplacer.com
[01:04:06] bruno-: has joined #RubyOnRails
[01:04:09] sailing: has joined #RubyOnRails
[01:05:24] renegadeandy: thanks for helping - wouldnt have got as far without you
[01:06:19] quazimodo: so we had an 800 spec suite fall over at seemingl randomly points, only running some specs and then acting like that was ok.
[01:07:02] quazimodo: I ran it in documentation format and specified seeds, long story short sidekiq removed redis-namespace from their deps causing rspec to fail weirdly. Not sure why we're using namespaces at all on this app but yeah :)
[01:07:52] sevenseacat: has joined #RubyOnRails
[01:08:14] quazimodo: everyone do the successful debug dance (is twerk)
[01:10:47] sailing: has joined #RubyOnRails
[01:12:01] sailing: has left #RubyOnRails: ()
[01:12:19] bronson: has joined #RubyOnRails
[01:14:31] roamingdog: has joined #RubyOnRails
[01:16:22] stardiviner: has joined #RubyOnRails
[01:18:13] diegoviola: has joined #RubyOnRails
[01:18:54] workmad3: has joined #RubyOnRails
[01:19:22] GriffinHeart: has joined #RubyOnRails
[01:20:34] Radar: Moral of the story: don't blindly upgrade major versions
[01:22:08] shilon: has joined #RubyOnRails
[01:22:20] one_zero: has joined #RubyOnRails
[01:24:12] aloneintheworld: has joined #RubyOnRails
[01:25:22] pwnd_nsfw: Radar, you don't like to be daring?
[01:25:30] sevenseacat: wise man once said
[01:25:46] pawnbox: has joined #RubyOnRails
[01:28:28] havenwood: https://i.imgflip.com/12uh3u.jpg
[01:30:29] Ropeney: has joined #RubyOnRails
[01:32:00] GriffinHeart: has joined #RubyOnRails
[01:32:05] FailBit: has joined #RubyOnRails
[01:32:24] pwnd_nsfw: havenwood, did you just make that
[01:32:31] pwnd_nsfw: having that on deck would be silly
[01:33:47] havenwood: pwnd_nsfw: http://i.imgur.com/2Hlpoov.png
[01:34:22] thejamespinto_: has joined #RubyOnRails
[01:35:01] havenwood: that should be a pixel perfect drop-in for Bundler's logo, just a PR away...
[01:35:49] havenwood: a bit more helpful to new users than "The best way to manage your application's dependencies" :P
[01:36:07] Rubie: has joined #RubyOnRails
[01:36:16] blindMoe: has joined #RubyOnRails
[01:37:20] brainslug: has joined #RubyOnRails
[01:38:17] joelsmith: has joined #RubyOnRails
[01:38:34] rodfersou: has joined #RubyOnRails
[01:39:15] LastWhisper____: has joined #RubyOnRails
[01:41:15] idefine: has joined #RubyOnRails
[01:44:04] jgrevich: has joined #RubyOnRails
[01:44:05] idefine: has joined #RubyOnRails
[01:45:02] stannard: has joined #RubyOnRails
[01:45:43] LastWhisper____: Is there a simpler way to write this: availability_params[:auto_update] == '0' ? false : true
[01:45:51] LastWhisper____: the param comes in as a string of '0' if it's false..
[01:45:59] LastWhisper____: from a check_box on simple_form
[01:46:00] FailBit: I would just use that tbh
[01:46:34] kies: has joined #RubyOnRails
[01:47:11] RahulT: has joined #RubyOnRails
[01:48:12] bruno-: has joined #RubyOnRails
[01:49:01] tenzan: has joined #RubyOnRails
[01:49:28] sevenseacat: wouldnt it just be `availability_params[:auto_update] != 0` ?
[01:49:42] LastWhisper____: I want it to return true if it's not '0'
[01:50:05] sevenseacat: also, we're not all guys here :)
[01:50:36] LastWhisper____: i always thought it was weird that everyone says hey guys when referring to everyone in general when I moved to the US, but now I've fallen into their lingo too.
[01:50:50] LastWhisper____: Hello EVERYONE hehe
[01:51:11] sevenseacat: :) thanks. i (and others) appreciate it
[01:52:34] GriffinHeart: has joined #RubyOnRails
[01:52:41] wldcordeiro: has joined #RubyOnRails
[01:53:54] markfletcher: has joined #RubyOnRails
[01:54:21] RegulationD: has joined #RubyOnRails
[01:54:55] rodferso1: has joined #RubyOnRails
[01:55:42] roamingdog: has joined #RubyOnRails
[01:58:58] GriffinHeart: has joined #RubyOnRails
[02:01:23] njero: has joined #RubyOnRails
[02:10:40] emachnic: has joined #RubyOnRails
[02:11:30] SteenJobs: sevenseacat: :)
[02:11:52] SteenJobs: sevenseacat: no reason to fall prey to the is-ought fallacy
[02:13:22] FailBit: has left #RubyOnRails: ("WeeChat 0.4.2")
[02:16:03] Jasaka: has joined #RubyOnRails
[02:16:41] sevenseacat: not sure what you mean by that one
[02:20:59] shibly: has joined #RubyOnRails
[02:21:14] shibly: What's the size of ruby on rails? Is it possible to find out the size?
[02:21:39] maxdoubt: has joined #RubyOnRails
[02:22:03] SPYGAME: has joined #RubyOnRails
[02:23:03] GriffinHeart: has joined #RubyOnRails
[02:23:03] shilon: has joined #RubyOnRails
[02:26:07] chagel: has joined #RubyOnRails
[02:26:37] stannard: has joined #RubyOnRails
[02:28:11] bruno-: has joined #RubyOnRails
[02:30:15] Devalo: has joined #RubyOnRails
[02:30:33] shibly: has left #RubyOnRails: ()
[02:31:20] rahult_: has joined #RubyOnRails
[02:33:18] Chagel_: has joined #RubyOnRails
[02:33:46] sevenseacat: define 'size'
[02:37:56] Spami: has joined #RubyOnRails
[02:37:58] pawnbox: has joined #RubyOnRails
[02:38:01] roamingdog: has joined #RubyOnRails
[02:38:07] SPYGAME: is it required to precompile assets like images to work in production residing in /assets/images directory. As per rails guide and elsewhere i've searched there's no need but i don't understand why my images are not loading in production. any ideas ?
[02:38:12] blindMoe: has joined #RubyOnRails
[02:41:15] moeabdol: has joined #RubyOnRails
[02:43:38] beauby: has joined #RubyOnRails
[02:43:57] Rubie: has joined #RubyOnRails
[02:48:21] Cervajz: has joined #RubyOnRails
[02:49:36] fernandomm: has joined #RubyOnRails
[02:49:44] smoitra: has joined #RubyOnRails
[02:53:18] baweaver: has joined #RubyOnRails
[02:56:26] roamingdog: has joined #RubyOnRails
[02:56:52] GriffinHeart: has joined #RubyOnRails
[02:58:06] egray: has joined #RubyOnRails
[03:01:33] jobewan: has joined #RubyOnRails
[03:08:00] arBmind1: has joined #RubyOnRails
[03:08:15] stannard: has joined #RubyOnRails
[03:09:13] Rubie: has joined #RubyOnRails
[03:11:58] gr33nw00d: has joined #RubyOnRails
[03:12:25] Trynemjoel: has joined #RubyOnRails
[03:12:41] bronson: has joined #RubyOnRails
[03:13:15] bruno-: has joined #RubyOnRails
[03:15:13] roamingdog: has joined #RubyOnRails
[03:15:36] braincras: has joined #RubyOnRails
[03:18:45] jfelchner: has joined #RubyOnRails
[03:20:08] phaza: has joined #RubyOnRails
[03:22:15] stannard: has joined #RubyOnRails
[03:23:39] shilon: has joined #RubyOnRails
[03:26:29] GriffinHeart: has joined #RubyOnRails
[03:28:55] jgrevich: has joined #RubyOnRails
[03:29:31] baweaver: has joined #RubyOnRails
[03:30:30] GriffinHeart: has joined #RubyOnRails
[03:32:14] Hodge: has joined #RubyOnRails
[03:32:54] DZj091231kld: has joined #RubyOnRails
[03:39:06] blindMoe: has joined #RubyOnRails
[03:39:38] Mattx: has joined #RubyOnRails
[03:40:00] Mattx: Hey guys. I want to respond with :json even if the format param is html. How do you do that?
[03:40:21] Mattx: I have tried this: format.html { render json: {...} }
[03:40:39] Mattx: but a header for html is sent instead, not json
[03:40:55] sevenseacat: hey everyone*
[03:41:29] Mattx: Hey guys and gals!
[03:42:32] SteenJobs: has joined #RubyOnRails
[03:42:42] Nawn: has joined #RubyOnRails
[03:43:17] tildes: has joined #RubyOnRails
[03:43:55] crdpink2: has joined #RubyOnRails
[03:44:15] baweaver: Why would you want to do that?
[03:44:27] baweaver: just render json in the response.
[03:44:54] Mattx: because I have other formats, not only those two
[03:45:20] baweaver: render html in html, json in json, other in other
[03:45:32] Mattx: I don't want to render html
[03:45:40] Mattx: it's for an API, it should default to json
[03:45:48] baweaver: then don't format.html
[03:45:58] baweaver: that's what routes are for
[03:46:03] baweaver: you can default everything to json
[03:46:07] Rodya_: has joined #RubyOnRails
[03:46:08] Mattx: that doesn't work either, if I don't set format.html and I don't specify the format in the url, it crashes
[03:46:12] Mattx: it says format unknown
[03:46:24] Mattx: how do I default to json?
[03:46:26] sevenseacat: great, show us your code for that
[03:48:09] baweaver: which brings up this: http://stackoverflow.com/questions/14664049/rails-restrict-api-requests-to-json-format
[03:48:36] baweaver: among another few links that are worth a read
[03:48:50] beilabs: has joined #RubyOnRails
[03:49:03] chagel: has joined #RubyOnRails
[03:49:45] SteenJobs: sevenseacat: the whole convo from yesterday. just because something is a certain way, doesn’t mean it ought to stay that way.
[03:50:17] sevenseacat: I had a lot of convos yesterday. I still don't know what you mean.
[03:50:18] pawnbox: has joined #RubyOnRails
[03:52:22] Guest_: has joined #RubyOnRails
[03:52:40] aiguu: has joined #RubyOnRails
[03:52:44] GriffinHeart: has joined #RubyOnRails
[03:53:09] diegoviola: has joined #RubyOnRails
[03:56:53] moeabdol: has joined #RubyOnRails
[03:57:21] pawnbox: has joined #RubyOnRails
[03:57:30] idefine: has joined #RubyOnRails
[03:58:16] Adamp: I am writing a redmine plugin (uses ruby on rails) and I can't figure out how to get QueryColumn to sort properly based on my new model. I am populating the QueryColumn with a function, but the sort appears to require a db table field
[03:59:20] Adamp: When I try to supply the field in my table using #{Statustime.table_name}.cumulative_t the SQL query fails due to the fact that it isn't including that table in the join.
[03:59:29] sevenseacat: adamp: !rule0
[03:59:29] helpa: adamp: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[04:00:36] Adamp: helpa, I wrote up the full issue with the full code dump at http://www.redmine.org/boards/2/topics/49926
[04:01:55] Adamp: The issue with trying to ask for help on this is that there are so many layers between my plugin, the redmine app and rails...plus I freely admit I am a noob on ruby and rails (hadn't done either until a week go)
[04:02:07] sevenseacat: you picked a doozy to start with then
[04:02:34] Adamp: Yep, but that is what I was tasked with..and yes this is a work thing.
[04:02:43] sevenseacat: new to a language... let me write a plugin for a library in a framework in that language :D
[04:03:26] Adamp: I got the framework going and I can probably get management to make do without sorting in the gui as you can export to csv, but it is really a crap solution in my option without having the sorting working in the gui....
[04:03:51] Adamp: No shit sevenseacat....
[04:05:31] Adamp: I gotta say, I am still a touch confused on the role of the controller vs the role of the model...and what should go where...
[04:06:02] AnoHito: has joined #RubyOnRails
[04:06:20] sevenseacat: gotta be honest, I think this is way too big to solve over IRC
[04:06:33] sevenseacat: if its a work thing, I'd recommend talking to your work people
[04:07:42] Adamp: sevenseacat -> I appreciate your honesty and I thought that might be the answer. The problem is, nobody at my work has done this (hell, nobody has done ruby and rails, not to mention redmine devel)
[04:08:02] sevenseacat: how did this problem manage to fall on your lap then o.O
[04:08:08] Adamp: We are just using redmine internally and needed new functionality.
[04:09:06] Adamp: Well, my team had the choice between a horrible implementation of teamtrack or teamtrack. I found and recommended redmine and everyone agreed to go with it.
[04:09:22] _djbkd: has joined #RubyOnRails
[04:09:39] Adamp: Then, managment came up with the fact they wanted to track cumulative time for each status for each issue...and here I am... :-)
[04:09:53] Adamp: But, just bitching about has helped :-)
[04:12:07] kp666: has joined #RubyOnRails
[04:12:27] nickjj_: has joined #RubyOnRails
[04:15:15] baweaver: y'might want to note that you're handing management a sword they're going to cut you with right?
[04:17:16] Adamp: @baweaver Armor already put on and waiting for the sword...but, at least I can get them most of what they want with what I have now....
[04:17:40] Rodya_: has joined #RubyOnRails
[04:17:57] Adamp: btw, redmine api docs are complete crap
[04:18:09] roamingdog: adamp: ja, if you're not really familiar with redmine, I don't think you should be recommending it.
[04:18:27] mrgreenfur: has joined #RubyOnRails
[04:18:53] Adamp: roamingdog, I set up a test server and the full team tested with it...then the team decided. It wasn't just my decision. And it is working well for us in most cases.
[04:18:57] baweaver: in my experience, giving management anything to track metrics of "productivity" causes them to lose touch with reality.
[04:19:22] roamingdog: adamp: i retract then :)
[04:19:35] Adamp: It was to replace the issue tracker that is part of gitlab that we were using
[04:19:58] sevenseacat: I like gitlab
[04:20:11] Adamp: I love gitlab, but the issue management was a bit lacking for our needs
[04:20:22] Adamp: We still use it to manage our code reviews and merges
[04:20:29] fedexo: has joined #RubyOnRails
[04:20:38] roamingdog: god i'm so out of touch, reading about gitlab...
[04:21:38] sevenseacat: I host my blog on gitlab pages
[04:21:40] Rubie: has joined #RubyOnRails
[04:22:19] Rodya_: has joined #RubyOnRails
[04:22:22] roamingdog: sevenseacat: for later, url?
[04:22:41] Adamp: You use the wiki in gitlab for your blog?
[04:22:50] sevenseacat: no, gitlab pages
[04:23:10] sevenseacat: I have a jekyll app for my blog
[04:23:20] roamingdog: only word in esperanto i know of 'vironoj'
[04:23:39] sevenseacat: its also not a word :P
[04:23:43] roamingdog: or, vironaj ?
[04:23:49] Adamp: let me google that :-)
[04:23:53] sevenseacat: i think you mean virinoj, 'women'
[04:24:23] shilon: has joined #RubyOnRails
[04:25:15] rohit: has joined #RubyOnRails
[04:25:21] roamingdog: i remember seeing 'viro' and 'virinaj' on bathroom doors somewhere
[04:25:41] roamingdog: virinoj i mean, dangit
[04:27:22] Adamp: thanks all, calling it a night....
[04:27:30] roamingdog: sevenseacat: ever happen to read the Philip José Farmer book To Their Scattered Bodies Go (first of Riverworld series)?
[04:28:34] KnownSyntax: has joined #RubyOnRails
[04:28:45] jfelchner_: has joined #RubyOnRails
[04:29:03] roamingdog: well, as you may have guessed by now, he makes use of Esperanto - people find themselves on a planet after they die, and they speak several languages of course, so they all start learning Esperanto
[04:29:58] tenzan: has joined #RubyOnRails
[04:30:16] roamingdog: since you're interested in artificial languages, may I ask, ever heard of Unifon?
[04:32:00] Devalo: has joined #RubyOnRails
[04:33:24] roamingdog: it's a phonetic alphabet for English. I read about it when I was a kid, and was so excited that it could become the alphabet of the world. It's very simple; instead of 26 letters, with combinations to create all the sounds we need to speak English, it has 40, one per 'sound'. So learning how to spell becomes a non-problem.
[04:37:45] htmldrum: has joined #RubyOnRails
[04:39:49] blindMoe: has joined #RubyOnRails
[04:40:03] dionysus69: has joined #RubyOnRails
[04:40:10] roamingdog: I'm so anticipating your reaction, and assuming you're reading about Unifon even now!
[04:40:34] sevenseacat: I'm actually not, sorry <_< I'm working
[04:40:43] gmci_: has joined #RubyOnRails
[04:40:57] moeabdol: has joined #RubyOnRails
[04:41:36] idefine: has joined #RubyOnRails
[04:42:25] meinside: has joined #RubyOnRails
[04:43:42] SteenJobs: has joined #RubyOnRails
[04:43:49] stannard: has joined #RubyOnRails
[04:43:49] roamingdog: joking, no worries
[04:43:58] zrl__: has joined #RubyOnRails
[04:45:02] matthew__: has joined #RubyOnRails
[04:45:09] RahulT: has joined #RubyOnRails
[04:47:40] p1k: has joined #RubyOnRails
[04:59:38] idefine: has joined #RubyOnRails
[05:02:28] Devalo: has joined #RubyOnRails
[05:04:38] rahult_: has joined #RubyOnRails
[05:07:52] speaking1ode: has joined #RubyOnRails
[05:10:21] agit0: has joined #RubyOnRails
[05:11:09] p1k: if my development rails s process is taking up 1.5gb of memory (after running for a while) is something wrong? I'm trying to remember now whether it was always this bloated
[05:11:25] p1k: but I didn't pay attention to it for a while until I had to run it on my older laptop
[05:11:48] wasane: has joined #RubyOnRails
[05:13:47] mrgreenfur: has joined #RubyOnRails
[05:14:04] qejk: has joined #RubyOnRails
[05:14:23] roamingdog: that's huge, what'r you doing?
[05:14:33] bronson: has joined #RubyOnRails
[05:21:04] p1k: roamingdog: idk, should I be objspace profiling the runtime and going through the dumps? It does seem huge, but there is a lot of sass / es6 / coffee compiling which maybe isn't getting Garbage collected efficiently also
[05:23:40] roamingdog: so much huger than sass, coffee, etc. are there video files maybe?
[05:25:26] baweaver: has joined #RubyOnRails
[05:29:32] tfitts: not everyone can use those huh
[05:29:38] moeabdol: has joined #RubyOnRails
[05:29:49] bruno-: has joined #RubyOnRails
[05:30:50] GriffinHeart: has joined #RubyOnRails
[05:31:25] sevenseacat: helpa has an access list
[05:31:29] moeabdol: has joined #RubyOnRails
[05:31:32] baweaver: You have to be Radar approved™
[05:31:42] tfitts: I think I maybe tried that like a year ago and came to the same conclusion.
[05:31:43] Radar: or a word like that
[05:31:56] Radar: seems legit
[05:31:57] matthias_: has joined #RubyOnRails
[05:32:08] Radar: tfitts: You have to know deep in your heart that you have access to the bot. Only then can you use it.
[05:32:42] tfitts: that's like very deep poetry
[05:34:50] tfitts: I signed up for irccloud and for some reason just wasted like an hour reading most of the last 2 days of this channels history
[05:35:05] sevenseacat: can definitely think of better things to do with your time.
[05:35:13] pawnbox: has joined #RubyOnRails
[05:35:18] tfitts: seriously, like bed
[05:35:49] Rodya_: has joined #RubyOnRails
[05:37:13] rvanlieshout: has joined #RubyOnRails
[05:37:16] lxsameer: has joined #RubyOnRails
[05:37:30] Ropeney: thats dedication!
[05:40:14] tfitts: this channel seems much busier reading it that way though.
[05:40:50] Ropeney: it gets pretty busy at times
[05:41:37] tfitts: seems like maybe EU daytime hours are busier
[05:45:33] Radar: definitely
[05:47:03] emachnic: has joined #RubyOnRails
[05:51:07] blindMoe: has joined #RubyOnRails
[05:51:25] p1k: is there something to list an entire controller callstack from rack received request to render? raise out of the view template ?
[05:51:52] jetpack_joe: has joined #RubyOnRails
[05:52:07] yfeldblum: has joined #RubyOnRails
[05:54:06] srinidhi: has joined #RubyOnRails
[06:00:37] jgrevich: has joined #RubyOnRails
[06:06:19] RahulT: has joined #RubyOnRails
[06:07:52] sp1rs: has joined #RubyOnRails
[06:10:35] rubyonrails797: has joined #RubyOnRails
[06:10:55] pLaToOn: has joined #RubyOnRails
[06:11:40] Macaveli: has joined #RubyOnRails
[06:12:36] aganov: has joined #RubyOnRails
[06:14:38] tvw: has joined #RubyOnRails
[06:15:02] chagel: has joined #RubyOnRails
[06:16:24] meoblast001: has joined #RubyOnRails
[06:20:55] benlieb: has joined #RubyOnRails
[06:27:57] srinidhi1: has joined #RubyOnRails
[06:28:23] thejamespinto: has joined #RubyOnRails
[06:30:24] lemur: has joined #RubyOnRails
[06:30:39] tetraktys: has joined #RubyOnRails
[06:30:57] sp1rs: has joined #RubyOnRails
[06:31:04] bruno-: has joined #RubyOnRails
[06:31:06] GriffinHeart: has joined #RubyOnRails
[06:31:50] ur5us: has joined #RubyOnRails
[06:33:21] tildes: has joined #RubyOnRails
[06:34:58] Macaveli: has joined #RubyOnRails
[06:35:08] baweaver: has joined #RubyOnRails
[06:35:50] tildes: has joined #RubyOnRails
[06:37:45] jstransky: has joined #RubyOnRails
[06:38:14] finnnnnnnnnnn: has joined #RubyOnRails
[06:39:53] GriffinHeart: has joined #RubyOnRails
[06:41:05] Palsson: has joined #RubyOnRails
[06:43:46] chagel: has joined #RubyOnRails
[06:43:48] armyriad: has joined #RubyOnRails
[06:44:18] lemur: has joined #RubyOnRails
[06:49:07] Pazician: has joined #RubyOnRails
[06:50:07] ishamo: has joined #RubyOnRails
[06:50:56] meoblast: has joined #RubyOnRails
[06:53:19] baweaver: has joined #RubyOnRails
[06:53:57] violarium: has joined #RubyOnRails
[06:54:45] mark_66: has joined #RubyOnRails
[06:57:44] AimlessRAven: has joined #RubyOnRails
[06:59:01] baweaver: has joined #RubyOnRails
[07:00:26] rickmasta: has joined #RubyOnRails
[07:01:02] DoubleMalt: has joined #RubyOnRails
[07:01:14] eyck: has joined #RubyOnRails
[07:05:57] fox_mulder_cp: has joined #RubyOnRails
[07:09:02] RahulT: has joined #RubyOnRails
[07:09:29] dionysus69: has joined #RubyOnRails
[07:13:32] rodfersou: has joined #RubyOnRails
[07:15:28] sp1rs: has joined #RubyOnRails
[07:15:35] tagaulap: has joined #RubyOnRails
[07:17:49] artto: has joined #RubyOnRails
[07:18:07] benlieb: has joined #RubyOnRails
[07:18:25] ur5us: has joined #RubyOnRails
[07:18:41] tvw: has joined #RubyOnRails
[07:19:43] finnnnnnnnnnn: has joined #RubyOnRails
[07:19:53] benlieb: has joined #RubyOnRails
[07:21:58] blindMoe: has joined #RubyOnRails
[07:23:00] stannard: has joined #RubyOnRails
[07:26:57] beilabs: has joined #RubyOnRails
[07:28:29] pawnbox: has joined #RubyOnRails
[07:28:59] thejamespinto: has joined #RubyOnRails
[07:32:03] solars: hi, if I have repeating code to transform params, like this: https://gist.github.com/solars/03894a5b262b7adcf03616ebfd50afce how would you refactor it across actions?
[07:32:05] bruno-: has joined #RubyOnRails
[07:34:40] jenrzzz: has joined #RubyOnRails
[07:34:40] jenrzzz: has joined #RubyOnRails
[07:35:30] darutoko: has joined #RubyOnRails
[07:35:35] sevenseacat: looks like a search objectr.
[07:35:36] baweaver: solars: I wouldn't
[07:35:57] baweaver: What I would do is put everything into scope methods
[07:36:19] baweaver: then have those take the params in, and do whatever actions needed on them
[07:37:03] baweaver: http://www.baweaver.com/blog/2015/05/04/sublime-scoping-with-rails/ - that covers most of what I tend to do on those types of challenges.
[07:37:22] sevenseacat: I wouldnt do that :)
[07:37:29] baweaver: that way you have reusable methods everywhere.
[07:37:33] baweaver: ACTION shrugs
[07:37:38] baweaver: to each their own
[07:37:39] konsolebox: has joined #RubyOnRails
[07:37:40] solars: discuss! :)
[07:37:49] sevenseacat: baweaver: what you said has nothing to do with transforming params
[07:37:57] solars: advantages/disadvantages?
[07:38:08] baweaver: sevenseacat: xy problem
[07:38:15] sevenseacat: I dont think so
[07:38:18] baweaver: it's likely used to query below
[07:38:26] sevenseacat: sure. a single query.
[07:38:33] solars: I agree with sevenseacat it probably should stay in the controller
[07:38:37] sevenseacat: I've seen lots of code like it and I've written code like it
[07:38:40] sevenseacat: I never said the controller...
[07:38:52] n008f4g_: has joined #RubyOnRails
[07:38:56] antgel: has joined #RubyOnRails
[07:39:03] solars: rephrasing, should not go into the model
[07:39:20] baweaver: looks like a scope, quacks like a scope
[07:39:58] baweaver: so before_* actions or what then?
[07:40:00] solars: for me, a scope would receive an already transformed param
[07:40:25] baweaver: is the transformation common?
[07:40:40] sevenseacat: what I've done in the past is things like this https://gist.github.com/sevenseacat/89ce49e6002c468d57c33d95b2bb50f6
[07:40:45] baweaver: and is it always done the same way across models that might query?
[07:41:02] sevenseacat: isolate all of the param transformation inside a form object, and then deal with using in a query object
[07:41:03] speaking1ode: has joined #RubyOnRails
[07:41:54] baweaver: they're not incredibly different methods.
[07:42:03] sevenseacat: they're fundamentally quite different.
[07:43:40] baweaver: if you say so, I just don't see them as all that different.
[07:44:02] solars: well you basically extract the transformation into it's own model
[07:44:03] baweaver: Essentially we're both taking in params, defining methods that take said params, and building a query from it
[07:44:37] baweaver: Though I tend to be averse to making new objects for it, and instead put it in the relevant model, so on that different schools of thought
[07:44:37] lalalaaa: has joined #RubyOnRails
[07:44:54] shibly: has joined #RubyOnRails
[07:45:12] baweaver: further admission that I'm refining the above quite heavily to be more powerful without the need to even define methods
[07:45:19] artto: has joined #RubyOnRails
[07:45:27] lalalaaa: Hi! What's the best way to run `sudo QUEUE=paperclip bin/rake jobs:work RAILS_ENV=production` in the background? Do I just attach a `&` at the end or is it bad practice as 1) it will make a lot of noise, 2) it becomes harder to debug errors?
[07:45:30] shibly: gem list shows 'rails' but why doesn't https://github.com/rails/rails show rails there?
[07:45:34] shibly: Isn't rails a gem?
[07:45:34] baweaver: something to the nature of squeel without the need to monkeypatch
[07:45:38] sevenseacat: shibly: yes, it is.
[07:45:47] sevenseacat: thats the source code for rails. whats the problem?
[07:46:14] baweaver: lalalaaa: nohup, background will kill itself on logout
[07:46:29] lalalaaa: baweaver: Sorry, nohup?
[07:46:43] baweaver: http://unix.stackexchange.com/questions/3886/difference-between-nohup-disown-and
[07:46:48] lalalaaa: Any chance there's a `-d` switch for daemon?
[07:47:03] sevenseacat: easy to look and see
[07:47:08] baweaver: you'd have to make an init.d script for that.
[07:47:22] baweaver: or some other similar daemonization on a unix platform
[07:47:43] lalalaaa: Thanks guys
[07:47:53] sevenseacat: thanks *everyone
[07:48:11] jenrzzz: has joined #RubyOnRails
[07:48:24] shibly: Rails gem is in \lib\ruby\gems\2.1.0\gems , activerecord, activemodels are also there, Here https://github.com/rails/rails , activerecord, activemodel are there, but no rails, why?
[07:48:36] lalalaaa: `nohup sudo QUEUE=paperclip bin/rake jobs:work RAILS_ENV=production` doesn't look too bad.
[07:48:52] solars: baweaver, sevenseacat I'd also not call it fundamentally different - but to me it seems that the transformation of params should not be in the model - however, the question if the overhead of a separate object in this case justifies the cleanlyness
[07:48:54] sevenseacat: shibly: again, that is the source of the rails gem, what problem do you have?
[07:48:56] rrawlins: has joined #RubyOnRails
[07:49:47] baweaver: solars: what if they weren't params
[07:49:54] baweaver: forget params for the moment
[07:49:54] solars: sevenseacat, as you're a native english speaker afaik, guys is usually used in a generic sense I thought?
[07:49:58] sevenseacat: shibly: I'd appreciate if you answered my question instead of asking the same thing a third time.
[07:50:01] sevenseacat: solars: not always.
[07:50:07] solars: sevenseacat, but mostly :)
[07:50:10] baweaver: and instead consider that they're just inputs to a function
[07:50:13] sevenseacat: solars: not always.
[07:50:33] sevenseacat: solars: typically by said guys.
[07:50:51] shibly: sevenseacat, Are activerecord,activemodel in rails source code?
[07:51:08] sevenseacat: shibly: they are in the repo you posted, yes.
[07:51:10] solars: sevenseacat, but isn't it as bad to make assumptions about what somebody means?
[07:51:10] baweaver: https://github.com/rails/rails/blob/master/rails.gemspec
[07:51:15] sevenseacat: they are not inside the rails gem.
[07:51:29] solars: baweaver, yeah I agree with that
[07:51:33] shibly: What's the size of rails?
[07:51:37] sevenseacat: solars: I don't think it's bad to encourage gender-nonspecific language, no.
[07:51:43] sevenseacat: shibly: again, define "size".
[07:52:11] solars: sevenseacat, I consider it bad to assume that people are using it in that specific, negative way - and not to stand above that
[07:52:25] sevenseacat: solars: I never said anything about that.
[07:52:31] solars: you implied it
[07:52:34] baweaver: shibly: why does it matter?
[07:52:37] sevenseacat: I simply encourage the use of words like 'everyone' instead of 'guys'.
[07:52:45] sevenseacat: solars: who's making assumptions now?
[07:52:45] lalalaaa: baweaver: `nohup sudo QUEUE=paperclip bin/rake jobs:work RAILS_ENV=production` just says appending output to nohup.out and doesn't seem to daemonize. I'd rather it be silent as well as those log files will without a doubt grow massive.
[07:53:04] baweaver: lalalaaa: read into daemonization, or just use ActiveJob
[07:53:05] solars: sevenseacat, alright, I agree with that
[07:53:11] solars: sevenseacat, :)
[07:53:41] shibly: baweaver, I can know the size of others web framework easily, like cakephp
[07:53:45] baweaver: shibly: if you _really_ want to know, clone the repo and use `du -h /path/to/rails`
[07:53:59] sevenseacat: shibly: i doubt you can
[07:54:02] solars: sevenseacat, I noticed it because in my language we've got a lot of people (mostly feminists) creating problems out of something they should stand above
[07:54:03] baweaver: shibly: it's incredibly irrelevant
[07:54:25] baweaver: solars: sevenseacat: #ruby-offtopic
[07:54:30] sevenseacat: solars: maybe they've been standing above it for so long and not seeing any change in behaviour
[07:54:31] solars: baweaver, sorry
[07:54:38] sevenseacat: so they get tired of getting walked all over
[07:54:38] solars: sevenseacat, probably
[07:54:50] sevenseacat: I'm certainly in that boat.
[07:55:04] sevenseacat: baweaver: I have no interest in your #ruby-related channels, sorry.
[07:55:05] baweaver: rather to say: /join #rubyofftopic
[07:55:06] solars: sevenseacat, but it's easy to get cought in this, and overreact it seems
[07:55:14] solars: baweaver, stopping now, sorry :)
[07:55:50] sevenseacat: solars: I don't see how suggesting alternate words is overreacting.
[07:56:22] solars: sevenseacat, I was referring to my reference in my own language - I'm on your side simply because 'guys' causes confusion to outsiders
[07:56:27] shibly: baweaver, No, it's not irrelevant.
[07:56:31] GriffinHeart: has joined #RubyOnRails
[07:56:45] sevenseacat: shibly: what relevance does the size of a framework on diskhave?
[07:56:48] baweaver: then use the du -h command on it
[07:57:24] shibly: sevenseacat, baweaver Size will tell you how heavy the framework is.
[07:57:31] sevenseacat: no, it won't.
[07:57:46] baweaver: shibly: that's fairly shortsighted
[07:58:03] sevenseacat: because heaviness is determined by amount of functionality, not lines of code
[07:58:05] baweaver: more lines of code, but could be a ligher weight framework
[07:58:27] baweaver: judging by size makes absolutely no sense to me
[07:58:31] ur5us: has joined #RubyOnRails
[07:58:39] sevenseacat: different languages allow different amounts of functionality in different amounts of code
[07:58:41] baweaver: unless you're talking Javascript
[07:58:45] shibly: baweaver, What to do with Java or Perl here?
[07:58:45] baweaver: and then only on the frontend
[07:58:48] solars: just consider C vs a high level language - doesn't really make sense to compare
[07:58:52] sevenseacat: comparing a PHP framework and a Ruby framework on file size makes no sense whatsoever
[07:59:14] solars: shibly, because it relies on syntax/language
[07:59:32] Vendorlock: has joined #RubyOnRails
[07:59:50] baweaver: shibly: focus on things that matter such as speed, async handling, threading, parallelization, and speed of development
[08:00:02] sevenseacat: lines of code is also meaningless because you could write the same framework in 10 lines of code or 100000 lines of code
[08:00:04] havenwood: shibly: Here, weighing in just under 1k: https://github.com/rkh/almost-sinatra/blob/master/almost_sinatra.rb
[08:00:17] sevenseacat: and they could do the exact same thing
[08:00:44] baweaver: If those were your concern, you'd find that Rails is fast to develop but slower to run. Elixir is much faster running, but slower to develop in some cases.
[08:00:53] PedramT: has joined #RubyOnRails
[08:01:47] shibly: lib\ruby\gems\2.1.0\gems\rails-4.2.6 , here i don't see activerecord, activemodel and others, i see only guides\ there , why? Isn't is the source code of rails?
[08:01:56] shibly: C:\Ruby21\lib\ruby\gems\2.1.0\gems\rails-4.2.6
[08:02:12] baweaver: they're separate gems
[08:02:34] sevenseacat: the Rails repository holds the source for many different Rails gems.
[08:02:40] sevenseacat: such as ActiveRecord, etc.
[08:02:51] shibly: But i see all those activerecord,activemodel there, https://github.com/rails/rails
[08:03:05] sevenseacat: see what I just said
[08:03:28] baweaver: shibly: if you continue to repeat yourself and ignore us, we're just going to put you in our ignore lists
[08:03:44] lalalaaa: Thanks again guys!
[08:04:00] sevenseacat: lalalaaa: thanks everyone*
[08:04:07] shibly: I'm not ignoring anyone, i can't understand the policy of source code, i can't find the source code of rails
[08:04:15] sevenseacat: you just linked to it.
[08:04:19] darkxploit: has joined #RubyOnRails
[08:04:25] Radar: sevenseacat: https://github.com/rails/rails is the source code.
[08:04:30] Radar: Whoops, wrong S.
[08:04:41] sevenseacat: it is a shell gem that does little more than link to and include other gems.
[08:04:51] baweaver: pretty much
[08:05:02] baweaver: most of it was modularized out into Active* repos
[08:05:13] sevenseacat: no, they're all in the same repo.
[08:05:15] shibly: https://github.com/rails/rails , it looks it's the source code of other seperate gems like activerecord,activemode and others
[08:05:26] baweaver: we just said that
[08:05:29] jsrn: has joined #RubyOnRails
[08:05:30] baweaver: hence the ignoring comment
[08:06:04] shibly: Ok, thank you all for your answers, i need to leave now, will see you later
[08:06:27] shibly: has left #RubyOnRails: ("Leaving")
[08:06:42] neutrino1: has joined #RubyOnRails
[08:08:01] finnnnnnnnnnn: has joined #RubyOnRails
[08:09:42] drptbl: has joined #RubyOnRails
[08:11:05] Rodya_: has joined #RubyOnRails
[08:14:16] Rodya_: has joined #RubyOnRails
[08:15:42] Vendorlock: has left #RubyOnRails: ("Leaving")
[08:16:11] Macaveli: has joined #RubyOnRails
[08:16:44] weckl: has joined #RubyOnRails
[08:16:53] bronson: has joined #RubyOnRails
[08:18:29] myntcake: has joined #RubyOnRails
[08:19:21] snowy: has joined #RubyOnRails
[08:21:28] htmldrum: has joined #RubyOnRails
[08:22:10] pawnbox: has joined #RubyOnRails
[08:22:23] Devalo: has joined #RubyOnRails
[08:23:39] lxsameer: has joined #RubyOnRails
[08:25:06] tetraktys: has joined #RubyOnRails
[08:26:07] mikecmpbll: has joined #RubyOnRails
[08:27:39] blackhuey: has joined #RubyOnRails
[08:29:26] moeabdol: has joined #RubyOnRails
[08:29:43] thejamespinto: has joined #RubyOnRails
[08:32:41] bruno-: has joined #RubyOnRails
[08:32:41] timmyBsd: has joined #RubyOnRails
[08:36:11] ur5us: has joined #RubyOnRails
[08:42:11] BernhardPosselt: has joined #RubyOnRails
[08:42:21] rrawlins_: has joined #RubyOnRails
[08:43:08] BernhardPosselt: hi I want to import data from an XML file and I've got a parameter that tells the import interface wether to store it in the database now or later using a cronjob. Whats the best way to REST this?
[08:43:38] BernhardPosselt: ive thought of POST /xmlimport
[08:43:55] BernhardPosselt: then json as payload which contains the flag for the import and the xml
[08:44:14] BernhardPosselt: putting xml into JSON feels ultra weird though xD
[08:47:05] rrawlins: has joined #RubyOnRails
[08:52:08] darutoko-: has joined #RubyOnRails
[08:53:35] blindMoe: has joined #RubyOnRails
[08:55:11] GriffinHeart: has joined #RubyOnRails
[08:55:18] sp1rs: has joined #RubyOnRails
[08:56:07] ql6wlld: has joined #RubyOnRails
[08:57:54] arBmind: has joined #RubyOnRails
[08:59:27] arup_r: has joined #RubyOnRails
[09:00:32] Spami: has joined #RubyOnRails
[09:00:34] artto: has joined #RubyOnRails
[09:01:46] meoblast: has joined #RubyOnRails
[09:02:24] skislak: has joined #RubyOnRails
[09:02:37] arup_r: I don't see any SQL query logged into production.log file. I grep the project to see if there are any settings like `config.active_record.logger = nil`. But I didn't see any config, then production.log has no SQL query trace? Is there any other settings to disable it? My Rails version is *Rails 3.2.14*
[09:03:03] rvanlieshout: arup_r: isn't that controlled just by the log_level ?
[09:03:40] arup_r: don't know, I just found http://guides.rubyonrails.org/configuring.html#configuring-active-record so thought, that is the only option to disable it.
[09:03:48] arup_r: let me check the log level
[09:03:54] rvanlieshout: but you don't want to disable it :)
[09:05:14] arup_r: Yes, I want to enable it. But was checking how is it disabled. But not seeing that settings.. I see the production.rb has the defualt log level set ( which is :info)
[09:05:20] dustinm`: has joined #RubyOnRails
[09:06:07] arup_r: rvanlieshout: My question is from where it is disabled then? I hope by default it is "enable".
[09:06:42] sevenseacat: has joined #RubyOnRails
[09:06:46] finnnnnnnnnnn: has joined #RubyOnRails
[09:06:51] arBmind1: has joined #RubyOnRails
[09:07:04] rvanlieshout: by the log level
[09:07:54] pawnbox: has joined #RubyOnRails
[09:07:58] arup_r: oh. didn't know. So what should I set there ?
[09:08:06] meoblast: has joined #RubyOnRails
[09:09:02] rvanlieshout: http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels
[09:09:09] rvanlieshout: don't know which one enables sql though
[09:10:09] skislak: has joined #RubyOnRails
[09:10:29] arup_r: I am reading that page too...
[09:11:04] emachnic: has joined #RubyOnRails
[09:11:57] arup_r: got it http://stackoverflow.com/a/10067386/2767755
[09:12:02] yfeldblum: has joined #RubyOnRails
[09:12:45] meoblast: has joined #RubyOnRails
[09:14:28] AlexJakeGreen: has joined #RubyOnRails
[09:17:08] jimmyj_: has joined #RubyOnRails
[09:17:48] jimmyj20483: hi, what is the easiest way to create a dummy f.select when you are roughing out a frontend ?
[09:18:11] jimmyj20483: if I don't put anything for select options I will get undefined method `empty?' for nil:NilClass
[09:19:30] GriffinHeart: has joined #RubyOnRails
[09:19:34] jhass: put an empty array?
[09:19:40] htmldrum: has joined #RubyOnRails
[09:19:58] meoblast: has joined #RubyOnRails
[09:23:09] thejamespinto: has joined #RubyOnRails
[09:25:05] i4: has joined #RubyOnRails
[09:25:07] doublemalt_: has joined #RubyOnRails
[09:28:18] CornishPasty: Does anyone know a way to include faraday calls in rack-mini-profiler?
[09:28:24] Rodya_: has joined #RubyOnRails
[09:28:26] CornishPasty: Similar to sql
[09:28:42] workmad3: has joined #RubyOnRails
[09:28:55] finnnnnnnnnnn: has joined #RubyOnRails
[09:35:11] pawnbox: has joined #RubyOnRails
[09:37:02] GriffinHeart: has joined #RubyOnRails
[09:40:06] artto: has joined #RubyOnRails
[09:40:09] Ergo: has joined #RubyOnRails
[09:40:32] finnnnnnnnnnn: has joined #RubyOnRails
[09:41:10] Ropeney: has joined #RubyOnRails
[09:43:06] pawnbox_: has joined #RubyOnRails
[09:44:52] marr: has joined #RubyOnRails
[09:46:47] sp1rs: has joined #RubyOnRails
[09:46:50] chipotle: has joined #RubyOnRails
[09:48:03] noobsu: has joined #RubyOnRails
[09:50:34] sevenseacat: has joined #RubyOnRails
[09:51:18] Cervajz_: has joined #RubyOnRails
[09:52:48] neutrino: has joined #RubyOnRails
[09:54:19] blindMoe: has joined #RubyOnRails
[09:55:20] brahman: has joined #RubyOnRails
[09:56:17] blackmesa: has joined #RubyOnRails
[09:56:40] brahman: Hi, is it normal for has_and_belongs_to_many relationships to only work when using the helper methods for creation of the relationship. ie user.lunch.create(..) and not user.create(:lunch_id = 1)
[09:57:49] brahman: When I use the user.create method and pass in the lunch_id, rails doesn't add any row to the lunches_users table...
[09:58:32] universa1: brahman: you are using it wrong ;)
[09:58:56] universa1: brahman: there is no lunch_id method, which would be there if you had a belongs_to association
[09:59:30] universa1: brahman: but since you have habtm, a n-to-m association, it is User.create lunch_ids: [1]
[10:00:02] universa1: brahman: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_and_belongs_to_many
[10:00:06] universa1: brahman: !associations
[10:00:06] helpa: brahman: http://guides.rubyonrails.org/association_basics.html - Active Record Association Basics by Mike Gunderloy
[10:01:37] neanderslob: has joined #RubyOnRails
[10:02:36] PedramT: has joined #RubyOnRails
[10:02:59] yfeldblum: has joined #RubyOnRails
[10:07:26] BernhardPosselt: has left #RubyOnRails: ()
[10:07:38] navneet_: has joined #RubyOnRails
[10:08:33] moeabdol: has joined #RubyOnRails
[10:08:36] i4_: has joined #RubyOnRails
[10:10:51] pawnbox: has joined #RubyOnRails
[10:13:35] nickenchuggets: has joined #RubyOnRails
[10:13:49] drptbl_: has joined #RubyOnRails
[10:14:01] AimlessRAven: has joined #RubyOnRails
[10:14:04] brahman: universa1: thanks for getting back to me. reading docs again just to make sure I understand the relationships again.
[10:15:10] Jasaka: has joined #RubyOnRails
[10:18:07] baweaver: has joined #RubyOnRails
[10:18:37] universa1: brahman: yw :-)
[10:19:21] allisterantosik: has joined #RubyOnRails
[10:19:24] sp1rs: has joined #RubyOnRails
[10:22:19] armyriad: has joined #RubyOnRails
[10:23:46] egray: has joined #RubyOnRails
[10:24:29] edwinvdgraaf: has joined #RubyOnRails
[10:24:57] shibly: has joined #RubyOnRails
[10:25:06] shibly: has left #RubyOnRails: ("Leaving")
[10:31:49] _3by8: has joined #RubyOnRails
[10:33:06] RahulT: has joined #RubyOnRails
[10:34:04] lxsameer: has joined #RubyOnRails
[10:34:09] bruno-: has joined #RubyOnRails
[10:35:51] _3by8: Would someone mind looking at this Gist please? The error message is in the title: https://gist.github.com/threebyeight/dee311be560bd625d4f8a4672da99719
[10:36:03] _3by8: I'm trying to use STI but failing...
[10:36:30] _3by8: That error message occurs whenever I try to call SalesRep.new
[10:37:10] meoblast: has joined #RubyOnRails
[10:38:55] jhass: _3by8: please edit the gist and add another file with the full trace output
[10:38:57] universa1: _3by8: your chances of getting help increase a lot if you actually state your problem in the channel, with a short error description. and not just: gist link + doesn't work
[10:39:54] _3by8: universa1: saying that I'm attempting to use single table inheritance and that calling SalesRep.new results in that error message isn't short enough?
[10:40:25] universa1: _3by8: you basically did: gist link + doesn't work...
[10:40:39] universa1: and then it's missing error trace...
[10:41:04] pawnbox: has joined #RubyOnRails
[10:41:12] _3by8: I'll add the error trace though I appended my original statement...
[10:41:21] _3by8: I appreciate the help.
[10:42:48] _3by8: jhass: I updated it.
[10:43:00] universa1: _3by8: https://gist.github.com/threebyeight/dee311be560bd625d4f8a4672da99719#file-full-trace-L14
[10:43:04] universa1: add the controller!
[10:43:26] _3by8: universa1: the controller is simply SalesRep.new
[10:43:35] universa1: _3by8: show!
[10:44:45] _3by8: universa1: okay!
[10:44:46] Ropeney: won't you need a "type" column aswell?
[10:45:05] _3by8: ropeney: I've added a type column to the database.
[10:45:16] Ropeney: and we can see that how?
[10:45:22] Macaveli: has joined #RubyOnRails
[10:45:31] _3by8: ropeney: I don't know, I could post the migration or my schema if you'd like...
[10:45:43] Ropeney: schema of the table is generally good in question like these
[10:45:55] Ropeney: since your initialize didn't have it, it had a boolean for sales_rep which made me think...
[10:45:56] jhass: _3by8: try calling super as first thing in your overridden initialize
[10:46:04] darutoko: has joined #RubyOnRails
[10:46:16] universa1: _3by8: jhass+1 ;)
[10:46:32] sp1rs: has joined #RubyOnRails
[10:46:57] jhass: _3by8: or perhaps prefer a factory method, like def self.build_blank; new(street_address: "", ...); end
[10:48:43] _3by8: jhass: I think we're getting somewhere. I wasn't aware of the whole super thing... I tried Googling it earlier since I had a feeling there was a supersomething keyword I was missing but I couldn't immediately find it...
[10:49:05] stannard: has joined #RubyOnRails
[10:49:12] universa1: overwriting the initialize method in a ar model is something i'd think at least twice about ;)
[10:50:12] _3by8: universa1: alright so the factory method that jhass outlined is probably better?
[10:50:45] sp1rs: has joined #RubyOnRails
[10:50:54] _3by8: I'm guessing using initialize might break some of the Rails magic.
[10:51:30] jhass: I think there was some smart stuff so even stuff like some_relation.sales_rep.build_blank would work (with properly populating the association)
[10:51:35] jhass: but I don't remember what it was
[10:52:07] sandelius: has joined #RubyOnRails
[10:52:11] universa1: jhass: you can define a scope
[10:52:38] jhass: pretty sure not what I'm thinking of
[10:52:43] universa1: scope :blank, -> {where(default_attributes)}; SalesRep.blank.new
[10:52:58] universa1: project.sales_reps.blank.new ;)
[10:53:04] universa1: should work iirc
[10:53:32] universa1: you can also define that as a class method
[10:53:35] jhass: I think there was something like where for just populating
[10:54:08] artto: has joined #RubyOnRails
[10:54:42] beilabs_: has joined #RubyOnRails
[10:54:55] jhass: there we go http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-create_with
[10:54:57] tbuehlmann: do you mean scope_for_create?
[10:56:03] jhass: def self.blank; create_with(...); end should work then, no?
[10:56:04] universa1: looks cleaner :-) i only used the scope approach for cases where i actually needed the scope for querying
[10:56:18] The_Phoenix: has joined #RubyOnRails
[10:56:26] _3by8: Here's something funny that just popped up, that base User model uses a has_one :sales_rep relationship on itself via class_name: "User" and a foreign key of sales_rep_id so calling self.sales_rep was causing Ruby to expect a User object when really I want to access the sales_rep property and set it to "true". Is there a way to get around that without having to rename the property in the table?
[10:56:35] artto: has joined #RubyOnRails
[10:56:50] FooMunki: has joined #RubyOnRails
[10:56:58] universa1: _3by8: do not name the association and the attribute the same.
[10:57:50] artto: has joined #RubyOnRails
[10:57:56] _3by8: What's all of this you guys have been talking about? That's a lot to read.
[10:58:55] The_Phoenix: has joined #RubyOnRails
[10:59:02] universa1: it's not going anywhere, so take your time ;)
[10:59:21] tetraktys: has joined #RubyOnRails
[10:59:43] tbuehlmann: jhass: what's the difference between create_with and just create? (beside create_with(nil) for resetting)
[11:00:09] jhass: create executes right away, no?
[11:00:17] rubyonrails634: has joined #RubyOnRails
[11:00:21] jhass: create_with just populates the attributes, like where does
[11:00:22] tbuehlmann: and create_with only instantiates?
[11:00:27] jhass: except it doesn't filter
[11:03:09] tbuehlmann: I don't get it
[11:03:29] jhass: photos = user.photos.create_with(caption: "None"); photos.create(photo_params); @photos = photos
[11:03:48] The_Phoenix: has joined #RubyOnRails
[11:03:53] jhass: say caption may or may not be in photo_params and you want a default
[11:03:59] tbuehlmann: why would I do that and not inject {caption: 'None'}?
[11:04:18] b0un7y_: has joined #RubyOnRails
[11:04:24] sp1rs: has joined #RubyOnRails
[11:04:43] ZerGabriel: has joined #RubyOnRails
[11:05:03] jhass: it makes more sense in contexts where you pass a scope around or have factory methods without explicit parameters
[11:06:07] s1kx-: has joined #RubyOnRails
[11:06:41] jhass: it can also make sense .find_or_create_by calls where you want to create with different parameters than you want to search for
[11:06:46] jhass: *sense in
[11:07:20] rubyonrails634: hi guys could someone help me out? https://gist.github.com/lcramer3/ff0fe0b7864efdd4a5fa8289eec9c032
[11:07:49] jhass: Application.create_with(application_params).find_or_create_by(name: application_params[:name])
[11:07:50] Rixius|Alt: has joined #RubyOnRails
[11:07:52] n008f4g_: has joined #RubyOnRails
[11:08:02] moeabdol: has joined #RubyOnRails
[11:10:24] Ropeney: rubyonrails634, p params and schema.rb for VasAnswer then update please
[11:10:53] Ropeney: nvm your parameters are in there
[11:11:01] blackmesa: has joined #RubyOnRails
[11:12:09] jhass: isn't it just .permit(:user_id, :vas_question_id, ...), without the :[] ?
[11:12:50] jhass: "You may declare that the parameter should be an array of permitted scalars by mapping it to an empty array"
[11:12:52] Ropeney: they are arrays though
[11:13:01] jhass: you basically say "only these values" and then give none
[11:13:26] _3by8: jhass: I'm ashamed to say I know so little about the ruby language that your method definition made little sense. Do I then call self.blank (the method using create_with) in the initialize method of my child class?
[11:13:26] jhass: er, nvm I misread
[11:13:51] jhass: _3by8: nonono
[11:14:02] jhass: first of all I didn't test that later stuff, just assumptions
[11:14:29] jhass: the point of any of those approaches is to not override initialize at all
[11:14:44] Ropeney: _3by8, https://samurails.com/tutorial/single-table-inheritance-with-rails-4-part-1/ is an awesome guide on STI, I think you have way overcomplicated all this
[11:14:49] _3by8: Oh, I get it, rather than call the new method, I call that method.
[11:14:57] jhass: _3by8: generically, def self.foo methods are called on the class
[11:15:07] _3by8: jhass: duh, yeah I'm stupid.
[11:15:19] navneet_: has joined #RubyOnRails
[11:15:27] jhass: _3by8: now rails does some magic there that also allows you to call them on relations pointing towards that class
[11:16:17] ferr: has joined #RubyOnRails
[11:16:23] rubyonrails634: ropeney, here it is with the schema https://gist.github.com/lcramer3/ff0fe0b7864efdd4a5fa8289eec9c032
[11:16:40] Ropeney: why are you assigning an arary to an integer
[11:17:24] rubyonrails634: i thought it would be an array of integers
[11:17:35] jhass: _3by8: basically the difference between calling new and create_with is having SalesRep.new_blank / user.sales_rep.new_blank or SalesRep.blank.new / user.sales_rep.blank.new on the call side
[11:17:43] artto: has joined #RubyOnRails
[11:17:45] Ropeney: no, it is a single integer
[11:17:56] jhass: _3by8: the latter has the benefit of not only allowing .new on the call side but also .create etc.
[11:18:32] Ropeney: I think your looking to do a has_many instead
[11:18:36] lxsameer: has joined #RubyOnRails
[11:18:38] lxsameer: has joined #RubyOnRails
[11:18:44] jhass: _3by8: you can use a scope or .where instead of create_with if you want to use it for fetching with only the matching attributes at the same time
[11:19:12] jhass: _3by8: say you want SalesRep.blank.all to return all records still having your default values, use where instead of create_with
[11:19:21] rubyonrails634: hmmm ok, i am trying to think of how i would do it.
[11:19:33] rubyonrails634: the thing is i really just need info i dont need it to be a relationship
[11:19:38] rubyonrails634: since its just recording data
[11:19:50] Ropeney: when its so much easier as a has_many
[11:20:13] xMopxShell: has joined #RubyOnRails
[11:20:21] thorgi: has joined #RubyOnRails
[11:20:27] rubyonrails634: okay, i its not easier for me because i am new, but i will work on that, thank you
[11:20:29] htmldrum: has joined #RubyOnRails
[11:21:13] Ropeney: you also might want some has_many_through by the looks of it
[11:21:15] arup_r: has joined #RubyOnRails
[11:21:16] jhass: rubyonrails634: the general solution is ^, though rails also has support for PostgreSQL arrays: http://guides.rubyonrails.org/active_record_postgresql.html
[11:21:19] rubyonrails634: after i do the has_many relationship, will it correctly store them as an array in the database?
[11:21:20] _3by8: jhass: thank you :)
[11:21:21] arup_r: has left #RubyOnRails: ()
[11:21:26] arup_r: has joined #RubyOnRails
[11:21:33] Ropeney: no it wont store as an array in the database
[11:21:48] jhass: rubyonrails634: well and there's http://api.rubyonrails.org/classes/ActiveRecord/AttributeMethods/Serialization/ClassMethods.html#method-i-serialize to mention
[11:22:00] stannard: has joined #RubyOnRails
[11:22:10] jhass: but both of those will probably be more hassle than good unless you know what you're doing, yeah
[11:22:13] rubyonrails634: okay, so it will do many inserts?
[11:22:15] jhass: so just for completeness
[11:22:35] b0un7y: has joined #RubyOnRails
[11:23:01] Devalo: has joined #RubyOnRails
[11:23:05] Ropeney: i think in your migration you want t.integer :blah_id, array: true, default: []
[11:23:15] Ropeney: if you want to store as an array
[11:23:50] navneet_: has joined #RubyOnRails
[11:24:08] rubyonrails634: great i am going to work on that
[11:24:31] rubyonrails634: i will try the has_many relationship first because i think that is the
[11:24:39] rubyonrails634: "proper" way to do it
[11:24:48] Ropeney: its going to make your life, alot easier!
[11:24:54] Ropeney: without the , in there
[11:24:58] lacrosse: has joined #RubyOnRails
[11:25:05] rubyonrails634: yes, you are probably right!
[11:25:43] rubyonrails634: another question, once i get the has_many correct, what kind of params will i be using
[11:25:53] rubyonrails634: will it be the same
[11:26:04] Ropeney: rubyonrails634, http://guides.rubyonrails.org/association_basics.html
[11:26:17] Ropeney: read through that then decide your model
[11:26:37] rubyonrails634: ok, i have read this before :)
[11:26:45] rubyonrails634: it makes a little bit more sense each time
[11:27:00] Ropeney: try 5 times then :)
[11:28:05] stardiviner: has joined #RubyOnRails
[11:32:57] jhass: I still peek into it from time to time
[11:33:01] jhass: so I must be at 50 or so
[11:33:54] b0un7y: has joined #RubyOnRails
[11:35:58] bruno-: has joined #RubyOnRails
[11:37:25] srinidhi: has joined #RubyOnRails
[11:38:12] b0un7y: has joined #RubyOnRails
[11:42:18] blindMoe: has joined #RubyOnRails
[11:46:19] moeabdol: has joined #RubyOnRails
[11:48:04] pawnbox: has joined #RubyOnRails
[11:49:00] darkxploit: has joined #RubyOnRails
[11:54:44] arup_r: has joined #RubyOnRails
[11:54:53] beilabs: has joined #RubyOnRails
[11:55:51] renegadeandy: has joined #RubyOnRails
[12:00:12] stardiviner: has joined #RubyOnRails
[12:01:18] maokomioko: has joined #RubyOnRails
[12:04:43] n008f4g_: has joined #RubyOnRails
[12:05:35] rickmasta: has joined #RubyOnRails
[12:07:42] flashpoint9: has joined #RubyOnRails
[12:08:08] navneet_: has joined #RubyOnRails
[12:08:48] amgs: has joined #RubyOnRails
[12:08:54] AntiSpamMeta: has joined #RubyOnRails
[12:10:07] flashpoint9: has joined #RubyOnRails
[12:10:32] crameth: has joined #RubyOnRails
[12:12:44] petor: has joined #RubyOnRails
[12:15:09] diegoaguilar: has joined #RubyOnRails
[12:18:13] AntiSpamMeta: has joined #RubyOnRails
[12:19:29] baweaver: has joined #RubyOnRails
[12:21:23] blackmesa: hi all. I am trying to use "allow_blank: true" for a text_field. I set a unique index on my database. however I get an error about violation of unique constraint. https://gist.github.com/anonymous/fc9b944b564b011625da076aa1e731fe
[12:21:29] diegoaguilar: has joined #RubyOnRails
[12:22:25] Cervajz: has joined #RubyOnRails
[12:23:20] pawnbox: has joined #RubyOnRails
[12:24:00] tbuehlmann: blackmesa, your constraint only allows for unique values
[12:24:02] pawnbox: has joined #RubyOnRails
[12:24:41] King_Rex: has joined #RubyOnRails
[12:24:43] blackmesa: yes but I want to allow the text_field to be empty on submit
[12:24:44] tbuehlmann: but your validation allows blank values. are you having a blank value in your table and are you trying to add another?
[12:25:02] tbuehlmann: that doesn't make sense to me
[12:25:08] beilabs: has joined #RubyOnRails
[12:25:10] blackmesa: I dont want empty values for :company_name
[12:25:45] blackmesa: but I want the text_field to be empty if there is no value in it
[12:26:03] navneet_: has joined #RubyOnRails
[12:26:59] blackmesa: in my database there shouldnt be empty values. But the text_field for :company can be blank
[12:27:27] sp1rs: has joined #RubyOnRails
[12:28:07] tbuehlmann: so you want to allow multiple null values but blank value
[12:29:05] tbuehlmann: so you want to allow multiple null values but no blank values?
[12:31:21] tbuehlmann: okay, that's what the constraint should do by now. what you want is a company_name= setter that assigns nil if the provided input is blank OR disable the form field upon submission if it's blank, so it's not even submitted
[12:33:44] thejamespinto: has joined #RubyOnRails
[12:34:00] tbuehlmann: could be this: https://gist.github.com/tbuehlmann/ddcbc138d6fd5ac68c68850202d6f453
[12:35:33] Cervajz_: has joined #RubyOnRails
[12:35:52] jsrn: has joined #RubyOnRails
[12:36:15] bruno-: has joined #RubyOnRails
[12:37:42] Cervajz__: has joined #RubyOnRails
[12:39:44] Ergo^: has joined #RubyOnRails
[12:39:57] tbuehlmann: or this: https://gist.github.com/tbuehlmann/a9e46217212281127a59c78ebe8cfa91
[12:42:42] blackmesa: tbuehlmann: thx for your help! will take a look into it
[12:45:28] tknz: has joined #RubyOnRails
[12:46:49] GodFather: has joined #RubyOnRails
[12:47:35] kimegede: has joined #RubyOnRails
[12:48:28] domgetter: has joined #RubyOnRails
[12:48:28] fox_mulder_cp: hi. i want use wicked for my registration wizard, but how use i'ts update method for update different objects after step? use switch, as user in show method too?
[12:49:29] domgetter: Is there a reason that the form that is made from form_for isn't passing along all the params back to rails?
[12:50:21] fox_mulder_cp: domgetter: see logs. may be form pass it, but it not allowed in controller's methods
[12:52:01] domgetter: The form isn't passing it. I've used byebug to look at the params in the controller, and it's missing the utf8 key, the authenticity_token key, etc.
[12:52:51] domgetter: Here's a snippet of the form partial: https://gist.github.com/domgetter/5df9cbdb3c06ea696a56c9a3761e2b13
[12:54:14] domgetter: Plus, the html that comes out does have the hidden fields for utf8 and the auth token
[12:54:44] phaza: has joined #RubyOnRails
[12:54:58] srinidhi: has joined #RubyOnRails
[12:55:08] LastWhisper____: has joined #RubyOnRails
[12:55:59] sandelius: has joined #RubyOnRails
[12:56:00] fox_mulder_cp: domgetter: ruby and rails version?
[12:57:05] blackmesa: tbuehlmann: hey I am not sure about https://gist.github.com/tbuehlmann/ddcbc138d6fd5ac68c68850202d6f453 . getting the same error ;/
[12:58:33] thejamespinto: has joined #RubyOnRails
[12:58:41] domgetter: fox_mulder_cp: 2.2 and 4.2
[12:58:58] joshkovach: has joined #RubyOnRails
[13:00:45] rafaelfranca: has joined #RubyOnRails
[13:01:27] tbuehlmann: blackmesa: have you tried creating a record in the console with either a blank string or a nil value?
[13:02:49] aegis3121: has joined #RubyOnRails
[13:03:02] ramortegui: has joined #RubyOnRails
[13:03:20] blackmesa: tbuehlmann: e.g. I have this entry already in my db https://gist.github.com/anonymous/db069a0c63fd9def15d3accaf87afb0b . When I change the role, I also get the constraint error
[13:03:21] arpegius: has joined #RubyOnRails
[13:03:25] rafaelfranca: has joined #RubyOnRails
[13:03:44] rafaelfranca: has joined #RubyOnRails
[13:04:18] tbuehlmann: no idea then
[13:04:26] Ergo^: has joined #RubyOnRails
[13:05:07] thejamespinto: has joined #RubyOnRails
[13:06:32] rake_db_migrate: has joined #RubyOnRails
[13:08:45] JulienITARD: has joined #RubyOnRails
[13:10:25] sevenseacat: has joined #RubyOnRails
[13:13:32] SeanLazer: has joined #RubyOnRails
[13:18:14] phaza: has joined #RubyOnRails
[13:18:54] fishpercolator: has joined #RubyOnRails
[13:19:53] fishpercolator: Hi all - I'm having an issue with (I think) jquery_ujs in a turbolinks form... is this the right place to ask for help?
[13:20:27] beauby: has joined #RubyOnRails
[13:21:14] htmldrum: has joined #RubyOnRails
[13:22:04] bronson: has joined #RubyOnRails
[13:22:10] universa1: fishpercolator: try ;)
[13:22:33] fishpercolator: I have two submit buttons on my (GET) form, but unlike a normal form the information about which button was pressed doesn't get added to the query string
[13:22:54] tildes: blackmesa: what is the error exactly, and what did you try to do? if you have db level constraints in place, in your schema, what are they?
[13:22:57] fishpercolator: I can see here <https://github.com/rails/jquery-ujs/blob/master/src/rails.js#L534> that it gets added to the form data somewhere but I don't see how to get access to it in my controller
[13:23:09] LastWhisper____: has joined #RubyOnRails
[13:23:32] maxdoubt: has joined #RubyOnRails
[13:23:47] fishpercolator: (FYI I'm using Turbolinks 5 in a Rails 4.x app so I appreciate I'm not being completely orthodox)
[13:24:22] mikecmpb_: has joined #RubyOnRails
[13:24:43] universa1: fishpercolator: so without jquery_ujs and turbolinks the information what button was pressed is added to the send data?
[13:25:27] fishpercolator: I'm not sure I can easily remove them from my app but I'm sure that's how HTML forms work - if you have an input/button with type=submit then its name and value get added to the form data
[13:26:00] universa1: fishpercolator: that would be the first thing i'd verify ;)
[13:26:45] fishpercolator: and from this ancient thread it looks like jquery_ujs is trying to replicate that: https://github.com/rails/jquery-ujs/issues/159
[13:27:10] universa1: but why not simply add a hidden field on submit?
[13:27:13] fishpercolator: universa1: I'm certain that's how non-JS HTML forms without jquery_ujs work
[13:27:36] finnnnnnnnnnn: has joined #RubyOnRails
[13:27:51] fishpercolator: I could do that, but I guess I'm looking for the "right" way, since it's obvious jquery_ujs is trying to capture the data
[13:28:03] fishpercolator: and there'd also be a race condition doing that because both events would fire simultaneously
[13:28:54] finnnnnnnnnnn: has joined #RubyOnRails
[13:29:00] blackmesa: tildes: https://gist.github.com/anonymous/ffbf8ac298eb80264a1ab786436d2ef3 I want my attribute to be unique if present. but I also want allow a blank field on the form
[13:29:20] draig: has joined #RubyOnRails
[13:29:53] tildes: blackmesa: first very quick guess would be to put the allow_blank check in your schema
[13:30:14] tildes: especially because your error points to the db constraint
[13:30:18] lcramer3: has joined #RubyOnRails
[13:30:26] blindMoe: has joined #RubyOnRails
[13:31:16] quazimodo: has joined #RubyOnRails
[13:31:19] blackmesa: tildes: I have already entries that have company_name = nil. New entries that have that too
[13:31:19] universa1: fishpercolator: with turbolinks 2.5.3 and rails 4.2.6 it works for me, i get a commit entry in the params hash
[13:31:47] Megamos: has joined #RubyOnRails
[13:31:51] fishpercolator: ah, so it might be a turbolinks 5 issue... I'll raise it over there on github
[13:31:54] fishpercolator: thanks for your help!
[13:32:29] godzillaenlacasa: has joined #RubyOnRails
[13:33:19] universa1: fishpercolator: lemme check
[13:33:58] tildes: blackmesa: what I am trying to say, is check if you get a different result, if you change your schema, to allow multiple nil values
[13:35:16] theblang: has joined #RubyOnRails
[13:35:29] platzhirsch: has joined #RubyOnRails
[13:35:30] universa1: fishpercolator: works also for me with turbolinks 5.0.0.beta2
[13:36:07] fishpercolator: huh! that's weird... I wonder what I'm doing wrong
[13:36:08] platzhirsch: Is there a way to pass in an attribute hash to an AR class, like this MyClass.new(hash) and specify that one of the date fields should be interpreted as UTC?
[13:36:18] blackmesa: tildes: this is my schema https://gist.github.com/anonymous/301f55b059cc2cdc45bae854f3000de6
[13:36:23] fishpercolator: universa1: you have a GET form?
[13:36:54] universa1: fishpercolator: https://gist.github.com/universal/6d6fe189082455f97f1c97cf3d2738f8
[13:36:56] tbuehlmann: tildes: a unique constraint should allow for multiple nulls
[13:37:03] chagel: has joined #RubyOnRails
[13:37:09] fishpercolator: universa1: thanks - will take a look
[13:37:23] tildes: tbluehlmann: the error points at the index
[13:37:41] jsrn: has joined #RubyOnRails
[13:38:53] lessless: has joined #RubyOnRails
[13:39:16] lessless: hi folks! how to count amount of children tags in capybara?
[13:39:42] pawnbox: has joined #RubyOnRails
[13:39:48] fishpercolator: universa1: does your form have data-turbolinks-form=true on it? I get the commit param if I leave that off, but the form is not submitted with turbolinks
[13:40:29] akshat: has joined #RubyOnRails
[13:40:31] idefine: has joined #RubyOnRails
[13:40:43] mrgreenfur: has joined #RubyOnRails
[13:41:15] tildes: so I figured there could be something there
[13:41:24] joshkovach: has joined #RubyOnRails
[13:41:51] petor: has joined #RubyOnRails
[13:42:46] universa1: fishpercolator: since i did not add it, i guess not ;)
[13:43:11] fishpercolator: heh - would you mind adding it to the form tag and seeing if you get the same issue? my form_tag is:
[13:43:14] fishpercolator: = form_tag({}, {method: :get, data: {turbolinks_form: true}, class: 'form-horizontal'}) do
[13:44:03] anagha_: has joined #RubyOnRails
[13:44:30] phaza: has joined #RubyOnRails
[13:45:22] ornerymoose: has joined #RubyOnRails
[13:45:56] dionysus69: has joined #RubyOnRails
[13:46:27] universa1: fishpercolator: still same behavior.
[13:46:40] universa1: maybe some gem in your app interfering.
[13:47:16] akshat_: has joined #RubyOnRails
[13:47:29] fishpercolator: hm - I guess so
[13:47:32] fishpercolator: thanks so much for your help
[13:47:53] stannard: has joined #RubyOnRails
[13:48:22] blackmesa: tbuehlmann: tildes thx for your help. I had an entry already with company_name = ''. that cause the error
[13:49:01] tildes: blackmesa: good to know you got it sorted
[14:00:19] n008f4g_: has joined #RubyOnRails
[14:01:19] finnnnnnnnnnn: has joined #RubyOnRails
[14:01:36] kailido: has joined #RubyOnRails
[14:01:41] Sadin: has joined #RubyOnRails
[14:01:55] kailido: is it possible to execute a bat file with parameters?
[14:02:14] kszarlej: hey guys, I am devops and I am wondering what are best practises for logging in Rails applications. One of developers is insists very firmly that Rails app must log everything to one file (both stderr&stdout). And these files are "have to be called" staging.log/production.log and I totally dont understand it. What is your approach and what are best practises in Rails?
[14:02:55] fryguy: kszarlej: neither of those things are true, they are certainly the defaults though
[14:03:07] Rubie: has joined #RubyOnRails
[14:03:17] lcramer3: Could somebody help me figure this out?
[14:03:22] lcramer3: https://gist.github.com/lcramer3/ff0fe0b7864efdd4a5fa8289eec9c032
[14:03:30] stannard: has joined #RubyOnRails
[14:03:45] universa1: lcramer3: what is this?
[14:03:57] universa1: right now, it is only a link, and that links to gist.github...
[14:04:05] agent_white: has joined #RubyOnRails
[14:04:10] kszarlej: fryguy: but does these "defaults" have some special benefits for rails developers?
[14:04:33] tildes: kszarlej: no
[14:04:34] fryguy: kszarlej: don't think so
[14:04:53] lcramer3: universal, I am trying to update value and question number
[14:04:56] tildes: unless not having to learn about logging is a benefit
[14:05:10] TvL2386: has joined #RubyOnRails
[14:05:33] tildes: kszarlej: what would you want to do then?
[14:06:15] universa1: lcramer3: o0 - log excerpt? error trace? what is not working? ....
[14:07:34] kszarlej: tildes: fire up app using supervisor, apps should all log to STDOUT/STDERR only, and supervisor is supposed to capture both stdout and stderr of app process to disticnt files. (web.log and web.error.log)
[14:08:20] moeabdol: has joined #RubyOnRails
[14:08:28] lcramer3: well, right now, it is giving me undefined method obviously because in the view "value" and "question number" are not part of survey, is there a way to do something like :vas_question.value ?
[14:09:20] kszarlej: and then they are forwarded to logstash using filebeat
[14:09:24] universa1: lcramer3: there is nothing obvious... ...even though we are good at reading rails code, guessing what it does, where it breaks from a partial snippet is not so easy. so just add the actual error trace!
[14:09:48] phaza: has joined #RubyOnRails
[14:10:20] tildes: Actually I think Rails guide http://guides.rubyonrails.org/debugging_rails_applications.html#the-logger doesn't explicitly say that you can give a filepath as an argument to Logger.new
[14:10:56] LastWhisper____: has joined #RubyOnRails
[14:11:18] tildes: I mean opened file
[14:11:23] sp1rs: has joined #RubyOnRails
[14:11:42] thejamespinto_: has joined #RubyOnRails
[14:12:10] universa1: tildes: what are you trying to say?
[14:12:17] lcramer3: universal: i am not sure how to do that
[14:12:19] universa1: you can redirect log to stdout if you want to.
[14:12:44] theunraveler: has joined #RubyOnRails
[14:12:46] universa1: lcramer3: copy from your terminal -> add file in the gist -> paste -> submit ?!
[14:12:58] itsmeduncan: has joined #RubyOnRails
[14:13:14] lcramer3: i have been using the browser to go to the page
[14:13:17] tildes: universa1: I was thinking aloud, just trying to understand how someone thinks everything must be logged into one file
[14:13:39] tildes: and came to the conclusion that it is possible read the guide, and leave with this belief
[14:14:00] universa1: lcramer3: where did you start the server?
[14:14:10] fox_mulder_cp: has joined #RubyOnRails
[14:15:51] arup_r: has joined #RubyOnRails
[14:16:12] lcramer3: universal: ok I think I added what you wanted, let me know if this isnt it https://gist.github.com/lcramer3/ff0fe0b7864efdd4a5fa8289eec9c032
[14:16:28] diegoaguilar: has joined #RubyOnRails
[14:17:02] universa1: lcramer3: https://gist.github.com/lcramer3/ff0fe0b7864efdd4a5fa8289eec9c032#file-server-log-L14 -- your gisted file has no line 25?!
[14:17:05] arBmind: has joined #RubyOnRails
[14:17:23] phaza: has joined #RubyOnRails
[14:17:24] maxx88_: has joined #RubyOnRails
[14:17:25] arup_r: I'm working on Rails 3.2 app. So my question is that if changing the log level to `"debug"` mode is bad in production ? By default it is set to `:info` and that log level not showing any SQL queries in the production.log file.
[14:17:50] universa1: arup_r: why are you doing it?
[14:17:57] tbuehlmann: kszarlej: that's unixy and how I would like to have it
[14:18:17] lcramer3: universal: ahh i cut a lot of junk out of it so that it would be easier to read. its a mess right now
[14:18:39] arup_r: I need to see some queries per actions. Because there are some bugs for which I need to see what are data used in the query?
[14:19:00] lcramer3: should i add originals so you can see?
[14:19:49] universa1: lcramer3: https://www.youtube.com/watch?v=amT27SfNhKM -- google for nested model form
[14:20:07] drzel: what website would you recommend for rails specific programming challenges for intermediate coders?
[14:20:13] universa1: http://railscasts.com/episodes/196-nested-model-form-revised
[14:20:26] lcramer3: ok i will check that out
[14:20:44] baweaver: has joined #RubyOnRails
[14:20:46] universa1: arup_r: why don't you rerun the stuff locally?
[14:21:23] tbuehlmann: kszarlej: btw, that's kind of how heroku manages logging. they provide a gem that set the logger so it logs to stdout
[14:21:55] kszarlej: tbuehlmann: yeah, we want to dockerize rails so logging to stdout is the only way
[14:22:03] kszarlej: reasonable way*
[14:22:07] arup_r: yes I did, but no happening for me. Newrelic 3 times triggered alerts.. So I want to see what data is coming when those alerts are coming.. universa1 why it is bad idea to enable sql queries in production mode?
[14:22:21] kszarlej: but I am struggiling with the fact why we want to keep STDERR and STDOUT in one file
[14:22:24] arup_r: I think Rails 4 :info level by default logs sql queries..
[14:22:33] arup_r: it is not the case for Rails 3.
[14:23:28] tbuehlmann: kszarlej: I'm actually not sure if it's possible to differentiate
[14:23:57] Mattx: has joined #RubyOnRails
[14:24:00] kszarlej: it is possible
[14:24:23] idefine: has joined #RubyOnRails
[14:24:35] tbuehlmann: using one logger in rails?
[14:24:54] kp666: has joined #RubyOnRails
[14:25:03] universa1: arup_r: i never said it is bad... ...was just interested in your motivation as to why you want to do it... ...if you feel it's ok, do it.
[14:25:30] arup_r: No, I didn't say you, I am asking or gathering other opinions about this .. :)
[14:25:55] arup_r: tbuehlmann: yes
[14:26:04] universa1: tbuehlmann, kszarlej: i rarely look at the log anyways... errors are send away with errbit/airbrake/... and aside from that, i don't get much from the log ;)
[14:26:10] TvL2386: has joined #RubyOnRails
[14:26:24] arup_r: oh.. sorry. I thought it was to me
[14:26:38] bruno-: has joined #RubyOnRails
[14:27:32] tbuehlmann: interesting topic, will have to read up on it. gtg for now, have fun!
[14:27:49] kszarlej: tbuehlmann: the app will log only to stdout anyway
[14:27:52] universa1: one might want to look at logstash or alike anyways
[14:28:08] kszarlej: but puma will log errortraces
[14:30:37] daguilaraguilar: has joined #RubyOnRails
[14:31:39] bruno-: has joined #RubyOnRails
[14:31:43] shibly: has joined #RubyOnRails
[14:32:24] pawnbox: has joined #RubyOnRails
[14:35:32] jsrn: has joined #RubyOnRails
[14:36:58] shibly: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> , what does media: 'all' do?
[14:37:28] idefine: has joined #RubyOnRails
[14:38:43] dlt_: has joined #RubyOnRails
[14:40:52] idefine_: has joined #RubyOnRails
[14:41:15] djgraham: shibly: http://www.w3schools.com/tags/att_style_media.asp
[14:41:57] djgraham: [says the stylesheet is suitable for all devices]
[14:43:33] idefine: has joined #RubyOnRails
[14:43:43] rickmasta: has joined #RubyOnRails
[14:43:52] idefine_: has joined #RubyOnRails
[14:45:58] rickmasta: has joined #RubyOnRails
[14:48:36] shibly: But i don't see trubolinks there: <link rel="stylesheet" media="all" href="/assets/welcome.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" />
[14:49:11] shibly: For js it's there: <script src="/assets/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" data-turbolinks-track="true"></script>
[14:49:21] shibly: It's there: data-turbolinks-track="true"
[14:49:36] rickmasta: has joined #RubyOnRails
[14:49:45] shibly: What does this data-turbolinks-track="true" do?
[14:50:05] bruno-: has joined #RubyOnRails
[14:50:51] phaza: has joined #RubyOnRails
[14:52:34] andrew-l`: has joined #RubyOnRails
[14:53:48] jhn: has joined #RubyOnRails
[14:53:59] idefine: has joined #RubyOnRails
[14:54:36] idefine: has joined #RubyOnRails
[14:57:46] artto: has joined #RubyOnRails
[14:58:53] Sadin: has joined #RubyOnRails
[14:59:25] darkxploit: has joined #RubyOnRails
[15:02:01] zave: has joined #RubyOnRails
[15:04:53] bruno-: has joined #RubyOnRails
[15:06:18] htmldrum: has joined #RubyOnRails
[15:06:28] yellow5: has joined #RubyOnRails
[15:08:11] norfumpit: has joined #RubyOnRails
[15:08:36] blindMoe: has joined #RubyOnRails
[15:11:29] szulak: has joined #RubyOnRails
[15:11:33] Wixy: has joined #RubyOnRails
[15:12:24] lcramer3: anyone know why my range_field would not appear after nesting it in a fields_for ?
[15:13:13] lcramer3: universa1: you still around?
[15:14:11] sevenseacat: lcramer3: !debug
[15:14:11] helpa: lcramer3: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[15:14:24] makenoise: has joined #RubyOnRails
[15:14:57] bruno-: has joined #RubyOnRails
[15:20:34] DaniG2k: has joined #RubyOnRails
[15:20:38] smathy: has joined #RubyOnRails
[15:21:45] lcramer3: How come my range_field is not being displayed? https://gist.github.com/lcramer3/ff0fe0b7864efdd4a5fa8289eec9c032
[15:22:33] sevenseacat: lcramer3: does your @survey instance have any :vas_answers to display?
[15:23:16] DaniG2k: hello all. I am trying to figure out what the best way to solve a race condition is. I basically create two Ruby objects that refer to the same database record. However, updatig an attribute in one of the variables does not update the attribute in the other variable
[15:23:21] DaniG2k: here's the code https://gist.github.com/DaniG2k/66eb2866292128fc0c4ce3356d251777
[15:23:21] adavia: has joined #RubyOnRails
[15:23:38] sevenseacat: thats not a race condition
[15:23:45] blackmesa: has joined #RubyOnRails
[15:23:49] cschneid: has joined #RubyOnRails
[15:23:58] DaniG2k: I'm wondering how I can update the attribute in charity_a and let the change reflect in charity_b
[15:24:02] bronson: has joined #RubyOnRails
[15:24:21] cschneid: what's the current best-library for integration testing in webrat/capybara style? I want plain ruby, not cucumber "plain-english"
[15:24:32] Devalo: has joined #RubyOnRails
[15:24:33] sevenseacat: cschneid: capybara? :)
[15:24:39] lcramer3: sevenseacat: I am trying to input data into vas_answers.value
[15:24:47] sevenseacat: lcramer3: that doesnt answer the question
[15:24:52] petor: has joined #RubyOnRails
[15:24:58] sevenseacat: what does @suervey.vas_answers give you
[15:24:59] lcramer3: no there is no data in vas_answers
[15:25:08] sevenseacat: then there is no data to display on the form
[15:25:10] cschneid: sevenseacat: I haven't needed to set this up in a long time, was mostly looking for just "what is the newest / best maintained currently"
[15:25:14] sevenseacat: and the fields_for will not display
[15:25:18] sevenseacat: cschneid: capybara.
[15:25:22] cschneid: cool cool - thanks.
[15:25:40] DaniG2k: sevenseacat: so this is not possible?
[15:26:05] sevenseacat: DaniG2k: it doesnt make much sense.
[15:26:14] sevenseacat: the joys of mutable state!
[15:26:51] lcramer3: sevenseacat: so if I want a nested range_field to input data rather than show it, do i need to use something other than fields_for?
[15:27:20] sevenseacat: lcramer3: if you want to display form fields for a vas_answer, you have to actually have a vas_answer to display form fields for.
[15:27:31] sevenseacat: you cannot display what does not exist.
[15:27:41] tubbo: yeah i don't think webrat has been maintained since the 1.8.7 days
[15:28:02] sevenseacat: webrat hasn't been maintained for as long as I've been working with Ruby
[15:28:04] makenoise: DaniG2k: You could write custom accessors for the attribute that pluck the data from the database itself, rather than relying on the object to store the current information.
[15:28:59] tubbo: sevenseacat: you weren't around for 1.8.7
[15:29:15] tubbo: sorry that question mark is really important lol
[15:29:29] sevenseacat: I've used Ruby 1.8.7, but the latest version of Ruby when I was starting was 1.9.2.
[15:29:33] tubbo: (7s look like ?s in the sunny weather damn you solarized)
[15:30:21] Ergo: has joined #RubyOnRails
[15:30:43] sevenseacat: it might have even been 1.9.3.
[15:31:28] DaniG2k: Hmm I solved it by just running a new query database in the credit_amount method
[15:31:37] DaniG2k: not sure if that's foolish or not but meh
[15:31:41] zave: has joined #RubyOnRails
[15:31:42] DaniG2k: new_amount = Charity.find(id).total + amount
[15:31:50] sevenseacat: i think it is.
[15:32:05] makenoise: If you are going to do it that way, use `pluck` to reduce the overhead of an entire query.
[15:32:29] makenoise: It won't make a new model object then.
[15:33:30] DaniG2k: like Charity.find(id).pluck(:total) ?
[15:34:27] makenoise: DaniG2k: Charity.where(id: id).pluck(:total)
[15:34:35] makenoise: find will return an object I think.
[15:36:00] DaniG2k: makenoise: thanks that works
[15:36:19] makenoise: DaniG2k: np
[15:36:28] myntcake: has joined #RubyOnRails
[15:36:50] disgrntld: has joined #RubyOnRails
[15:37:17] petor: has joined #RubyOnRails
[15:38:19] IrishGringo: has joined #RubyOnRails
[15:39:00] fedexo: has joined #RubyOnRails
[15:39:02] p1k: has joined #RubyOnRails
[15:41:46] KnownSyntax_: has joined #RubyOnRails
[15:42:20] bradleyprice: has joined #RubyOnRails
[15:43:30] artto: has joined #RubyOnRails
[15:45:07] maxdoubt: can you guys help me figure this out, i’m doing - subintent_space = Arel::Nodes::NamedFunction.new('REPLACE', [copies[:subintent],'_',' ']) - but when i run subintent.to_sql, i get: RuntimeError: unsupported: String
[15:45:51] Ergo: has joined #RubyOnRails
[15:46:50] shibly: has left #RubyOnRails: ("Leaving")
[15:47:21] armyriad: has joined #RubyOnRails
[15:49:31] [Butch]: has joined #RubyOnRails
[15:51:22] marr: has joined #RubyOnRails
[15:53:55] maxdoubt: ah, i guess it needs to be - Arel::Nodes::NamedFunction.new('REPLACE', [copies[:subintent], Arel::Nodes::Quoted.new('_'), Arel::Nodes::Quoted.new(' ')]) …. how lengthy
[15:55:13] siaW: has joined #RubyOnRails
[15:55:26] beilabs: has joined #RubyOnRails
[15:57:00] brent__: has joined #RubyOnRails
[15:58:06] chagel: has joined #RubyOnRails
[16:02:55] idefine_: has joined #RubyOnRails
[16:03:48] Mia: has joined #RubyOnRails
[16:03:48] Mia: has joined #RubyOnRails
[16:04:09] bruno-: has joined #RubyOnRails
[16:05:11] idefine_: has joined #RubyOnRails
[16:05:27] sp1rs: has joined #RubyOnRails
[16:05:38] antgel: has joined #RubyOnRails
[16:05:58] Dimik: has joined #RubyOnRails
[16:07:58] helpa: has joined #RubyOnRails
[16:08:59] diegoaguilar: has joined #RubyOnRails
[16:09:22] Lingo: has joined #RubyOnRails
[16:09:30] diegoaguilar: has joined #RubyOnRails
[16:10:49] Lingo: Can I embed a SVG from the ruby asset pipeline? I.E.: My SVGs are in the assets so how can I embed the SVG directly in the HTML, not as an image source?
[16:11:35] SteenJobs: has joined #RubyOnRails
[16:12:45] RegulationD: has joined #RubyOnRails
[16:13:12] tubbo: Lingo: SVG is text-based, so yes
[16:13:27] tubbo: https://developer.mozilla.org/en-US/docs/SVG_In_HTML_Introduction
[16:14:07] elsurudo: has joined #RubyOnRails
[16:14:28] maxdoubt: hey folks, any opinions on fastest rails json serializer?
[16:15:14] allcentury: has joined #RubyOnRails
[16:16:09] baweaver: has joined #RubyOnRails
[16:16:37] Lingo: tubbo: Is there a ruby helper to give me access to the SVG?
[16:17:33] Lingo: In my ERB would I do something like <%= render partical image_path('nameofSVG') %>?
[16:19:49] Spami: has joined #RubyOnRails
[16:19:53] bruno-: has joined #RubyOnRails
[16:20:13] sp1rs: has joined #RubyOnRails
[16:20:29] Weavel: has joined #RubyOnRails
[16:21:39] Cohedrin: has joined #RubyOnRails
[16:23:24] Rodya_: has joined #RubyOnRails
[16:24:43] Gabriel: has joined #RubyOnRails
[16:24:58] Gabriel: Hey Ruby on Rails community
[16:25:40] Gabriel: Does someone got a nice advice in which book i should read in order to learn ruby on rails? i got excellent knowledge in css3, html5 and good knowledge in jquery
[16:26:29] Lingo: https://pragprog.com/book/rails4/agile-web-development-with-rails-4
[16:26:38] Lingo: ^^ Agile Web Development with Rails 4
[16:26:48] blackmesa: has joined #RubyOnRails
[16:27:16] idefine: has joined #RubyOnRails
[16:27:49] meoblast001: has joined #RubyOnRails
[16:28:01] bradleyprice: has joined #RubyOnRails
[16:28:20] Gabriel: thanks lingo. im german, does someone got a german advice too? i fluently talk english but some technical terms are a bit to understand somtimes
[16:28:52] godzillaenlacasa: is it possible to pass a variable on a button click to a bootstrap modal?
[16:30:31] mikecmpbll: has joined #RubyOnRails
[16:32:53] phaza: has joined #RubyOnRails
[16:33:22] SPYGAME: has joined #RubyOnRails
[16:34:39] bruno-: has joined #RubyOnRails
[16:38:19] Rubie: has joined #RubyOnRails
[16:39:30] n008f4g_: has joined #RubyOnRails
[16:40:04] idefine: has joined #RubyOnRails
[16:40:48] RegulationD: has joined #RubyOnRails
[16:42:56] rubie_: has joined #RubyOnRails
[16:43:42] Sadin: has joined #RubyOnRails
[16:45:02] bradleyprice: has joined #RubyOnRails
[16:47:02] fmcgeough: has joined #RubyOnRails
[16:48:52] Yeomra: has joined #RubyOnRails
[16:49:22] bruno-: has joined #RubyOnRails
[16:50:39] smathy: Gabriel, I'm not aware of any translations of the major books (or docs, guides, etc).
[16:52:28] idefine: has joined #RubyOnRails
[16:53:11] phaza: has joined #RubyOnRails
[16:58:03] benlieb: has joined #RubyOnRails
[16:58:45] KnownSyntax: has joined #RubyOnRails
[16:59:20] AnoHito_: has joined #RubyOnRails
[16:59:57] pwnd_nsfw`: has joined #RubyOnRails
[17:01:23] crdpink: has joined #RubyOnRails
[17:01:27] AntiSpamMeta2: has joined #RubyOnRails
[17:02:02] Sadin: has joined #RubyOnRails
[17:02:18] joshkovach: has joined #RubyOnRails
[17:02:18] diegoaguilar: has joined #RubyOnRails
[17:02:18] iamvery: has joined #RubyOnRails
[17:02:21] Ratler: has joined #RubyOnRails
[17:02:56] Puffball: has joined #RubyOnRails
[17:04:19] ddv: has joined #RubyOnRails
[17:05:45] idefine: has joined #RubyOnRails
[17:05:53] Spami_: has joined #RubyOnRails
[17:05:53] ereslibre: has joined #RubyOnRails
[17:05:54] ereslibre: has joined #RubyOnRails
[17:05:56] djgraham: has joined #RubyOnRails
[17:06:40] triangles: has joined #RubyOnRails
[17:06:47] FastJack: has joined #RubyOnRails
[17:06:59] ornerymoose: has joined #RubyOnRails
[17:07:03] htmldrum: has joined #RubyOnRails
[17:07:20] sleungcy: has joined #RubyOnRails
[17:07:39] Psy-Q: has joined #RubyOnRails
[17:09:00] phaza: has joined #RubyOnRails
[17:09:14] MaienM_: has joined #RubyOnRails
[17:09:22] EdwardIII: has joined #RubyOnRails
[17:09:24] FooMunki_: has joined #RubyOnRails
[17:09:59] Fire-Dragon-DoL: has joined #RubyOnRails
[17:10:03] tjvc: has joined #RubyOnRails
[17:10:04] tjvc: has joined #RubyOnRails
[17:10:18] kanzure: has joined #RubyOnRails
[17:10:32] kanzure_: has joined #RubyOnRails
[17:10:39] wenchenx_: has joined #RubyOnRails
[17:10:53] tjvc: has joined #RubyOnRails
[17:10:54] tjvc: has joined #RubyOnRails
[17:11:05] KorriX_: has joined #RubyOnRails
[17:11:05] wkoszek_: has joined #RubyOnRails
[17:11:25] romanoo: has joined #RubyOnRails
[17:11:48] romanoo: quick question, can i somehow prevent one user to do any changing operations without rewriting the controllers?
[17:12:26] kanzure: has joined #RubyOnRails
[17:12:38] macsteps: has joined #RubyOnRails
[17:12:48] philtr: has joined #RubyOnRails
[17:12:49] euphoriaa: has joined #RubyOnRails
[17:12:51] aegis3121: has joined #RubyOnRails
[17:13:04] trollface: has joined #RubyOnRails
[17:13:17] romanoo: something like a global before_save maybe?
[17:13:44] eggoez: has joined #RubyOnRails
[17:13:58] Cohedrin_: has joined #RubyOnRails
[17:14:07] wij32_: has joined #RubyOnRails
[17:14:08] crankhar1er: has joined #RubyOnRails
[17:14:11] daveomcd_: has joined #RubyOnRails
[17:14:14] wldcordeiro: has joined #RubyOnRails
[17:14:54] Weavel_: has joined #RubyOnRails
[17:15:12] yfeldblum: has joined #RubyOnRails
[17:15:21] antgel: has joined #RubyOnRails
[17:15:24] arathald: has joined #RubyOnRails
[17:15:28] manfrin: has joined #RubyOnRails
[17:15:40] tw1sted_: has joined #RubyOnRails
[17:15:46] hoylemd_: has joined #RubyOnRails
[17:15:47] makenoise: has joined #RubyOnRails
[17:16:13] tfittsy: has joined #RubyOnRails
[17:16:30] meinside_: has joined #RubyOnRails
[17:16:49] makenoise: has joined #RubyOnRails
[17:17:54] phaza: has joined #RubyOnRails
[17:18:35] tubbo: romanoo: nope, access control is definitely handled in the controller level. a global before_action in ApplicationController would work though.
[17:18:37] callumacrae_: has joined #RubyOnRails
[17:18:46] Rixius: has joined #RubyOnRails
[17:18:50] elsurudo: has joined #RubyOnRails
[17:18:54] MRB[alt]: has joined #RubyOnRails
[17:18:55] greenhat-: has joined #RubyOnRails
[17:19:09] Papierko-: has joined #RubyOnRails
[17:19:26] romanoo: tubbo: thanks. would a simple "redirect_back" be enough?
[17:19:41] bruno-: has joined #RubyOnRails
[17:19:41] tagaulap_: has joined #RubyOnRails
[17:20:04] thomasfedb: has joined #RubyOnRails
[17:20:04] thomasfedb: has joined #RubyOnRails
[17:20:11] ekem: has joined #RubyOnRails
[17:20:21] EXCHGR: has joined #RubyOnRails
[17:20:30] SeanLazer: has joined #RubyOnRails
[17:20:50] enkristoffer: has joined #RubyOnRails
[17:21:02] EasyCo: has joined #RubyOnRails
[17:21:03] timmyBsd: has joined #RubyOnRails
[17:21:15] gmci: has joined #RubyOnRails
[17:21:17] s1kx-: has joined #RubyOnRails
[17:21:39] eyck: has joined #RubyOnRails
[17:21:57] tubbo: you'd need to `redirect_to <route> and return` to block any further execution
[17:23:15] markelite: has joined #RubyOnRails
[17:23:19] petor: has joined #RubyOnRails
[17:24:24] renegadeandy: has joined #RubyOnRails
[17:24:53] idefine: has joined #RubyOnRails
[17:24:56] nibbo: has joined #RubyOnRails
[17:24:56] frem_: has joined #RubyOnRails
[17:24:56] leeky: has joined #RubyOnRails
[17:24:56] sp1rs: has joined #RubyOnRails
[17:24:56] hinbody: has joined #RubyOnRails
[17:24:56] maxx88: has joined #RubyOnRails
[17:24:59] frem_: has joined #RubyOnRails
[17:24:59] nibbo: has joined #RubyOnRails
[17:25:46] Travis-42: has joined #RubyOnRails
[17:25:57] Pazician: has joined #RubyOnRails
[17:27:11] romanoo: tubbo: thanks again. i would have missed the return.
[17:27:55] SuppliedRelic: has joined #RubyOnRails
[17:28:04] yfeldblum: has joined #RubyOnRails
[17:28:44] spastorino: has joined #RubyOnRails
[17:29:16] bruno-: has joined #RubyOnRails
[17:29:50] blackmesa: has joined #RubyOnRails
[17:31:54] zrl_: has joined #RubyOnRails
[17:33:14] phaza: has joined #RubyOnRails
[17:34:57] theblang: has joined #RubyOnRails
[17:34:59] jhack: has joined #RubyOnRails
[17:35:14] arup_r: has joined #RubyOnRails
[17:36:49] blackmesa: has joined #RubyOnRails
[17:37:13] rakm: has joined #RubyOnRails
[17:40:13] idefine: has joined #RubyOnRails
[17:41:16] bradleyprice: has joined #RubyOnRails
[17:41:28] tvw: has joined #RubyOnRails
[17:43:05] crdpink2: has joined #RubyOnRails
[17:43:27] n008f4g_: has joined #RubyOnRails
[17:43:44] Jasaka|NA: has joined #RubyOnRails
[17:47:35] yellow5: has joined #RubyOnRails
[17:48:46] bronson: has joined #RubyOnRails
[17:49:53] srinidhi: has joined #RubyOnRails
[17:50:03] phaza: has joined #RubyOnRails
[17:50:16] and0: has joined #RubyOnRails
[17:50:34] kitallis: has joined #RubyOnRails
[17:50:38] rrawlins: has joined #RubyOnRails
[17:50:38] chouhoulis: has joined #RubyOnRails
[17:51:11] stannard: has joined #RubyOnRails
[17:51:58] baweaver: has joined #RubyOnRails
[17:56:13] aiguu: has joined #RubyOnRails
[17:58:40] baweaver: has joined #RubyOnRails
[17:59:45] mfilipe: what is wrong with my template factorygirl and the user_same_company validation? https://gist.github.com/mfilipe/86056c7864178e72f768c0b8daca100b
[17:59:49] mfilipe: when I execute FactoryGirl.create(:template) I got the error, but the logic is passing the same company
[18:00:08] mikecmpbll: has joined #RubyOnRails
[18:03:10] jenrzzz: has joined #RubyOnRails
[18:03:11] jenrzzz: has joined #RubyOnRails
[18:04:01] bradleyprice: has joined #RubyOnRails
[18:06:56] Rodya_: has joined #RubyOnRails
[18:08:08] jenrzzz: has joined #RubyOnRails
[18:11:56] blackmesa: has joined #RubyOnRails
[18:12:13] RegulationD: has joined #RubyOnRails
[18:12:17] Megamos: has joined #RubyOnRails
[18:12:44] wldcordeiro: has joined #RubyOnRails
[18:13:35] rubyonrails083: has joined #RubyOnRails
[18:14:20] jhack: has joined #RubyOnRails
[18:19:06] chagel: has joined #RubyOnRails
[18:19:31] bruno-: has joined #RubyOnRails
[18:20:10] idefine: has joined #RubyOnRails
[18:20:28] jobewan: has joined #RubyOnRails
[18:24:38] jhn: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[18:24:56] fluxsource: has joined #RubyOnRails
[18:27:10] artto: has joined #RubyOnRails
[18:27:29] artto: has joined #RubyOnRails
[18:27:43] Cohedrin_: anyone have suggestions on a name for a table which stores the name of an item type, information about it (such as the url to the image and such), and the amount of the item?
[18:28:01] Cohedrin_: Inventory or synonmyms don't quite fit
[18:28:07] aegis3121: has joined #RubyOnRails
[18:28:09] Cohedrin_: having a hard time coming up with a suitable name
[18:29:07] Cohedrin_: not a fan of that naming
[18:29:49] weaksauce: item_description
[18:30:14] Cohedrin_: could be, but then the count column doesn't make any sense
[18:30:18] darkxploit: has joined #RubyOnRails
[18:30:22] Cohedrin_: I'm sure theres a word for this, but I don't know it
[18:30:48] weaksauce: item_attribute
[18:31:04] Cohedrin_: again, the count column doesn't make sense
[18:31:49] tvon: has joined #RubyOnRails
[18:32:02] weaksauce: count is an outlier in that table and might just be bad db design.
[18:32:08] artto: has joined #RubyOnRails
[18:33:24] darkxploit: has joined #RubyOnRails
[18:33:57] idefine: has joined #RubyOnRails
[18:40:19] htmldrum: has joined #RubyOnRails
[18:41:02] artto: has joined #RubyOnRails
[18:45:29] stannard: has joined #RubyOnRails
[18:45:52] jhack: has joined #RubyOnRails
[18:46:53] listrophy: has joined #RubyOnRails
[18:47:14] EXCHGR: has joined #RubyOnRails
[18:48:01] listrophy: so, i've made a column of type "integer array" (i.e., t.integer :foo, array: true). I know how to use it inside models... but what about in the view? Are there form helpers for this?
[18:48:26] tubbo: listrophy: define "use" in the view
[18:48:31] tubbo: just output it? or edit it
[18:49:00] listrophy: tubbo: like, iterate over the ints to product a text_field
[18:49:14] listrophy: preferably with text_field rather than text_field_tag
[18:49:27] lacrosse: has joined #RubyOnRails
[18:50:20] superscott: has joined #RubyOnRails
[18:50:39] bronson: has joined #RubyOnRails
[18:56:11] phaza: has joined #RubyOnRails
[18:57:55] tubbo: listrophy: not sure if you need a helper for that
[18:58:03] tubbo: also i don't know what that really means
[18:58:15] tubbo: iterating over ints to create a text field...
[18:58:20] listrophy: tubbo: got it.....
[18:59:30] listrophy: <%= f.object.foos.map{|foo| f.text_field :foos, name: "#{f.object_name}[foos][]", value: foo} %>
[18:59:32] bruno-: has joined #RubyOnRails
[18:59:41] chouhoulis: has joined #RubyOnRails
[19:00:02] listrophy: (translated from a slim template into a one-liner, so it might not be /perfect/, but it works over here)
[19:00:10] drim: has joined #RubyOnRails
[19:00:34] yuujinlee: has joined #RubyOnRails
[19:05:36] yuujinlee: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[19:05:42] smathy: listrophy, there are no built-in helpers, but have a look for a gem, this is something many other people must be doing.
[19:06:13] listrophy: yeah, i think i saw something in simple-form
[19:08:41] phaza: has joined #RubyOnRails
[19:10:38] SteenJobs: has joined #RubyOnRails
[19:11:04] listrophy: smathy: using this inside the Spree backend, so i'd rather not introduce a new gem to clobber the built-in form stuff that comes for free... especially since i found the answer
[19:13:26] maxdoubt: has joined #RubyOnRails
[19:15:35] jsrn: has joined #RubyOnRails
[19:19:52] beilabs: has joined #RubyOnRails
[19:20:05] mrgreenfur: has joined #RubyOnRails
[19:21:08] VeryBewitching: has joined #RubyOnRails
[19:26:21] rakm: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[19:26:28] snowy: has joined #RubyOnRails
[19:27:20] Pazician: has joined #RubyOnRails
[19:29:42] baweaver: has joined #RubyOnRails
[19:30:12] Ami00: has joined #RubyOnRails
[19:30:46] w0rd-driven: has joined #RubyOnRails
[19:32:18] uri___: has joined #RubyOnRails
[19:37:01] makenoise: has joined #RubyOnRails
[19:37:37] meoblast001: has joined #RubyOnRails
[19:38:41] jhack: has joined #RubyOnRails
[19:42:09] IrishGringo: has joined #RubyOnRails
[19:42:33] allcentury: has joined #RubyOnRails
[19:42:59] petor: has joined #RubyOnRails
[19:44:30] baweaver: has joined #RubyOnRails
[19:45:06] bruno-: has joined #RubyOnRails
[19:46:22] fryguy: weird, got passenger on a server that can't start because of permission issue on config.ru, but I can't find what's wrong with the permissions
[19:46:39] jstransky: has joined #RubyOnRails
[19:47:44] Yeomra: has joined #RubyOnRails
[19:49:44] crankharder: has joined #RubyOnRails
[19:50:29] businessgeek: has joined #RubyOnRails
[19:50:39] jenrzzz: has joined #RubyOnRails
[19:50:39] jenrzzz: has joined #RubyOnRails
[19:53:22] businessgeek: hi guys, i have a brief question. i already have a rails 4 app in place near to production readiness. now, due to some reasons like planning to provide a slack bot, i need an api in addition to my application. unfortunately i didnt built the rails app api first. how can i provide an api in parallel to my app based on the same data?
[19:54:09] tubbo: businessgeek: well, the easiest thing would be to provide an app/views/controller/action.json view and when rails receives a JSON request, it'll use that view instead of your HTML one
[19:54:29] tubbo: you can use jbuilder to create that view if you wanted to
[19:54:36] tubbo: there are other view-layer solutions
[19:55:31] businessgeek: tubbo: i already thought about this, but i had the feeling it would be better to seperate the api, also to safeguard attacks on the api, so that the api maybe goes down, but not the app itself
[19:55:39] businessgeek: tubbo: and thanks of course!
[19:56:37] context: app (4.2.6) depends on gem (i wrote) that talks to external service using httparty->net/http
[19:56:50] context: MyGemClass.somestuff[0] - works perfectly fine in console
[19:57:06] tubbo: businessgeek: so you want an entirely seperate Rails application to host your API, but connect to the same set of models?
[19:57:31] context: however, trying to do this in the controller or view i get: getaddrinfo: nodename nor servname provided, or not known
[19:57:47] context: google shows other people having similar issues but no solution/cause ever explained
[19:57:56] tubbo: context: is your console and your app using the same environment?
[19:58:10] businessgeek: tubbo: hmm, somehow yes!? is it more common to mix it up with the different views?
[19:58:13] tubbo: like say you're on the staging server...i have to type bin/rails console -e staging to connect to the right DB
[19:58:21] context: tubbo: to a T
[19:58:35] context: tubbo: only difference in execution is the 'c' instead of an 's'
[19:58:54] context: and well, one line of code being executed in the context of controller/view
[19:59:06] tubbo: businessgeek: well a lot of people do it that way simply because it's easier and we're not expecting heavy load on the API.
[19:59:25] businessgeek: okay, understand
[19:59:29] maxdoubt: i’m trying to avoid ruby json serialization (for performance reasons) and am getting an array of json directly from postgres, what’s the best way to “render” this array?
[19:59:35] businessgeek: tubbo: thanks!
[19:59:44] tubbo: businessgeek: but in theory, one could ship their entire app/models in an engine, and then include that engine in both apps. it just makes developing both apps a little more annoying.
[19:59:48] wldcordeiro: has joined #RubyOnRails
[20:00:01] Rodya_: has joined #RubyOnRails
[20:00:04] context: doing Socket.getaddrinfo() myself manually returns stuff too
[20:00:21] businessgeek: tubbo: yep, that is what i would like to avoid :D i think i will go the json view way
[20:00:48] tubbo: context: yeah i'm not sure, never seen that before
[20:00:49] idefine_: has joined #RubyOnRails
[20:00:51] tubbo: context: but code might help :)
[20:00:56] tubbo: businessgeek: good call
[20:01:01] tubbo: you can always refactor it later
[20:01:11] businessgeek: tubbo: yep. thanks!
[20:01:52] context: tubbo: work, cant easily disclose :-/
[20:01:54] idefine__: has joined #RubyOnRails
[20:02:00] context: imight try re-creating though
[20:02:04] jenrzzz_: has joined #RubyOnRails
[20:02:31] tubbo: i figured you'd have a gist already if you could haha
[20:02:51] context: this is one of the wierdest things ive ever seen
[20:03:16] Devalo: has joined #RubyOnRails
[20:03:55] FooMunki: has joined #RubyOnRails
[20:04:54] bruno-: has joined #RubyOnRails
[20:05:52] maxdoubt: i guess there’s this - https://github.com/dockyard/postgres_ext-serializers - but i’d just like to know how to render an array of json hashes as json?
[20:07:47] context: so locally running service it works
[20:07:56] businessgeek: has left #RubyOnRails: ()
[20:08:02] context: but not when it is talking to one over network
[20:08:11] idefine: has joined #RubyOnRails
[20:08:18] context: ^^ makes even MORE sense. only difference there is local is http, remote is https
[20:08:43] phaza: has joined #RubyOnRails
[20:10:30] rickmasta: has joined #RubyOnRails
[20:15:14] mattROR: has joined #RubyOnRails
[20:15:15] jobewan: has joined #RubyOnRails
[20:15:56] mattROR: I have a question regarding how to change and image src dynamically on rails
[20:16:38] mattROR: with production deployment, the asset path is converted to an asset digest, and I cannot pass the path to my controller via javascript
[20:18:59] Voyage: has joined #RubyOnRails
[20:19:08] jstransky: has joined #RubyOnRails
[20:19:52] antgel: has joined #RubyOnRails
[20:20:05] Voyage: I have wordpress site and want to add http://mysite.com/myRoRpages/page123 How can I do it while still running wordpress with apache like http://mysite.com/post/123
[20:20:13] RegulationD: has joined #RubyOnRails
[20:20:37] Voyage: has joined #RubyOnRails
[20:20:37] Voyage: has joined #RubyOnRails
[20:20:46] phaza: has joined #RubyOnRails
[20:21:59] rodfersou: has joined #RubyOnRails
[20:22:46] smathy: voyage, make a new vhost.
[20:23:03] snowy: has joined #RubyOnRails
[20:23:06] context: voyage: apache will let you do this with proxy and location directives
[20:23:44] OTORelic: has joined #RubyOnRails
[20:25:33] bradleyprice: has joined #RubyOnRails
[20:26:39] idefine: has joined #RubyOnRails
[20:27:50] Voyage: context: smathy thanks
[20:29:10] phaza: has joined #RubyOnRails
[20:31:07] ddv: has joined #RubyOnRails
[20:31:43] aiguu: has joined #RubyOnRails
[20:32:45] petor: has joined #RubyOnRails
[20:33:20] jstransky: has joined #RubyOnRails
[20:34:59] idefine: has joined #RubyOnRails
[20:36:16] Martyn: has joined #RubyOnRails
[20:39:20] chipotle: has joined #RubyOnRails
[20:39:38] antgel: has joined #RubyOnRails
[20:40:59] qejk: has joined #RubyOnRails
[20:43:38] jstransky: has joined #RubyOnRails
[20:44:01] StevenXL: Hi. Does anyone have a good tutorial on how sessions work, that is not the Rails Guides? (I'm collecting a few resources and the Rails Security guide is already on my list - first one I thought of).
[20:44:29] dcope: can someone please tell me why the 'where' clause does not return anything? http://pastie.org/private/x7tptgphhfanrhgouhvhwg
[20:46:09] Coldblackice_: has joined #RubyOnRails
[20:46:25] tenderlove: has joined #RubyOnRails
[20:47:00] dcope: i'm certainly doing something wrong with the where clause but i can't see it. :(
[20:47:25] srinidhi: has joined #RubyOnRails
[20:48:01] phaza: has joined #RubyOnRails
[20:48:15] replay: has joined #RubyOnRails
[20:48:45] dionysus69: has joined #RubyOnRails
[20:48:46] replay: has joined #RubyOnRails
[20:49:25] ur5us: has joined #RubyOnRails
[20:49:37] fox_mulder_cp: somebody know gem, which can be already used for create custom confirmation links and email to, as example - for accepting transfer user from one customer to another
[20:49:45] weaksauce: dcope what db?
[20:49:57] dcope: weaksauce: postgres 9.1
[20:50:27] bradleyprice: has joined #RubyOnRails
[20:50:38] dcope: this is so weird. when i run Book.where("released_at <= '{Time.now}'") i get some results but not the one im searching for
[20:50:52] dcope: but if i manually compare the released_at to Time.now, it's true o_O
[20:51:02] idefine: has joined #RubyOnRails
[20:51:15] bronson: has joined #RubyOnRails
[20:52:06] weaksauce: dcope try Time.now - 10.days
[20:52:34] dcope: weaksauce: it's not returning based on released_at <= Time.now
[20:52:39] dcope: the first condition is fine
[20:54:10] weaksauce: ok. what about the second one? Time.now + 1.days
[20:54:16] weaksauce: see if record 24 shows up
[20:54:42] dcope: weaksauce: Book.where(released_at: (Time.now - 1.day)..Time.now)
[20:54:44] dcope: that fixes it :)
[20:55:20] dcope: + 1.day does too, but i need to make sure i don't pull records with a future released_at
[20:55:30] dcope: looks like this syntax causes pg to do a "BETWEEN"
[20:55:35] stannard: has joined #RubyOnRails
[20:55:45] bradleyprice: has joined #RubyOnRails
[20:55:56] weaksauce: i just wanted to check on it. seems like your db might be in a different time zone or there is some kind of conflict
[20:56:15] stannard: has joined #RubyOnRails
[20:56:37] weaksauce: I think it's preferred to do all time calcs based on 0 utc to avoid this and then display it to different locations based on that
[20:56:47] jstransky: has joined #RubyOnRails
[20:58:29] weaksauce: yeah. passing the raw Time in a rage to that function changes the representation of the time in the db where clause
[20:58:57] weaksauce: BETWEEN '2016-04-20 20:57:25.401907' vs. released_at <= '2016-04-21 13:50:49 -0700'
[21:00:22] davidw: has joined #RubyOnRails
[21:00:26] jstransky: has joined #RubyOnRails
[21:00:51] Rodya_: has joined #RubyOnRails
[21:03:52] RahulT: has joined #RubyOnRails
[21:04:03] davidw: Hi, hitting something in my tests that doesn't quite make sense. class Foo has_many :bars , and I have a foo with several bar instances attached to it. When I destroy one of the bars though, it's still showing up in the ProxyCollection
[21:04:11] Rodya_: has joined #RubyOnRails
[21:04:52] lxsameer: has joined #RubyOnRails
[21:06:15] arBmind: has joined #RubyOnRails
[21:07:16] davidw: doing foo.bars.reload fixes things
[21:07:34] SteenJobs: has joined #RubyOnRails
[21:08:23] jstransky: has joined #RubyOnRails
[21:08:44] smathy: dcope, you can use the >= and <= if you want to, just use placeholders instead of embedding the times in the string yourself.
[21:09:09] smathy: dcope, as long as you give ActiveRecord the time as an argument (not within a string) then it will make the right zone change for you.
[21:09:17] yfeldblum: has joined #RubyOnRails
[21:12:57] dcope: ah that makes sense
[21:13:02] dcope: thanks weaksauce and smathy for the insight :)
[21:13:22] tubbo: fuubar == teh win
[21:13:25] tubbo: for rspec output
[21:17:16] chipotle: has joined #RubyOnRails
[21:18:18] smathy: dcope, np, your SQL looks like there are offsets in there but SQL doesn't understand that, so just parses the "YYYY-MM-DD HH:MM:SS" part as a UTC.
[21:19:08] fox_mulder_cp: as variant - set timezone in server and app config
[21:19:26] a1fa: does .create! do before_validation?
[21:20:08] smathy: a1fa, yes.
[21:21:10] a1fa: for some reason i have two different before_validations, and my second before_validation is unable to get those values
[21:21:11] sameerynho: has joined #RubyOnRails
[21:21:20] a1fa: smathy: its self.field , correct?
[21:21:37] idefine: has joined #RubyOnRails
[21:23:03] smathy: a1fa, doesn't even need the self. for a getter.
[21:23:31] smathy: ...the validation is run as an instance method/context.
[21:23:49] smathy: ...unless it's a separate validation object/class.
[21:24:31] jstransky: has joined #RubyOnRails
[21:24:42] artto: has joined #RubyOnRails
[21:25:20] istrasci: has joined #RubyOnRails
[21:25:52] a1fa: operator error
[21:26:12] a1fa: looks like i was using a different model to create! :(
[21:26:14] a1fa: emberassing
[21:26:28] istrasci: When I do `rails plugin new <plugin name>`, why can't the <plugin name> have dashes in it? It only accepts underscores. But I want to create an engine that will be packaged as a gem, and many gem names have dashes. What gives?
[21:29:53] noobsu: has joined #RubyOnRails
[21:29:53] makenoise: has joined #RubyOnRails
[21:31:28] idefine: has joined #RubyOnRails
[21:31:56] Robbie: has joined #RubyOnRails
[21:32:01] idefine: has joined #RubyOnRails
[21:43:31] Radar: GOOD MORNING
[21:43:52] helpa: MAYBE I CAN GET THEIR ATTENTION WITH LARGE, CAPITAL LETTERS
[21:43:53] Radar: istrasci: *shrug*
[21:44:03] helpa: PEDANT DETECTED. DISPERSING CUPS OF CALM THE FUCK DOWN.
[21:44:22] tubbo: i only drink calm the fuck down lite because i'm trying to watch my weight
[21:44:48] tubbo: today, i wrote the worst line of ERb that has ever been written
[21:45:11] tubbo: <product<%= number %>><%= item.sku %></product<%= number %>>
[21:45:20] tubbo: thankfully it didn't make it to the final stage
[21:45:26] Radar: Seems bad
[21:45:48] Radar: I've seen way worse when doing rescue projects
[21:47:07] tubbo: yeah, i figured it would be easier to just do <product01>, <product02>, etc. and hardcode everything
[21:47:11] tubbo: for other reasons
[21:54:48] nickenchuggets: has joined #RubyOnRails
[21:54:49] nickenchuggets: has joined #RubyOnRails
[21:55:38] lemur: has joined #RubyOnRails
[21:58:07] Vircung: has joined #RubyOnRails
[22:01:40] neanderslob: has joined #RubyOnRails
[22:05:42] swav: has joined #RubyOnRails
[22:06:36] Caerus: has joined #RubyOnRails
[22:09:27] meoblast001: has joined #RubyOnRails
[22:15:13] bruno-: has joined #RubyOnRails
[22:20:50] idefine: has joined #RubyOnRails
[22:20:54] shinnya: has joined #RubyOnRails
[22:27:16] egray: has joined #RubyOnRails
[22:28:05] istrasci: has left #RubyOnRails: ()
[22:29:42] neanderslob: has joined #RubyOnRails
[22:30:45] idefine: has joined #RubyOnRails
[22:33:18] yfeldblum: has joined #RubyOnRails
[22:35:25] wldcordeiro: has joined #RubyOnRails
[22:36:28] StaticVoid: has joined #RubyOnRails
[22:37:35] nickenchuggets: has joined #RubyOnRails
[22:38:34] baweaver: has joined #RubyOnRails
[22:46:28] bronson: has joined #RubyOnRails
[22:47:44] idefine_: has joined #RubyOnRails
[22:48:34] syndikate: has joined #RubyOnRails
[22:49:55] idefine__: has joined #RubyOnRails
[22:51:32] beilabs: has joined #RubyOnRails
[22:56:59] chipotle: has joined #RubyOnRails
[23:05:31] bruno-: has joined #RubyOnRails
[23:07:33] beauby: has joined #RubyOnRails
[23:07:51] smathy: tubbo's making XML with ERB - ahh haa!
[23:08:33] n008f4g_: has joined #RubyOnRails
[23:09:45] jstransky: has joined #RubyOnRails
[23:11:45] maxx88: has joined #RubyOnRails
[23:15:04] petor: has joined #RubyOnRails
[23:18:44] fmcgeough: has joined #RubyOnRails
[23:18:46] duderonomy: has joined #RubyOnRails
[23:19:15] RahulT: has joined #RubyOnRails
[23:20:11] ZerGabriel: has joined #RubyOnRails
[23:21:48] tfitts: I have an admin for Resque::Server mounted at /resque that requires authentication. I switched my site from http to https and now every time I perform any action in the resque admin view it performs the action but then it signs me out and I have to log in again. Anyone seen this before?
[23:21:51] chagel: has joined #RubyOnRails
[23:24:15] chipotle: has joined #RubyOnRails
[23:28:13] Pazician: has joined #RubyOnRails
[23:28:29] quazimodo: has joined #RubyOnRails
[23:32:42] bradleyprice: has joined #RubyOnRails
[23:35:16] jstransky: has joined #RubyOnRails
[23:40:27] tubbo: smathy: the template they gave me for the OMS integration was an example XML file so i just added ERB to it. didn't see the need for the Builder overhead, not too much dynamic stuff
[23:40:30] tubbo: and the iteration is weird
[23:40:46] tubbo: like if an order has more than 5 items i have to split it into multiple <Import> blocks
[23:41:19] nickenchuggets: has joined #RubyOnRails
[23:41:19] nickenchuggets: has joined #RubyOnRails
[23:44:07] baweaver: has joined #RubyOnRails
[23:47:26] ornerymoose: has joined #RubyOnRails
[23:53:28] SPYGAME: has joined #RubyOnRails
[23:56:58] neha-: has joined #RubyOnRails