« Back to channel list

#RubyOnRails - 27 September 2017

« Back 1 day Forward 1 day »
[00:00:42] jrabe: has joined #RubyOnRails
[00:09:25] aperkins81: has joined #RubyOnRails
[00:27:47] aperkins81: anyone know how to convert this into an awesomeprint theme / config ? https://github.com/kyrylo/pry-theme/blob/master/themes/railscasts.prytheme.rb
[00:33:58] theunraveler: has joined #RubyOnRails
[00:35:29] francuz: Hi all, I have a model Journal(string: name), a model Article(text: content), and a many to many relationship through model JoinJournalsArticles(integer: journal_id, integer: article_id, integer: order, string: name)
[00:35:29] francuz: If I have "journal=Journal.first", and I would like to get all journal's articles in order, I do "articles=journal.join_journals_articles.order(order: 'asc').article"
[00:35:29] francuz: But if I want them in order and have them with the names, I have to go "joins=journal.join_journals_articles.order(order: 'asc')" and each time I have to ask for "join.name" and for "join.article.name". Which looks ugly, isn't there a way to "connect" name and order directly to articles in the "through" process ?
[00:35:29] francuz: Like doing "has_many :articles, through: :join_journals_articles, join: [:order, :name]", and being able to do "articles=journal.articles.order(order: 'asc')"
[00:35:58] francuz: I don't need it, but if it exists I'd find it much much more beautifull to use
[00:39:01] fryguy: francuz: `has_many :through` is the relationship you are looking for
[00:42:27] francuz: yeah, but in a has_many : though, i cannot access data that is in the join model can I ?
[00:43:07] francuz: cf : Like doing "has_many :articles, through: :join_journals_articles, join: [:order, :name]", and being able to do "articles=journal.articles.order(order: 'asc')"
[00:44:33] thatkid_: has joined #RubyOnRails
[00:47:07] fryguy: you could delegate from the join model to the underlying model
[00:47:28] fryguy: https://apidock.com/rails/Module/delegate
[00:58:30] francuz: not working with has_many, but I maybe have a solution, will keep you posted soon,
[01:14:15] irishfromua: has joined #RubyOnRails
[01:14:21] francuz: http://guides.rubyonrails.org/v5.1/association_basics.html section => 4.3.3.3 group looks like the perfect solution, but it gives me error when I do exactly what is written, trying to get past it
[01:17:00] timdotrb: has joined #RubyOnRails
[01:17:55] timdotrb: has joined #RubyOnRails
[01:35:36] francuz: nah, actually I totally missread this thing, so back at starting point
[01:39:11] orbyt_: has joined #RubyOnRails
[01:39:39] irishfromua: has joined #RubyOnRails
[01:56:55] orbyt_: has joined #RubyOnRails
[02:04:48] chouhoulis: has joined #RubyOnRails
[02:10:50] Jameser: has joined #RubyOnRails
[02:33:48] bronson: has joined #RubyOnRails
[02:44:16] kies: has joined #RubyOnRails
[02:45:39] chouhoulis: has joined #RubyOnRails
[02:46:41] quazimodo: has joined #RubyOnRails
[02:51:14] workmad3: has joined #RubyOnRails
[03:14:44] sevenseacat: has joined #RubyOnRails
[03:15:36] dviola: has joined #RubyOnRails
[03:21:59] Radar: francuz: If you want to order them you'll have to do order("<table name>.<column> ASC"). There's no way to alias that I know of.
[03:25:15] leclerc: has joined #RubyOnRails
[03:30:12] Jameser: has joined #RubyOnRails
[03:33:38] bronson: has joined #RubyOnRails
[03:37:46] Jameser: has joined #RubyOnRails
[03:52:03] Jameser: has joined #RubyOnRails
[04:02:55] Jameser: has joined #RubyOnRails
[04:05:44] sevenseacat: has joined #RubyOnRails
[04:10:39] Axsuul: has joined #RubyOnRails
[04:13:39] s2013: has joined #RubyOnRails
[04:23:27] Jameser: has joined #RubyOnRails
[04:27:12] my123_: has joined #RubyOnRails
[04:30:10] sinduck: has joined #RubyOnRails
[04:30:12] arthurnn: has joined #RubyOnRails
[04:30:24] armyriad: has joined #RubyOnRails
[04:30:40] segy: has joined #RubyOnRails
[04:30:57] baweaver: has joined #RubyOnRails
[04:31:10] webdestroya: has joined #RubyOnRails
[04:31:40] say^: has joined #RubyOnRails
[04:32:39] Radar: has joined #RubyOnRails
[04:33:45] boxmein: has joined #RubyOnRails
[04:34:59] urkle: has joined #RubyOnRails
[04:35:28] maqr: has joined #RubyOnRails
[04:37:14] marienz: has joined #RubyOnRails
[04:37:27] zacts: has joined #RubyOnRails
[04:40:30] conta: has joined #RubyOnRails
[04:43:20] jhfisc: has joined #RubyOnRails
[04:52:13] timdotrb: has joined #RubyOnRails
[05:00:33] Jameser: has joined #RubyOnRails
[05:02:41] Chernobuk: has joined #RubyOnRails
[05:05:01] mtkd: has joined #RubyOnRails
[05:05:53] ur5us: has joined #RubyOnRails
[05:34:47] bronson: has joined #RubyOnRails
[05:36:31] ur5us: has joined #RubyOnRails
[05:42:53] jphase_: has joined #RubyOnRails
[05:43:59] jphase: has joined #RubyOnRails
[05:45:42] paranoicsan: has joined #RubyOnRails
[05:55:04] jhfisc: has joined #RubyOnRails
[06:01:50] s2013: has joined #RubyOnRails
[06:03:05] jhfisc: has joined #RubyOnRails
[06:07:42] jhfisc: has joined #RubyOnRails
[06:14:43] defsdoor: has joined #RubyOnRails
[06:16:25] jhfisc: has joined #RubyOnRails
[06:25:06] snickers: has joined #RubyOnRails
[06:28:35] jhfisc: has joined #RubyOnRails
[06:29:41] redhedded1: has joined #RubyOnRails
[06:30:10] srinidhi: has joined #RubyOnRails
[06:33:21] jhfisc: has joined #RubyOnRails
[06:37:25] shime: has joined #RubyOnRails
[06:38:17] ur5us: has joined #RubyOnRails
[06:44:15] conta: has joined #RubyOnRails
[06:50:55] jhfisc: has joined #RubyOnRails
[06:53:02] shime: has joined #RubyOnRails
[06:56:23] plop: has left #RubyOnRails: ("Leaving")
[06:57:53] syndikate: What exactly does `bin/rails db:environment:set` do?
[07:01:36] DrYockel: has joined #RubyOnRails
[07:03:58] jhfisc: has joined #RubyOnRails
[07:05:53] timdotrb_: has joined #RubyOnRails
[07:09:08] jhfisc: has joined #RubyOnRails
[07:15:40] jhfisc: has joined #RubyOnRails
[07:20:51] srinidhi: has joined #RubyOnRails
[07:25:07] jhfisc: has joined #RubyOnRails
[07:30:10] jhfisc: has joined #RubyOnRails
[07:31:32] arBmind: has joined #RubyOnRails
[07:32:48] rafadc: has joined #RubyOnRails
[07:34:11] paranoicsan: has joined #RubyOnRails
[07:35:19] jhfisc: has joined #RubyOnRails
[07:35:29] ams__: has joined #RubyOnRails
[07:46:04] bronson: has joined #RubyOnRails
[07:46:09] dionysus69: has joined #RubyOnRails
[07:52:48] jhfisc: has joined #RubyOnRails
[07:56:35] mikecmpbll: has joined #RubyOnRails
[07:58:11] marr: has joined #RubyOnRails
[07:58:51] jhfisc: has joined #RubyOnRails
[08:02:25] veex: has joined #RubyOnRails
[08:04:57] shime: has joined #RubyOnRails
[08:07:23] santhnu: has joined #RubyOnRails
[08:12:58] Ergo: has joined #RubyOnRails
[08:25:51] jhfisc: has joined #RubyOnRails
[08:34:26] jhfisc: has joined #RubyOnRails
[08:37:53] jhfisc: has joined #RubyOnRails
[08:42:53] jhfisc: has joined #RubyOnRails
[08:46:26] dionysus69: has joined #RubyOnRails
[08:49:26] jhfisc: has joined #RubyOnRails
[08:50:26] lxsameer: has joined #RubyOnRails
[09:09:30] elsurudo: has joined #RubyOnRails
[09:11:50] Jameser: has joined #RubyOnRails
[09:12:09] ur5us: has joined #RubyOnRails
[09:25:08] rafadc: has joined #RubyOnRails
[09:26:34] jhfisc: has joined #RubyOnRails
[09:32:03] jhfisc: has joined #RubyOnRails
[09:35:41] drale2k_: has joined #RubyOnRails
[09:38:28] jhfisc: has joined #RubyOnRails
[09:41:08] jhfisc: has joined #RubyOnRails
[09:42:21] elsurudo: I generate a form with ` form_tag previous_wizard_path, method: :put, id: 'back_form’`, and then submit it using JS with `$('#back_form').submit();` Only issue is I then get a “ActionController::InvalidAuthenticityToken”, despite the fact that I see the authenticity_token in the params. Ideas?
[09:44:46] arBmind: has joined #RubyOnRails
[09:47:19] bronson: has joined #RubyOnRails
[09:52:06] ahrs: has joined #RubyOnRails
[09:53:28] stamina: has joined #RubyOnRails
[09:54:30] rafadc: has joined #RubyOnRails
[10:30:07] elsurudo: Update: the authenticity token passed in params is different from the one in the form… how?!
[10:42:06] bruno-: has joined #RubyOnRails
[10:46:48] rafadc: has joined #RubyOnRails
[10:51:12] elsurudo: Turns out the solution was to add a hidden submit button to the form (didn’t have one previously). Probably forms are expected to have a submit button…
[10:51:28] rafadc: has joined #RubyOnRails
[11:00:55] paranoicsan: has joined #RubyOnRails
[11:01:26] quazimodo: has joined #RubyOnRails
[11:12:46] DTZUZO: has joined #RubyOnRails
[11:19:47] workmad3: has joined #RubyOnRails
[11:21:18] xiljin: has joined #RubyOnRails
[11:31:27] defsdoor: has joined #RubyOnRails
[11:32:49] rafadc: has joined #RubyOnRails
[11:42:27] ferr: has joined #RubyOnRails
[11:48:20] bronson: has joined #RubyOnRails
[11:53:11] hndk: has joined #RubyOnRails
[11:58:41] drale2k_: has joined #RubyOnRails
[12:25:49] JDeen: has joined #RubyOnRails
[12:27:35] JDeen: HI... I am writing a method to accept dynamic arguments using * (def blah *args) and would like to pass it to it to another method... how can I forward args to another similar method
[12:28:23] tbuehlmann: jdeen, by again using *: some_method(*args)
[12:33:20] JDeen: tbuehlmann: great, thanks...
[12:33:26] JDeen: wokrs, silly me, didn't try it :D
[12:33:59] jackhum: has joined #RubyOnRails
[12:34:55] nzst: has joined #RubyOnRails
[12:34:57] keegnotrub: has joined #RubyOnRails
[12:39:56] nzst: How do I search my database using ActiveRecord, with an array of keywords as the search term?
[12:40:11] nzst: e.g. ["this", "is", "my", "search", "query"]
[12:40:39] tbuehlmann: hardly depends on your requirement for "search"
[12:41:37] nzst: well, using the ActiveRecord Query Interface to be specific
[12:44:45] jhfisc: has joined #RubyOnRails
[12:44:58] nzst: This is the closest I've found to my issue, https://stackoverflow.com/questions/28954500/activerecord-where-field-array-of-possible-values , it might move me forward a bit
[12:49:15] truenito: has joined #RubyOnRails
[12:49:32] tbuehlmann: nzst: well, do you expect to find records having at least one of your search terms in a column? is it just one column or do you search in multiple columns?
[12:49:48] jhfisc: has joined #RubyOnRails
[12:50:55] marr: has joined #RubyOnRails
[12:51:55] nzst: tbuehlmann: First, thanks for your time. The records should have at least one of my search terms. Currently searching against a single column.
[12:52:27] tbuehlmann: what RDBMS do you use?
[12:54:59] nzst: Do you mean mysql? if not, rails default
[12:55:42] drale2k_: has joined #RubyOnRails
[12:55:55] bruno-: has joined #RubyOnRails
[12:56:23] jhfisc: has joined #RubyOnRails
[12:57:37] tbuehlmann: yeah, sqlite/mysql/postgresql?
[12:58:00] nzst: I'm using mysql2 gem, we're currently stuck on a version before full text indexing is available
[12:58:06] nzst: *version of MySQL
[13:02:47] tbuehlmann: yeah, okay, no idea about mysql. well, one very simple way is to have a LIKE query
[13:03:07] tbuehlmann: if it gets more complicated than that, think about using a service like elasticsearch
[13:03:44] lupine: like won't work with that version of mysql, IIRC
[13:03:48] nzst: Thank you, this is like phase 1 of improving search until I can get something like elasticsearch or different/upgraded databases in place
[13:04:56] jhfisc: has joined #RubyOnRails
[13:06:50] jphase_: has joined #RubyOnRails
[13:11:28] ravster: has joined #RubyOnRails
[13:16:28] orbyt_: has joined #RubyOnRails
[13:23:36] jhfisc: has joined #RubyOnRails
[13:25:49] Sharcho: has joined #RubyOnRails
[13:26:54] Sharcho: Is there a way to disable yarn:install when running assets:precompile (Rails 5.1.4)? There's a github issue, but no answers here https://github.com/rails/webpacker/issues/405
[13:31:40] jhfisc: has joined #RubyOnRails
[13:34:01] matthewd: Sharcho: It's not a real solution, but I suspect you could trick rake into thinking it had already run the yarn:install task, by doing something in your rakefile
[13:34:35] Sharcho: Found a solution, Deleting bin/yarn in the app will disable yarn
[13:34:55] knight33: has joined #RubyOnRails
[13:35:59] xaviergmail: has joined #RubyOnRails
[13:40:17] jhfisc: has joined #RubyOnRails
[13:46:36] paranoicsan: has joined #RubyOnRails
[13:47:47] Sharcho: has left #RubyOnRails: ("Leaving")
[13:48:41] mikecmpb_: has joined #RubyOnRails
[13:50:27] jhfisc: has joined #RubyOnRails
[13:56:47] bruno-: has joined #RubyOnRails
[13:58:19] jhfisc: has joined #RubyOnRails
[14:00:42] drale2k_: has joined #RubyOnRails
[14:01:20] tcopeland: has joined #RubyOnRails
[14:03:05] jhfisc: has joined #RubyOnRails
[14:15:53] jhfisc: has joined #RubyOnRails
[14:16:18] drale2k_: has joined #RubyOnRails
[14:22:55] s2013: has joined #RubyOnRails
[14:24:25] s2013: has joined #RubyOnRails
[14:24:41] mikecmpbll: has joined #RubyOnRails
[14:26:12] troys: has joined #RubyOnRails
[14:26:26] jhfisc: has joined #RubyOnRails
[14:28:01] truenito: has joined #RubyOnRails
[14:33:13] DaniG2k: has joined #RubyOnRails
[14:33:26] DaniG2k: I am trying to upload images using Dropzone as part of a multi-step form that I am building with Vue.js and Rais 5.1, and I'm a bit confused as to how to set this up properly.
[14:33:32] sleatrkny: has joined #RubyOnRails
[14:33:33] DaniG2k: I've outlined the problem more specifically with my code on SO
[14:33:41] DaniG2k: https://stackoverflow.com/questions/46401470/upload-images-with-a-dropzone-vue-js-and-a-rails-5-form
[14:33:44] DaniG2k: if anyone could help out with that it would be greatly appreciated
[14:34:53] DrYockel1: has joined #RubyOnRails
[14:36:14] jhfisc: has joined #RubyOnRails
[14:43:52] mtkd: has joined #RubyOnRails
[14:48:04] jhfisc: has joined #RubyOnRails
[14:48:10] elsurudo: @DaniG2k You’re going to need a controller action that takes the multipart form and saves the file
[14:51:24] DaniG2k: elsurudo: right now, when I submit the form, the data is being POSTed or PUT via
[14:51:30] DaniG2k: this.$http.post('/listings', {listing: listingObj})
[14:51:36] DaniG2k: so I get it as a hash
[14:51:55] DaniG2k: and it's being created or updated in my Rails controller through the #create or #update mthods
[14:52:13] elsurudo: Since you are using dropzone, I assume you want multiple uploads per listing, right?
[14:52:14] DaniG2k: I'd like to send the {listing: listingObj} along with the Dropzone images
[14:52:34] DaniG2k: yeah so, I want the {listing: listingObj} to be sent across, and if that saves, then I also want to images to be saved
[14:53:02] DaniG2k: from what I've understood I can trigger Dropzone's image pushing via vm.$refs.imageDrop.processQueue()
[14:53:15] elsurudo: I would say you’re going about it the wrong way. You should create a model just for the attachment file, and have dropzone create only that. Let rails handle the actual listing creation/update
[14:53:34] elsurudo: And just associate those attachment models with the listing
[14:54:31] DaniG2k: so upload them regardless of whether the {listing: listingObj} has been created successfully or not?
[14:55:05] elsurudo: yeah exactly. along with a listing_id (if it exists)
[14:55:07] DaniG2k: right now I have a multi-step form. So like step 1 is basic info, step 2 is location, step 3 is amenities, step 4 is images.
[14:55:20] elsurudo: right, so the listing should already exist, that’s perfect
[14:55:38] DaniG2k: no the listing only gets created once everything is uploaded
[14:55:45] DaniG2k: that's what I had in mind originally
[14:56:01] DaniG2k: kind of a bad UX to have to upload images separately
[14:56:56] DaniG2k: Step 1: Basic info. Step 2: Location. Step 3: Amenities. Step 4: Images -> Create/update Listing
[14:57:02] DaniG2k: I wanted that all to happen in one go
[14:57:22] DaniG2k: Step 1: Basic info. Step 2: Location. Step 3: Amenities. -> Create/update Listing. Edit listing and then add images
[14:57:28] DaniG2k: that's kind of a bad UX I feel
[14:57:42] elsurudo: Then you can create the attachment model without a listing_id at first, and then post the attachment_ids as hidden forms when you create the listing after the final step
[14:57:45] s2013: has joined #RubyOnRails
[14:58:13] DaniG2k: that might make more sense
[14:58:16] DaniG2k: so post them regardless
[14:58:37] DaniG2k: and then only commit them if {listing: listingObj} returns success
[14:58:51] DaniG2k: yeah that's probably a good way to do it
[14:59:26] elsurudo: another option is to create the listing right away in your DB, and if it gets abandoned, you can clean it up with a periodic rake task
[14:59:33] theunraveler: has joined #RubyOnRails
[14:59:35] elsurudo: but the first option doesn’t require the rake task
[14:59:46] DaniG2k: first one seems about right
[14:59:53] DaniG2k: upload the images
[15:00:01] DaniG2k: then if the object gets saved, commit the images as well
[15:00:03] DaniG2k: otherwise discard
[15:00:23] jhfisc: has joined #RubyOnRails
[15:00:29] DaniG2k: elsurudo: have you used Dropzone before?
[15:00:47] DaniG2k: would you know how I can post the images to Rails?
[15:01:09] DaniG2k: I've created a listing_images field in my postgres db which is a json field
[15:01:14] DaniG2k: and I'm using carrierwave
[15:01:19] DaniG2k: can I just upload them to there?
[15:01:32] DaniG2k: I'm not entirely sure how to do that tbh
[15:02:10] elsurudo: you need to familiarize youself with carrierwave, which requires a string field for each attachment
[15:02:29] elsurudo: which is why i’m suggesting you create a model such as “Attachment” with a “file” field, which is a string type
[15:03:45] knight33: has joined #RubyOnRails
[15:04:34] DaniG2k: and to get Carrierwave to post them I need to create an images route that responds to POST
[15:04:47] DaniG2k: and handle their creation there
[15:04:54] DaniG2k: is that about correct?
[15:05:36] mr-spoon: has joined #RubyOnRails
[15:05:39] elsurudo: pretty much, yeh
[15:06:30] DaniG2k: I feel like using Dropzone is making me have a form within a form
[15:06:41] DaniG2k: in fact I think that's exactly what Dropzone does
[15:06:42] DaniG2k: creates a form
[15:06:58] DaniG2k: nesting forms, as it were :/
[15:07:02] elsurudo: Not necessarily. I think the way I ahve it configured the POST happens via AJAX
[15:07:26] elsurudo: You need to do this yourself by hooking into a Dropzone callback
[15:07:36] elsurudo: Yeah, it’s not so simple :P
[15:07:39] fmcgeough: has joined #RubyOnRails
[15:07:44] DaniG2k: I'm using vue-dropzone
[15:07:45] DaniG2k: https://github.com/rowanwins/vue-dropzone
[15:08:07] DaniG2k: and you can define the component like
[15:08:08] DaniG2k: <dropzone id="myVueDropzone" url="https://httpbin.org/post" v-on:vdropzone-success="showSuccess">
[15:08:17] DaniG2k: so I think I can just provilde a URL that responds to POST
[15:08:29] DaniG2k: and vue-dropzone will post to there
[15:08:46] elsurudo: perhaps. I don’t have experience with that to be honest
[15:08:59] DaniG2k: vue is quite nice but can be quite complicated at times
[15:09:31] elsurudo: yeah I am using it on one proejct as well, jsut for specific parts of the app. it is nice. but i’m not sure how you can communicate with teh non-vue world with it
[15:09:31] DaniG2k: seems I can nest things like
[15:09:34] DaniG2k: <input type="hidden" name="token" value="xxx">
[15:09:45] DaniG2k: so I can probably grab that token
[15:09:55] DaniG2k: or send across a listing ID
[15:10:33] elsurudo: fyi though, you can’t actually nest forms in HTML
[15:10:41] elsurudo: so if that is what is happening, you have an issue
[15:10:50] DaniG2k: I think that's what's happening :(
[15:10:56] DaniG2k: I think Dropzone automatically creates a form
[15:11:02] DaniG2k: well, at least vue-dropzone does
[15:11:54] elsurudo: my way around that was to not have dropzone create a form (I initialize it via JS), and just catch the callback when an image is dragged into it, and POST to rails using jQuery
[15:12:07] elsurudo: Vue might be more trouble that it’s worth in this instance, but it’s hard for me to say
[15:12:10] jhfisc: has joined #RubyOnRails
[15:12:19] DaniG2k: right I just checked, it's nesting a form
[15:12:24] elsurudo: it’s another layer of indirection, and it might not be playing well with rails
[15:12:24] DaniG2k: within my form
[15:12:38] DaniG2k: I havent been able to find an image uploader that's nicer though
[15:12:49] elsurudo: is the rest of your form Vue-based?
[15:13:18] elsurudo: yeah Dropzone is pretty good
[15:14:01] DaniG2k: I wanted to make thsi whole multi-step form in Vue
[15:14:05] DaniG2k: this seems ok...https://scotch.io/tutorials/how-to-handle-file-uploads-in-vue-2
[15:15:06] DaniG2k: pain in the butt getting all this to work with Rails though
[15:15:25] DaniG2k: might be easier to just have an add images field haha
[15:15:35] DaniG2k: click the add images button and voila
[15:15:59] rafadc: has joined #RubyOnRails
[15:17:28] elsurudo: Yeah, I figured mixing Vue with non-Vue would get hairy
[15:18:04] elsurudo: But you’re usually gonna want image uploads within a form, so I don’t know if this vue component is the best
[15:18:13] elsurudo: if it embeds its own form
[15:18:25] DaniG2k: that's what it does
[15:19:21] DaniG2k: yeah might have to remove
[15:20:51] rafadc: has joined #RubyOnRails
[15:24:48] jhfisc: has joined #RubyOnRails
[15:33:26] DaniG2k: has joined #RubyOnRails
[15:34:15] Sylario: has joined #RubyOnRails
[15:34:17] maryo: has joined #RubyOnRails
[15:34:26] jhfisc: has joined #RubyOnRails
[15:36:51] drale2k_: has joined #RubyOnRails
[15:37:23] TinkerTyper: has joined #RubyOnRails
[15:38:29] cagomez: has joined #RubyOnRails
[15:46:30] jhfisc: has joined #RubyOnRails
[15:47:13] csk: has joined #RubyOnRails
[15:50:21] bronson: has joined #RubyOnRails
[15:50:46] Saukk: has joined #RubyOnRails
[15:51:18] VeryBewitching: has joined #RubyOnRails
[15:51:46] Sylario: I am using active model serializer for the first time. The generator populate the serializer only with the id attribute. Shouldn't the generator add all attributes by default?
[15:59:16] jhfisc: has joined #RubyOnRails
[16:01:35] ResidentBiscuit: has joined #RubyOnRails
[16:02:00] ResidentBiscuit: has joined #RubyOnRails
[16:02:25] ResidentBiscuit: has joined #RubyOnRails
[16:02:50] ResidentBiscuit: has joined #RubyOnRails
[16:09:03] paranoicsan: has joined #RubyOnRails
[16:09:41] keegnotrub: has joined #RubyOnRails
[16:17:59] Sylario: ok, it is all good in fact
[16:20:28] ajf-: has joined #RubyOnRails
[16:20:54] ajf-: Hi, I would like to get some feedback on this approach I'm trying to have partials where I can pass named blocks of content to: https://gist.github.com/alainjacomet/5ad7446cf3db8392083bb4f22a264d43
[16:21:14] ajf-: is there an easier way? or is there a way I can make the syntax of render_with better?
[16:21:30] ajf-: (e.g. putting the content_fors inside the method)
[16:23:27] cagomez: has joined #RubyOnRails
[16:27:06] conta: has joined #RubyOnRails
[16:31:33] gregf_: has joined #RubyOnRails
[16:32:17] truenito: has joined #RubyOnRails
[16:32:31] jhfisc: has joined #RubyOnRails
[16:33:20] orbyt_: has joined #RubyOnRails
[16:35:31] banisterfiend: has joined #RubyOnRails
[16:38:29] jhfisc: has joined #RubyOnRails
[16:40:08] moei: has joined #RubyOnRails
[16:44:26] jhfisc: has joined #RubyOnRails
[16:47:37] chouhoulis: has joined #RubyOnRails
[16:48:14] chouhoulis: has joined #RubyOnRails
[16:51:34] timdotrb: has joined #RubyOnRails
[16:52:19] jhfisc: has joined #RubyOnRails
[16:53:54] one_zero: has joined #RubyOnRails
[16:57:18] timdotrb_: has joined #RubyOnRails
[16:58:28] jhfisc: has joined #RubyOnRails
[17:02:20] one_zero: has joined #RubyOnRails
[17:03:16] jhfisc: has joined #RubyOnRails
[17:04:47] tcopeland: has joined #RubyOnRails
[17:04:54] srruby: has joined #RubyOnRails
[17:06:03] srruby: I have 2 rails apps to upgrade from 3.2 to 5.1. Any advice? I'm thinking to create a new 5.1 project and slowly move the code into it.
[17:06:22] srruby: While running my tests of course.
[17:07:24] timdotrb: Morning, all
[17:07:28] matthewd: srruby: Upgrade through each minor release in turn, so you can see and address deprecation warnings
[17:08:07] beingjohnm: has joined #RubyOnRails
[17:08:33] ChanServ: +o baweaver
[17:08:46] srruby: mathewd: What do you think of just creating a new project and moving the old code in slowly?
[17:08:50] ChanServ: -o baweaver
[17:09:12] baweaver: Depends entirely on the size of the project.
[17:09:21] baweaver: If it's big you're in for it
[17:09:53] baweaver: mwlang or pontiki (tamouse_) would be great to talk to if they were online considering they'd done that type of thing for a few years
[17:10:08] timdotrb: I’m having an issue with a mailer that I created.. I have a line in my logs stating my mailer processed outbound mail, but I never receive the email. I set raise_delivery_errors to true in my production.rb file. What can I do to debug this? I’ve also tail’d my /var/log/mail.log and nothing shows up there when my mailer runs
[17:10:27] baweaver: srruby: Biggest thing is to start with a solid test base
[17:10:39] timdotrb: However, if I do ActionMailer::Base.mail(…) to test, I receive the email and see output in the mail.log
[17:10:40] baweaver: Once you get that you can upgrade with more confidence in what works and what breaks
[17:11:40] timdotrb: When I test the mailer in the console, it says “processed outbound mail” and then: (Object doesn't support #inspect)
[17:13:21] timdotrb: Nvm I’m retarded. Forgot to add .deliver_now
[17:14:20] mtkd: has joined #RubyOnRails
[17:14:47] brent__: has joined #RubyOnRails
[17:15:50] baweaver: ACTION quacks
[17:22:40] matthewd: srruby: It's not how I'd do it, because it skips all the warnings.. plus you don't have a working application until you're finished
[17:22:57] srruby: mathewd: Thanks
[17:23:03] srruby: baweaver: Thanks
[17:23:06] rafadc: has joined #RubyOnRails
[17:27:13] ^mtkd: has joined #RubyOnRails
[17:27:23] rafadc: has joined #RubyOnRails
[17:28:16] kitallis: I have a table with col: "t.float :points, array: true, default: []"
[17:29:10] kitallis: I can insert into it correctly like [[1,2], [3,4]], but reading from it breaks like: "ActiveRecord::StatementInvalid: ActiveRecord::JDBCError: org.postgresql.util.PSQLException: Bad value for type double : {"1.19999999999999996","3.39999999999999991"}"
[17:30:14] kies: has joined #RubyOnRails
[17:39:04] truenito: has joined #RubyOnRails
[17:43:32] xiljin: has joined #RubyOnRails
[17:50:52] lxsameer: has joined #RubyOnRails
[17:51:26] bronson: has joined #RubyOnRails
[17:51:41] orbyt_: has joined #RubyOnRails
[17:57:12] orbyt_: has joined #RubyOnRails
[17:58:06] cagomez: has joined #RubyOnRails
[17:58:38] hahuang65: has joined #RubyOnRails
[18:01:48] gusrub: has joined #RubyOnRails
[18:05:48] andywww: has joined #RubyOnRails
[18:08:35] tcopeland: has joined #RubyOnRails
[18:09:35] andywww: in an app which has several light weight, threaded operations managed by Sidekiq, would jruby have any real benefit over the standard c implementation?
[18:10:14] matthewd: andywww: It depends
[18:10:45] andywww: I’m looking to maximise the resources available
[18:11:28] netzfisch: has joined #RubyOnRails
[18:12:02] andywww: if you could point me to anything that is considered a decent, comprehensive and credible comparison it’d be appreciated
[18:19:51] keegnotrub: has joined #RubyOnRails
[18:20:59] theunraveler: has joined #RubyOnRails
[18:26:54] conta3: has joined #RubyOnRails
[18:42:44] theunraveler: has joined #RubyOnRails
[18:50:24] jhfisc: has joined #RubyOnRails
[18:56:24] jhfisc: has joined #RubyOnRails
[18:56:33] mikecmpbll: has joined #RubyOnRails
[19:02:24] jhfisc: has joined #RubyOnRails
[19:07:18] jhfisc: has joined #RubyOnRails
[19:07:59] shime: has joined #RubyOnRails
[19:08:35] gusrub: has joined #RubyOnRails
[19:17:23] gusrub: has joined #RubyOnRails
[19:20:11] Trynemjoel: has joined #RubyOnRails
[19:23:12] gambl0re: has joined #RubyOnRails
[19:37:10] mtkd: has joined #RubyOnRails
[19:38:44] quazimodo: has joined #RubyOnRails
[19:51:11] dionysus69: has joined #RubyOnRails
[19:52:41] bronson: has joined #RubyOnRails
[19:55:43] orbyt_: has joined #RubyOnRails
[19:57:27] lord4163: has joined #RubyOnRails
[20:01:30] bronson: has joined #RubyOnRails
[20:06:38] dviola: has joined #RubyOnRails
[20:06:42] srinidhi: has joined #RubyOnRails
[20:18:27] csk: has joined #RubyOnRails
[20:19:47] [Butch]: has joined #RubyOnRails
[20:25:09] knight33: has joined #RubyOnRails
[20:31:38] gusrub: has joined #RubyOnRails
[20:35:24] cagomez: has joined #RubyOnRails
[20:40:36] ajf-: Hi, I would like to get some feedback on this approach I'm trying to have partials where I can pass named blocks of content to: https://gist.github.com/alainjacomet/5ad7446cf3db8392083bb4f22a264d43
[20:40:40] ajf-: is there an easier way? or is there a way I can make the syntax of render_with better?
[20:40:43] ajf-: (e.g. putting the content_fors inside the method)
[20:54:43] rafadc: has joined #RubyOnRails
[20:56:43] jhfisc: has joined #RubyOnRails
[20:59:00] hahuang65: has joined #RubyOnRails
[21:01:49] jhfisc: has joined #RubyOnRails
[21:03:45] _scorp: has joined #RubyOnRails
[21:04:13] hahuang65: has joined #RubyOnRails
[21:08:18] jhfisc: has joined #RubyOnRails
[21:12:25] fugee: has joined #RubyOnRails
[21:13:15] jhass: has joined #RubyOnRails
[21:14:06] fugee: anyone care to try to help me with mailboxer, i'm following the sitepoint tutorial which creates a new conversation in the messages controller instead of the conversations controller and i think this may be the problem
[21:17:03] _scorp: Hello. I need some help with creating a new oauth strategy to work with devise. I need to pass a params into the request. I can do it outside of devise by hand and get the results I want but whenever I try following a oauth template to get it to work at best I can get is a malformed request loop. Many thanks in advance guys.
[21:18:22] ladipo: has joined #RubyOnRails
[21:19:05] dachi: has joined #RubyOnRails
[21:21:25] ur5us: has joined #RubyOnRails
[21:23:09] dachi: hello. could anyone help me with mail attachments variable (undefined local variable or method) in helper for mailer and rspec? http://rubyfiddle.com/riddles/1424a/2
[21:25:07] dachi: Maybe you know which object could be stubbed that implements "attachments" in helper..
[21:29:33] orbyt_: has joined #RubyOnRails
[21:34:17] workmad3: has joined #RubyOnRails
[21:37:27] defsdoor: has joined #RubyOnRails
[21:37:46] jhfisc: has joined #RubyOnRails
[21:38:51] Oog: has joined #RubyOnRails
[21:39:15] Oog: how do i add m4v type to asset pipeline? seems to be getting missed
[21:39:31] kn-928: has joined #RubyOnRails
[21:39:41] sagax: has joined #RubyOnRails
[21:44:23] jhfisc: has joined #RubyOnRails
[21:49:00] matcouto: has joined #RubyOnRails
[21:50:57] rafadc: has joined #RubyOnRails
[21:55:27] banisterfiend: has joined #RubyOnRails
[21:55:57] NoGodDamnIdea: has joined #RubyOnRails
[22:10:29] gusrub: has joined #RubyOnRails
[22:16:28] srinidhi: has joined #RubyOnRails
[22:18:10] wethu: has joined #RubyOnRails
[22:24:56] arBmind: has joined #RubyOnRails
[22:27:37] quirkycoders: has joined #RubyOnRails
[22:33:42] AntiSpamMeta: has joined #RubyOnRails
[22:33:55] cd-rum: has joined #RubyOnRails
[22:41:57] jhfisc: has joined #RubyOnRails
[22:47:24] gusrub: has joined #RubyOnRails
[22:51:27] deur-_: has joined #RubyOnRails
[23:00:24] jhfisc: has joined #RubyOnRails
[23:06:24] jhfisc: has joined #RubyOnRails
[23:11:35] chrisgopher: has joined #RubyOnRails
[23:14:12] jhfisc: has joined #RubyOnRails
[23:17:40] workmad3: has joined #RubyOnRails
[23:28:14] conta1: has joined #RubyOnRails
[23:28:48] jhfisc: has joined #RubyOnRails
[23:30:40] quirkycoders: has joined #RubyOnRails
[23:30:42] gusrub: has joined #RubyOnRails
[23:36:00] quirkycoders: has joined #RubyOnRails
[23:44:48] jhfisc: has joined #RubyOnRails
[23:50:02] glasz: has joined #RubyOnRails
[23:53:15] cagomez: has joined #RubyOnRails