« Back to channel list

#RubyOnRails - 02 March 2018

« Back 1 day Forward 1 day »
[00:02:54] xavrix: has joined #RubyOnRails
[00:03:17] chouhoulis: has joined #RubyOnRails
[00:03:43] sameerynho: has joined #RubyOnRails
[00:08:05] mayhew: has joined #RubyOnRails
[00:08:13] mayhew: Does Rails have a session lock like PHP?
[00:13:24] chouhoulis: has joined #RubyOnRails
[00:18:57] chouhoulis: has joined #RubyOnRails
[00:19:07] havenwood: mayhew: Rails saves session data to encrypted cookies by default, not to a file by default like PHP.
[00:19:53] havenwood: There's no file to lock.
[00:20:37] jnollette: has joined #RubyOnRails
[00:20:56] cagomez: has joined #RubyOnRails
[00:21:04] havenwood: mayhew: You *could* use a file for session storage with Rails, but I've never seen someone do that. You can find examples like: https://gist.github.com/reu/11b03095ee1bfd62bdd80d80ab4325cf
[00:21:15] ponzii: has joined #RubyOnRails
[00:21:28] cschneid: has joined #RubyOnRails
[00:21:44] havenwood: mayhew: What you will see is folk using Redis for sessions.
[00:22:02] havenwood: mayhew: For example: https://github.com/roidrage/redis-session-store
[00:23:04] havenwood: mayhew: http://guides.rubyonrails.org/action_controller_overview.html#session
[00:23:06] ponzii: One of the views in my Rails 5.2.0rc1 app displays an array of data from an Active Record query near the top of the HTML page. I never put it there and there's nothing in my ERB code to explain it. Any ideas?
[00:23:51] havenwood: ponzii: An accidental `=` in an ERB tag?
[00:24:33] chouhoulis: has joined #RubyOnRails
[00:24:41] havenwood: ponzii: Is the query in the ERB file or it's percolating up from a model somehow?
[00:25:04] havenwood: ponzii: Show us the ERB?
[00:25:22] ponzii: havenwood: No query in the ERB file and I'm only accessing model data via the controller.
[00:25:31] chouhoulis: has joined #RubyOnRails
[00:26:04] ponzii: haverwood: Hold on while I create a gist.
[00:27:12] shpoont: has joined #RubyOnRails
[00:29:41] ponzii: haverwood: https://gist.github.com/GaryHeath/f389feb8e6fff4c74923fefbf9ec3c87
[00:30:26] ponzii: This is the offending data: [{:header=>"Zumba", :pkg_id=>317, :data=>[#<Sql id: 5592>, #<Sql id: 4342>, #<Sql id: 4343>, #<Sql id: 4344>]}]
[00:30:33] havenwood: ponzii: This line looks suspicious: https://gist.github.com/GaryHeath/f389feb8e6fff4c74923fefbf9ec3c87#file-gistfile1-txt-L33
[00:30:44] havenwood: ponzii: <%=
[00:30:58] chouhoulis: has joined #RubyOnRails
[00:31:32] ponzii: haverwood: Like you suspected. Great, will erase. This is brilliant :)
[00:31:45] havenwood: ponzii: 👍
[00:33:03] ponzii: haverwood: Offending data has now returned to its natural habitat. Thanks.
[00:33:10] havenwood: ponzii: you're welcome
[00:35:21] rafaeldelucena: has joined #RubyOnRails
[00:38:22] mayhew: havenwood: yeah, I'm just curious why the PHP community seems so obsessed with having them
[00:38:33] mayhew: havenwood: for example, https://www.codeigniter.com/userguide3/libraries/sessions.html#a-note-about-concurrency
[00:38:58] mayhew: they're awful for performance when you have multiple outgoing ajax requests because only one can make progress at a time
[00:45:20] bijan_: has joined #RubyOnRails
[00:47:51] bijan_: Hi I created a pull request to update coffescript to version 2. I asked DHH what the future plans are for new rails projects. As far as I understood him rails 6 will by default not use coffeescript. When you guys create a new project what option do you choose (given rails 5.2 rc1)? --skip-coffee ?
[00:50:30] bijan_: or webpack?
[00:53:21] havenwood: bijan_: --skip-coffee --skip-sprockets --webpack
[00:54:30] bijan_: havenwood sprockets is the old asset pipeline right?
[00:54:45] havenwood: bijan_: yes
[00:55:24] havenwood: bijan_: Using Webpacker and Yarn is a nice way forward.
[00:55:27] bijan_: man this is giving me headaches... okay so the webpack way is probably the most futureproof I guess
[00:55:31] havenwood: bijan_: You get Babel with Webpacker.
[00:56:10] bijan_: which is kind of cool :)
[00:57:37] sevenseacat: has joined #RubyOnRails
[01:13:09] orbyt_: has joined #RubyOnRails
[01:20:11] workmad3: has joined #RubyOnRails
[01:28:33] dblessing: has joined #RubyOnRails
[01:30:02] kn-928: has joined #RubyOnRails
[01:52:53] LambdaSource: has joined #RubyOnRails
[02:03:45] mroutis: has joined #RubyOnRails
[02:14:36] jottr: has joined #RubyOnRails
[02:18:52] fragamus: has joined #RubyOnRails
[02:57:55] orbyt_: has joined #RubyOnRails
[02:59:35] malide: has joined #RubyOnRails
[03:00:02] Axsuul: has joined #RubyOnRails
[03:02:22] malide: Is there a basic list of what operations ActiveRecord migrations can and can't reverse? It's quite clear that plain SQL can't be undone with a custom down, but when else do you need a custom down?
[03:03:52] Radar: malide: re-adding a column after a remove
[03:08:28] malide: interesting, and the guides also mentioned changing the type of a column and seeding data. I was sort of hoping there was some obvious resource I was missing that said either "These commands/situations can be reversed by ActiveRecord" or "These commands/situations can't"
[03:11:04] Radar: I don't recall seeing any list anywhere. I agree it'd be helpful to probably list that in the migrations guide.
[03:16:32] malide: fair enough. It might be a good issue for the repo then. I might open one up and hope that someone tells me that there's already a list.
[03:30:36] mjolnird: has joined #RubyOnRails
[03:43:22] egray: has joined #RubyOnRails
[03:43:44] lessd: has joined #RubyOnRails
[03:53:01] darkhanb: has joined #RubyOnRails
[03:58:50] Saukk: has joined #RubyOnRails
[04:02:41] mjolnird: has joined #RubyOnRails
[04:12:54] helpa: has joined #RubyOnRails
[04:13:18] ircmaxell: has joined #RubyOnRails
[04:13:18] maciuszek: has joined #RubyOnRails
[04:14:06] pro777: has joined #RubyOnRails
[04:14:07] Travis-42: has joined #RubyOnRails
[04:14:07] Nuck: has joined #RubyOnRails
[04:15:06] mmun: has joined #RubyOnRails
[04:15:20] cardoni: has joined #RubyOnRails
[04:15:25] dmnd: has joined #RubyOnRails
[04:15:25] lipoqil: has joined #RubyOnRails
[04:15:26] podman: has joined #RubyOnRails
[04:15:26] dnyy: has joined #RubyOnRails
[04:15:51] justinweiss: has joined #RubyOnRails
[04:16:04] Lloyd: has joined #RubyOnRails
[04:16:10] LyndsySimon: has joined #RubyOnRails
[04:16:12] Kamuela: has joined #RubyOnRails
[04:17:01] iamdevnul: has joined #RubyOnRails
[04:17:14] daxroc: has joined #RubyOnRails
[04:17:15] mattwc: has joined #RubyOnRails
[04:17:32] doesntbyte: has joined #RubyOnRails
[04:17:53] auv: has joined #RubyOnRails
[04:18:37] ewilliam: has joined #RubyOnRails
[04:18:51] tycoon177: has joined #RubyOnRails
[04:18:52] DukeDave: has joined #RubyOnRails
[04:18:53] Fenhl: has joined #RubyOnRails
[04:18:56] JJonah: has joined #RubyOnRails
[04:25:14] trautwein: has joined #RubyOnRails
[04:29:12] jlpeters: has joined #RubyOnRails
[04:29:16] manveru: has joined #RubyOnRails
[04:29:20] tfitts: has joined #RubyOnRails
[04:29:23] arcturiaen: has joined #RubyOnRails
[04:29:25] Mutsuhito: has joined #RubyOnRails
[04:29:59] nOgAnOo: has joined #RubyOnRails
[04:30:11] cagomez: has joined #RubyOnRails
[04:39:53] craysiii: has joined #RubyOnRails
[04:39:58] codepete: has joined #RubyOnRails
[04:39:59] mostlybadfly: has joined #RubyOnRails
[04:40:01] pfg: has joined #RubyOnRails
[04:49:32] kies: has joined #RubyOnRails
[04:50:31] jxf: has joined #RubyOnRails
[04:59:52] arthurnn: has joined #RubyOnRails
[05:01:09] r3my: has joined #RubyOnRails
[05:10:35] reynhout: has joined #RubyOnRails
[05:11:32] elcontrastador: has joined #RubyOnRails
[05:19:51] ramfjord: has joined #RubyOnRails
[05:21:43] workmad3: has joined #RubyOnRails
[05:32:42] sidx64: has joined #RubyOnRails
[06:05:37] cagomez: has joined #RubyOnRails
[06:33:42] hahuang65: has joined #RubyOnRails
[06:40:08] conta: has joined #RubyOnRails
[06:46:31] jackhum: has joined #RubyOnRails
[06:54:26] sidx64: has joined #RubyOnRails
[07:00:12] srinidhi: has joined #RubyOnRails
[07:06:06] AnotherOne: has joined #RubyOnRails
[07:10:34] reynhout: has left #RubyOnRails: ("WeeChat 1.8")
[07:11:08] KeyJoo: has joined #RubyOnRails
[07:12:11] sidx64_: has joined #RubyOnRails
[07:15:55] sidx64: has joined #RubyOnRails
[07:17:04] mtkd: has joined #RubyOnRails
[07:17:27] dionysus69: has joined #RubyOnRails
[07:22:13] roshanavand: has joined #RubyOnRails
[07:22:26] workmad3: has joined #RubyOnRails
[07:23:31] darkhanb: has joined #RubyOnRails
[07:26:40] dionysus69: has joined #RubyOnRails
[07:34:03] srinidhi: has joined #RubyOnRails
[07:37:08] shpoont: has joined #RubyOnRails
[07:47:58] mjolnird: has joined #RubyOnRails
[07:50:07] darkhanb: has joined #RubyOnRails
[08:00:17] darkhanb: has joined #RubyOnRails
[08:04:56] schneider: has joined #RubyOnRails
[08:15:15] _aeris_: has joined #RubyOnRails
[08:15:45] Omnilord: has joined #RubyOnRails
[08:19:26] apeiros: has joined #RubyOnRails
[08:20:45] mjolnird: has joined #RubyOnRails
[08:26:45] srinidhi: has joined #RubyOnRails
[08:29:39] dionysus69: when it comes to changing asset pipeline and refreshing page
[08:29:56] dionysus69: it's pretty slow, 5 second wait minimum, is there anyway to make this faster?
[08:35:49] Ergo: has joined #RubyOnRails
[08:43:33] Puffball: has joined #RubyOnRails
[08:44:51] roshanavand: has joined #RubyOnRails
[08:45:42] roshanavand: has joined #RubyOnRails
[08:50:20] Fusselgesicht: has joined #RubyOnRails
[08:57:11] mikecmpbll: has joined #RubyOnRails
[09:04:37] sidx64: has joined #RubyOnRails
[09:07:04] sidx64: has joined #RubyOnRails
[09:11:11] sameerynho: has joined #RubyOnRails
[09:11:29] roshanavand: has joined #RubyOnRails
[09:17:04] mtkd: has joined #RubyOnRails
[09:18:21] shpoont: has joined #RubyOnRails
[09:18:28] marr: has joined #RubyOnRails
[09:27:35] bijan_: has joined #RubyOnRails
[09:39:02] shpoont: has joined #RubyOnRails
[09:41:28] timdotrb: has joined #RubyOnRails
[09:44:33] lessd: has joined #RubyOnRails
[09:58:29] Radar: GOOD EVENING
[10:02:07] sidx64: has joined #RubyOnRails
[10:22:03] sidx64: has joined #RubyOnRails
[10:22:08] dminuoso: dionysus69: Yes, stop using sprockets.
[10:22:23] dionysus69: hmm ok let me google that xD
[10:22:35] dionysus69: what's the downside? and what are implications for production?
[10:22:54] dminuoso: The downside is that you have to think about how you want to manage assets.
[10:23:03] drale2k_: has joined #RubyOnRails
[10:23:14] dionysus69: oh ok understood :)
[10:24:04] dminuoso: dionysus69: The main problem comes from glueing some of the better options into Rails.
[10:24:11] dminuoso: So that you gain things like image_tag helpers.
[10:24:42] dionysus69: oh I see, so removing sprockets also removes dynamic asset helpers?
[10:24:50] dminuoso: dionysus69: The only solution that comes to mind right now uses webpacker. With incremental builds that can be faster.
[10:25:15] dionysus69: ye no time to deal webpacker atm, I ll look at it when I start new project :)
[10:25:18] dminuoso: dionysus69: Well, webpacker basically glues into sprockets, but you dont have to use the sprockets assets anymore
[10:25:27] dminuoso: instead you can manage assets with webpack
[10:31:59] TvL2386: hey guys, is it possible to get the url path from a link_to(...)?
[10:36:46] qyliss: TvL2386: are you looking for url_for?
[10:37:59] TvL2386: qyliss: I'm not sure... I want to remember what link the client clicked on, so I do "link = link_to(........)" then want to do something like "session['clicked_link'] = link.path ; return link"
[10:38:31] TvL2386: I just created a new "remember_link_to(*args)" method
[10:38:33] mtkd: has joined #RubyOnRails
[10:39:53] sidx64: has joined #RubyOnRails
[10:40:15] TvL2386: if I could do "url_for(*args)" to get it, that would be fine, but I don't think I can send all args to url_for
[10:40:36] qyliss: Oh, I see
[10:40:38] TvL2386: can always try and find out :D
[10:41:42] TvL2386: yeah to be honest, I'm using a bootstrap theme that dynamically opens the sidebar menu based on window.location.href. And that sucks
[10:42:19] TvL2386: that compare goes wrong very easily (by clicking on 'show' or 'edit' for example) and using the session to remember it works great
[10:43:24] mauro1254: has joined #RubyOnRails
[10:43:38] elcontrastador: has joined #RubyOnRails
[10:44:06] cjoshmartin: has joined #RubyOnRails
[10:44:50] moei: has joined #RubyOnRails
[10:48:23] cjoshmartin: has joined #RubyOnRails
[11:09:11] workmad3: has joined #RubyOnRails
[11:23:45] mtkd: has joined #RubyOnRails
[11:36:41] tekk: has joined #RubyOnRails
[11:38:22] conta: has joined #RubyOnRails
[11:38:24] Cavallari: has joined #RubyOnRails
[11:41:27] justrying: has joined #RubyOnRails
[11:42:12] apparition: has joined #RubyOnRails
[11:55:18] DrYockel: has joined #RubyOnRails
[12:03:21] mtkd: has joined #RubyOnRails
[12:25:59] jottr: has joined #RubyOnRails
[12:48:12] tcopeland: has joined #RubyOnRails
[12:51:50] sidx64: has joined #RubyOnRails
[12:57:24] bijan_: has joined #RubyOnRails
[13:00:17] sidx64: has joined #RubyOnRails
[13:12:04] aguestuser: has joined #RubyOnRails
[13:21:13] sidx64: has joined #RubyOnRails
[13:22:18] jottr: Hi all. I've already asked over in #heroku, but that channel is rather slow, so I'll ask here again. Maybe someoen in here is able to help?
[13:22:44] jottr: We have a rails monolith hosted in a single git repository. A push to master spawns a deployment to production on heroku. The rails application runs in three different application modes, which are activated by an environment flag: `admin`, `api1` and `api2`.
[13:22:47] jottr: Backend and the APIs communicate over HTTP. The routes are to each application instance (`admin`, `api1`, `api2`) are set in environment variables.
[13:22:48] jottr: We'd like to use heroku review apps.
[13:22:50] jottr: The big question: How can we make sure, that the routes are correctly set in the environment when spawning the three application instancse as review applications.
[13:22:52] jottr: Is there a means to automatically update the routes so that the instances can access each other?
[13:22:54] jottr: How would you solve this?
[13:37:53] mauro1254: has joined #RubyOnRails
[13:38:32] mauro1254: Hi folks, which is the best approach to handle exceptions (AR validation errors) in web services?
[13:46:43] jottr_: has joined #RubyOnRails
[13:51:50] dminuoso: mauro1254: AR validations are not exceptions.
[13:52:28] dminuoso: mauro1254: if model.valid? do this else do that.
[13:52:30] dminuoso: Quite simple.
[13:52:58] mauro1254: dminuoso : I'm using bang version of methods
[13:53:05] dminuoso: mauro1254: Then dont?
[13:53:07] sevenseacat: don't do that.
[13:53:48] mauro1254: When creating multiple records isn't the exception approach better?
[13:54:40] Sylario: has joined #RubyOnRails
[13:55:18] dminuoso: mauro1254: Perhaps. You could create a small local begin/rescue ActiveRecord::RecordInvalid/end block, or you put your records into an array: a = records.save; a.all?(&:valid?)
[13:55:24] dminuoso: Or something of the sorts.
[13:55:44] mauro1254: dminuoso : I also use AR Transaction
[13:56:45] dminuoso: marahin: that's fine. You can in the error case simply raise ActiveRecord::Rollback at the end
[13:57:01] marahin: dminuoso: I think you meant mauro1254 :)
[13:57:22] dminuoso: marahin: weechats tab completion is really.. flakey.
[13:57:31] mauro1254: dminuoso : yes, if I catch the validation exception then I need to manually handle the rollback
[14:06:30] aguestuser: has joined #RubyOnRails
[14:14:21] drale2k_: has joined #RubyOnRails
[14:18:07] FastJack: has joined #RubyOnRails
[14:20:09] tycoon177: working on upgrading my rails 3 app to rails 5 for work...just got everything up to 4.2.x and running tests now :D
[14:20:14] tycoon177: ACTION crosses his fingers
[14:21:31] tycoon177: > 1071 examples, 8 failures
[14:21:45] jhill_: has joined #RubyOnRails
[14:24:09] adavia: has joined #RubyOnRails
[14:24:16] mtkd: has joined #RubyOnRails
[14:25:28] durango: has joined #RubyOnRails
[14:25:40] adavia: Hey guys does anyone knows if its possible to load associations on just certain actions using AMS?
[14:46:37] shpoont: has joined #RubyOnRails
[14:51:24] mtkd: has joined #RubyOnRails
[14:52:05] dtzuzu: has joined #RubyOnRails
[15:13:21] qyliss: has joined #RubyOnRails
[15:13:30] georgedrummond: has joined #RubyOnRails
[15:15:31] jnollette: has joined #RubyOnRails
[15:20:14] mtkd: has joined #RubyOnRails
[15:23:51] jottr: has joined #RubyOnRails
[15:26:01] fragamus: has joined #RubyOnRails
[15:26:23] cschneid: has joined #RubyOnRails
[15:31:19] dblessing: has joined #RubyOnRails
[15:31:42] codepete: has joined #RubyOnRails
[15:32:10] garyserj: rgiscard, widthanx: thanks
[15:34:15] manveru: has joined #RubyOnRails
[15:34:41] r3my: has joined #RubyOnRails
[15:34:55] chouhoulis: has joined #RubyOnRails
[15:35:29] JJonah: has joined #RubyOnRails
[15:36:28] chouhoulis: has joined #RubyOnRails
[15:38:11] cjoshmartin: has joined #RubyOnRails
[15:40:35] cschneid: has joined #RubyOnRails
[15:42:05] dblessing: has joined #RubyOnRails
[15:42:11] kn-928: has joined #RubyOnRails
[15:44:57] cjoshmartin: has joined #RubyOnRails
[15:50:32] troys: has joined #RubyOnRails
[15:53:22] dtzuzu: has joined #RubyOnRails
[16:10:25] desperek: has joined #RubyOnRails
[16:14:07] srinidhi: has joined #RubyOnRails
[16:15:56] _aeris_: has joined #RubyOnRails
[16:16:36] Saukk: has joined #RubyOnRails
[16:25:42] cagomez: has joined #RubyOnRails
[16:29:07] LambdaSource: has joined #RubyOnRails
[16:37:25] georgedrummond: has joined #RubyOnRails
[16:46:34] DrYockel: has joined #RubyOnRails
[16:58:13] desperek: my app works on windows but doesnt work on freebsd
[16:58:15] desperek: how even...
[16:58:20] desperek: how do i even...
[16:59:01] [Butch]: has joined #RubyOnRails
[17:00:10] desnudopenguino: desperek: what errors/issues are you having?
[17:00:45] desperek: desnudopenguino, Models/confirmations_controller.rb:3:in `<top (required)>': uninitialized constant Models (NameError)
[17:00:51] desperek: rails 5.1.4
[17:01:03] desperek: ruby 2.3.3 vs 2.3.4, but i guess thats not an issue
[17:01:17] desnudopenguino: desperek: can you gist that file?
[17:01:25] sameerynho: has joined #RubyOnRails
[17:01:48] desperek: desnudopenguino, there's nothing in there other than: class Users::ConfirmationsController < Devise::ConfirmationsController \ end
[17:01:57] desperek: well, Users=Models here
[17:02:02] desperek: forgot to replace it
[17:03:04] srinidhi: has joined #RubyOnRails
[17:04:14] mtkd: has joined #RubyOnRails
[17:05:24] desnudopenguino: so in the error, it should read "... unitialized constant Users..." then?
[17:07:12] desperek: desnudopenguino, yes
[17:07:15] desperek: well, it does
[17:07:34] desperek: dunno really how that works cause im on passenger phusion running that
[17:07:45] desperek: and i have no idea where the logs are stored
[17:09:31] desperek: i figured errors - how do i get them
[17:11:31] desperek: yup, uninitialized constant Users (NameError) confirmed desnudopenguino
[17:11:39] desperek: probably it affects every controller
[17:13:00] desnudopenguino: and you have the Users::ConfirmationsController file in the proper location? (app/controllers/users/confirmations_controller.rb)
[17:13:15] desperek: desnudopenguino, yup
[17:13:22] desperek: Users actually
[17:13:36] desnudopenguino: try with lowercase u
[17:13:51] desperek: desnudopenguino, though its referencing the U
[17:13:55] desperek: i have an idea
[17:14:04] desperek: desnudopenguino, could you tell me what permissions should be set?
[17:14:44] platoon23: has joined #RubyOnRails
[17:15:00] desnudopenguino: i'm pretty sure all the files are/should be 0644
[17:15:05] one_zero: has joined #RubyOnRails
[17:15:40] schneider: has joined #RubyOnRails
[17:16:12] uksio: has joined #RubyOnRails
[17:16:43] desperek: desnudopenguino, how to chmod it tho
[17:17:05] jcarl43: has joined #RubyOnRails
[17:17:09] desnudopenguino: man chmod to get your syntax on it
[17:20:39] SteenJobs: has joined #RubyOnRails
[17:21:47] am55: has joined #RubyOnRails
[17:26:01] desperek: desnudopenguino, still no luck
[17:30:27] desnudopenguino: desperek: i'm not sure then man. haven't used devise in a while. do you have the routes set up properly and everything?
[17:30:40] desperek: desnudopenguino, everything works under windows
[17:31:05] darkhanb: has joined #RubyOnRails
[17:31:27] desnudopenguino: desperek: sometimes windows doesn't give a poop about capital vs lowercase in filenames, unix-based systems on the other hand do
[17:31:49] desperek: desnudopenguino, but it was looking for capital U in the first place
[17:31:52] desnudopenguino: i'm not sure if that propagates into things like rails or not, but
[17:32:33] shpoont_: has joined #RubyOnRails
[17:32:59] desnudopenguino: what's your routing look like?
[17:33:32] desnudopenguino: i'm just throwing out ideas of what i would check if i were in your situation
[17:35:29] dionysus69: has joined #RubyOnRails
[17:41:47] desperek: eh i have 500 now
[17:43:20] sagax: has joined #RubyOnRails
[17:44:29] desnudopenguino: what error is it throwing? should be able to see in your log
[17:46:59] LambdaSource: has joined #RubyOnRails
[17:48:20] mtkd: has joined #RubyOnRails
[17:56:47] desperek: desnudopenguino, no errors
[17:56:49] desperek: in any of logs
[17:56:52] desperek: thats the thing :/
[17:57:02] desperek: welp, trying to deploy to heroku for now
[17:57:28] desperek: i think i know what might be an issue
[17:57:33] ramfjord: has joined #RubyOnRails
[17:58:49] desnudopenguino: hrm, i'd suggest setting up some sort of dev environment that matches your production environment
[17:59:48] georgedrummond: has joined #RubyOnRails
[17:59:59] desperek: desnudopenguino, turns out it might have been sprockets
[18:02:55] georgedrummond: has joined #RubyOnRails
[18:03:50] mtkd: has joined #RubyOnRails
[18:05:51] desperek: desnudopenguino, let me try to deploy it manually, ill let you know
[18:08:10] durango: has joined #RubyOnRails
[18:13:26] desperek: desnudopenguino, works!
[18:13:31] desperek: thanks for all :P
[18:13:35] desperek: it was compilation of:
[18:13:55] desperek: Users instead of users, not precompiled assets and sprockets i suppose
[18:17:43] defsdoor: has joined #RubyOnRails
[18:18:05] SteenJobs: has joined #RubyOnRails
[18:19:57] LambdaSource: has joined #RubyOnRails
[18:23:39] georgedrummond: has joined #RubyOnRails
[18:24:55] ramfjord: has joined #RubyOnRails
[18:26:32] twilling: has joined #RubyOnRails
[18:28:29] ams__: has joined #RubyOnRails
[18:36:18] [Butch]: has joined #RubyOnRails
[18:48:37] greengriminal: has joined #RubyOnRails
[18:50:24] greengriminal: Hey all quick question. I've got a rails app and am attempting to get my rails engine working. Currently the engine lives under: `enginges/boxoffice_payments`. I have also configured some initializers. My issue is that I can execute the rails console successfully from the `engines/boxoffice_payments/test_dummy` app. But cannot access the rails console from my main app. I have confirmed that the app is mounted in my Gemfile and in my routes.rb
[18:50:33] greengriminal: This is my gist: https://gist.github.com/anonymous/8676ef84a3af6818722762cff5bea772
[18:51:50] greengriminal: my question simply is, why does the rails console work when I launch `rails console` from the test/dummy app and not from my main app ;/
[18:56:33] fryguy: greengriminal: autoloader won't (generally) autoload things thare are in gems/engines
[18:57:47] greengriminal: interesting...
[18:58:09] schneider: has joined #RubyOnRails
[18:58:13] greengriminal: so what would be the correct way in autoloading modules that exist in engines
[18:58:22] greengriminal: or is that just not possible.
[18:59:57] mtkd: has joined #RubyOnRails
[19:01:18] jnollette: has joined #RubyOnRails
[19:02:42] fryguy: require them explicitly, or add them to autoload_paths in application.rb
[19:11:47] ramfjord: has joined #RubyOnRails
[19:25:10] blackcross: What is a recommended gem for United Parcel Service (UPS) API integration? Any besides these: https://rubygems.org/search?utf8=%E2%9C%93&query=UPS ?
[19:27:42] cstls: has joined #RubyOnRails
[19:32:54] durango: has joined #RubyOnRails
[19:33:46] georgedrummond: has joined #RubyOnRails
[19:34:31] elcontrastador: has joined #RubyOnRails
[19:40:06] funnel: has joined #RubyOnRails
[19:41:22] hahuang65: has joined #RubyOnRails
[19:42:26] kies: has joined #RubyOnRails
[19:44:10] segy: has joined #RubyOnRails
[19:45:50] aguestuser: has joined #RubyOnRails
[19:47:04] Dimik: has joined #RubyOnRails
[19:58:40] tycoon177: huh, TIL that UPS stands for united pacel service
[19:59:45] tycoon177: blackcross: those are likely the only ones, yeah. i just checked ups's site and they don't have any sort of ruby integration built in
[20:11:56] shpoont: has joined #RubyOnRails
[20:19:04] mtkd: has joined #RubyOnRails
[20:20:53] desnudopenguino: anyone using cucumber-rails for testing? I'm trying to check for a redirect, but I'm getting "undefined method `redirect_to' for #<Cucumber::Rails::World:0x0000081347c280> (NoMethodError)"
[20:33:04] dviola: has joined #RubyOnRails
[20:41:50] hahuang61: has joined #RubyOnRails
[20:44:09] workmad3: has joined #RubyOnRails
[20:44:10] za1b1tsu: has joined #RubyOnRails
[20:45:27] za1b1tsu: Since Subject.first.ratings works, shouldnt Rating.first.subjects or Rating.first.subject work as well?
[20:45:42] za1b1tsu: Subject has many ratings, ratings belongs_to subjects
[20:46:07] sidx64: has joined #RubyOnRails
[20:47:52] za1b1tsu: When I try Rating.first.subject(s) it says undefined method
[20:49:28] sameerynho: has joined #RubyOnRails
[20:59:16] qyliss: Are you sure you have `belongs_to :subject` in `Rating`, za1b1tsu?
[21:04:11] za1b1tsu: qyliss, fixed it, yeah Im dump
[21:04:19] za1b1tsu: *dumb can't even spell dumb, so yeah
[21:04:26] qyliss: Glad you got it sorted :)
[21:06:49] ebsen: has joined #RubyOnRails
[21:06:58] za1b1tsu: What I'm trying to do Session.includes(:ratings).where(:ratings => { subject: {type: 'review'} }).inspect
[21:07:33] za1b1tsu: but I get this ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: missing FROM-clause entry for table "subject"
[21:07:41] qyliss: Can you explain what you're trying to find in words?
[21:09:08] za1b1tsu: So get all Sessions, but I need data from Ratings (Sessions has many Ratings), where Ratings.Subject (Subject has many ratings) is of type 'review'
[21:09:38] za1b1tsu: So get all Sessions, but with data from Ratings (Sessions has many Ratings), where Ratings.Subject (Subject has many ratings) is of type 'review'
[21:10:06] ebsen: has joined #RubyOnRails
[21:11:15] za1b1tsu: So get all Sessions, but with data from Ratings (Sessions has many Ratings), but only from the Ratings where Ratings.Subject (Subject has many ratings) is of type 'review'. Sorry for repeat, trying to be more explicit
[21:12:03] hahuang61: has joined #RubyOnRails
[21:16:48] beingjohnm: za1b1tsu: Session.includes(:ratings).where("ratings.subject = 'review'") ?
[21:17:28] beingjohnm: oh never mind
[21:20:40] cagomez: has joined #RubyOnRails
[21:21:08] sameerynho: has joined #RubyOnRails
[21:25:53] Alchemical: has joined #RubyOnRails
[21:27:02] cagomez: has joined #RubyOnRails
[21:28:24] cagomez_: has joined #RubyOnRails
[21:30:43] hahuang61: has joined #RubyOnRails
[21:31:58] hahuang65: has joined #RubyOnRails
[21:35:55] greengriminal: has joined #RubyOnRails
[21:42:29] conceivably: has joined #RubyOnRails
[21:46:49] conceivably: If you had half a day to introduce another programmer to rails, what would you focus on? Thus, I'm thinking about a short intro that touches on some of rails' philosophies (e.g. convention over configuration), and then a discussion about MVC both in general, and how the concepts come up in rails.
[21:47:04] conceivably: But what then?
[21:55:43] greengriminal: has joined #RubyOnRails
[21:56:05] mark721: has joined #RubyOnRails
[21:56:53] mark721: i'm having a small issue, so i'm using omniauth and basically when the user visits the site for the first time it calls *first_or_create*
[21:57:10] lupine: conceivably: probably services
[21:57:30] lupine: thin models, thin controllers
[21:57:41] mark721: the issue is, it calls create, but then the user isn't logged in.
[21:57:57] mark721: they have to log in via omniauth *a second*
[21:58:12] mark721: this only happens the first time the user visits the site
[22:01:03] mark721: any ideas??
[22:01:35] shpoont: has joined #RubyOnRails
[22:03:43] Yzguy: has joined #RubyOnRails
[22:04:39] greengriminal: has joined #RubyOnRails
[22:09:50] shpoont: has joined #RubyOnRails
[22:18:03] hahuang65: has joined #RubyOnRails
[22:22:47] MacWinner: has joined #RubyOnRails
[22:23:10] MacWinner: what's the most popular web server choice to use with ror?
[22:24:18] mtkd: has joined #RubyOnRails
[22:29:39] Yzguy: oh we're talking like puma, etc
[22:30:05] Yzguy: I believe Nginx + Unicorn
[22:30:27] Yzguy: or Apache + Passenger
[22:31:16] hahuang65: has joined #RubyOnRails
[22:31:21] shpoont: has joined #RubyOnRails
[22:36:30] MacWinner: Yzguy, thanks! do most default configurations protect against slowloris types of attacks?
[22:36:43] Yzguy: That I do not know unfortunatelyt
[22:41:20] schneider: has joined #RubyOnRails
[22:44:15] hahuang65: has joined #RubyOnRails
[22:44:50] workmad3: has joined #RubyOnRails
[22:48:14] roshanavand: has joined #RubyOnRails
[23:04:03] shpoont: has joined #RubyOnRails
[23:05:25] cagomez_: if FooController uses helper: myHelper, does Bar < FooController inherit FooController's myHelper?
[23:15:13] agent_white: has joined #RubyOnRails
[23:15:13] lupine: stupid modules
[23:16:03] cagomez_: I thought that Bar wouldn't. My issue was trying to call a helper in my controller action, rather than in my view
[23:16:15] cagomez_: Bar's controller action, that is
[23:28:07] apeiros_: has joined #RubyOnRails
[23:36:37] am55: has joined #RubyOnRails
[23:42:32] chouhoulis: has joined #RubyOnRails
[23:43:11] chouhoulis: has joined #RubyOnRails
[23:53:16] cagomez: has joined #RubyOnRails