« Back to channel list

#RubyOnRails - 28 January 2018

« Back 1 day
[00:03:14] orbyt_: has joined #RubyOnRails
[00:05:23] dogweather: has joined #RubyOnRails
[00:08:18] fragamus: has joined #RubyOnRails
[00:21:27] NoGodDamnIdea: has joined #RubyOnRails
[00:33:04] workmad3: has joined #RubyOnRails
[00:42:01] mtkd: has joined #RubyOnRails
[00:49:03] bronson: has joined #RubyOnRails
[00:50:26] jottr_: has joined #RubyOnRails
[01:02:20] nso95: has joined #RubyOnRails
[01:04:33] nso95: I'm using paperclip to handle image uploads, and I get the following NoMethodError: "undefined method `image_content_type' for #<Image:0x000000060b0c38>"
[01:05:05] nso95: I've googled the error message but I can't seem to find anything helpful
[01:10:18] nso95: Here's the code: https://gist.github.com/anonymous/c30a225f337a371d7bc1f6157d67ab08
[01:13:12] _aeris_: has joined #RubyOnRails
[01:16:04] fox_mulder_cp: has joined #RubyOnRails
[01:32:15] cgfbee: has joined #RubyOnRails
[01:40:46] apparition: has joined #RubyOnRails
[01:41:58] GodFather: has joined #RubyOnRails
[01:48:45] GodFather: has joined #RubyOnRails
[01:50:28] bronson: has joined #RubyOnRails
[02:11:12] jottr: has joined #RubyOnRails
[02:18:27] segy: has joined #RubyOnRails
[02:23:42] jottr: has joined #RubyOnRails
[02:33:58] workmad3: has joined #RubyOnRails
[02:47:09] mtkd: has joined #RubyOnRails
[02:51:02] bronson: has joined #RubyOnRails
[02:54:17] dogweather: has joined #RubyOnRails
[02:59:53] jrp93: has joined #RubyOnRails
[03:10:21] cagomez: has joined #RubyOnRails
[03:15:29] dviola: has joined #RubyOnRails
[03:18:40] andrew91841: has joined #RubyOnRails
[03:52:13] bronson: has joined #RubyOnRails
[04:09:52] _aeris_: has joined #RubyOnRails
[04:25:15] trautwein: has joined #RubyOnRails
[04:44:02] TinkerTyper: has joined #RubyOnRails
[04:46:52] mjolnird: has joined #RubyOnRails
[04:52:11] mtkd: has joined #RubyOnRails
[04:52:54] bronson: has joined #RubyOnRails
[04:53:39] powrtoch: has joined #RubyOnRails
[05:23:36] blackcross: Any RubyOnRails devs on here for hire? Brand new project, I have the required models and just need someone to make the views/controllers and interactions between them. 8 models total
[05:26:32] darkhanb: has joined #RubyOnRails
[05:42:15] alfiemax: has joined #RubyOnRails
[05:43:29] fryguy: has joined #RubyOnRails
[05:43:50] Saukk: has joined #RubyOnRails
[05:51:00] segy: has joined #RubyOnRails
[05:53:32] bronson: has joined #RubyOnRails
[05:54:48] fugee: has joined #RubyOnRails
[05:55:02] fugee: can someone help me with blogit
[06:12:39] kapil___: has joined #RubyOnRails
[06:13:12] kapil___: Product.order("created_at: :desc") gives this error:
[06:13:32] kapil___: DEPRECATION WARNING: Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): "created_at: :desc". Non-attribute arguments will be disallowed in Rails 6.0. This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql().
[06:13:36] kapil___: please help.
[06:25:36] Saukk: has joined #RubyOnRails
[06:35:30] workmad3: has joined #RubyOnRails
[06:46:03] nso95: has joined #RubyOnRails
[06:50:18] fragamus: has joined #RubyOnRails
[06:52:01] kitallis: has left #RubyOnRails: ("going, bye")
[06:54:36] bronson: has joined #RubyOnRails
[06:55:27] senaa: has joined #RubyOnRails
[06:56:07] senaa: has left #RubyOnRails: ()
[07:06:41] tanuki4: has joined #RubyOnRails
[07:06:50] atrius: has joined #RubyOnRails
[07:25:12] darkhanb: has joined #RubyOnRails
[07:25:37] cschneid: has joined #RubyOnRails
[07:55:43] bronson: has joined #RubyOnRails
[07:59:12] tanuki4: has joined #RubyOnRails
[08:19:10] kies: has joined #RubyOnRails
[08:19:35] tanuki4: has joined #RubyOnRails
[08:20:20] dionysus69: has joined #RubyOnRails
[08:26:41] reber: has joined #RubyOnRails
[08:36:20] workmad3: has joined #RubyOnRails
[08:39:48] mtkd: has joined #RubyOnRails
[08:54:43] gambl0re: has joined #RubyOnRails
[08:56:25] bronson: has joined #RubyOnRails
[08:59:50] za1b1tsu: has joined #RubyOnRails
[09:00:37] za1b1tsu: Hello, I'm learning about omniauth with a rails app that uses facebook as a provider
[09:00:43] za1b1tsu: can I test this app on a localhost?
[09:01:00] thejamespinto: has joined #RubyOnRails
[09:03:11] russt: has joined #RubyOnRails
[09:03:48] dmarr: has joined #RubyOnRails
[09:09:26] cgfbee: has joined #RubyOnRails
[09:18:46] kapil___: has joined #RubyOnRails
[09:19:06] kapil___: Model.paginate(10) is alias of Model.offset??
[09:19:13] marr: has joined #RubyOnRails
[09:37:14] sameerynho: has joined #RubyOnRails
[09:57:19] bronson: has joined #RubyOnRails
[10:11:40] apparition: has joined #RubyOnRails
[10:12:26] za1b1tsu: how can I view the text in render text: something
[10:12:33] za1b1tsu: do I have to remove the view?
[10:27:49] defsdoor: has joined #RubyOnRails
[10:34:53] quazimodo: has joined #RubyOnRails
[10:47:59] segy: has joined #RubyOnRails
[10:55:30] apparition: has joined #RubyOnRails
[10:58:03] bronson: has joined #RubyOnRails
[11:13:36] gambl0re: has joined #RubyOnRails
[11:28:27] mnms_: has joined #RubyOnRails
[11:28:55] desperek: has joined #RubyOnRails
[11:29:13] mnms_: hi! Is there any way to use rails api with pg 1.0.0?
[11:29:22] mnms_: rails 5.1.4
[11:29:46] tbuehlmann: last time I tried pg 1.0.0 it didn't work
[11:30:27] mnms_: I give it a shot with 5.2.0 beta and see if its work
[11:42:59] Saukk: has joined #RubyOnRails
[11:55:53] oded: has joined #RubyOnRails
[11:56:55] oded: Hey, I have a model with default_scope containing a where and a joins. When I join with this model, the query contains the where but not the joins. Any ideas?
[11:59:02] bronson: has joined #RubyOnRails
[12:02:19] oded: https://gist.github.com/odedniv/d3667f0538a026bc733a74497f85e933
[12:16:01] zigzig: has joined #RubyOnRails
[12:37:57] workmad3: has joined #RubyOnRails
[12:57:39] conta: has joined #RubyOnRails
[12:58:30] mtkd: has joined #RubyOnRails
[12:59:52] bronson: has joined #RubyOnRails
[13:04:29] jottr: has joined #RubyOnRails
[13:06:04] jottr_: has joined #RubyOnRails
[13:11:33] MrCrackPotBuilde: has joined #RubyOnRails
[13:39:37] jottr_: has joined #RubyOnRails
[13:45:06] jottr: has joined #RubyOnRails
[13:52:54] blackhuey: has joined #RubyOnRails
[13:52:58] srinidhi: has joined #RubyOnRails
[13:53:28] blackhuey: has left #RubyOnRails: ()
[13:55:12] zigzig: has joined #RubyOnRails
[13:55:53] gambl0re: has joined #RubyOnRails
[14:01:01] bronson: has joined #RubyOnRails
[14:06:53] jottr_: has joined #RubyOnRails
[14:12:52] dogweather: has joined #RubyOnRails
[14:14:42] gambl0re: has joined #RubyOnRails
[14:18:52] conta: has joined #RubyOnRails
[14:19:28] arBmind: has joined #RubyOnRails
[14:22:22] marr: has joined #RubyOnRails
[14:27:08] jrp93: has joined #RubyOnRails
[14:30:27] dogweather: has joined #RubyOnRails
[14:30:35] cgfbee: has joined #RubyOnRails
[14:35:13] mjolnird: has joined #RubyOnRails
[14:38:47] workmad3: has joined #RubyOnRails
[14:41:24] mtkd: has joined #RubyOnRails
[14:49:14] mikecmpbll: has joined #RubyOnRails
[14:51:16] dogweather: has joined #RubyOnRails
[15:01:46] bronson: has joined #RubyOnRails
[15:18:08] apeiros: has joined #RubyOnRails
[15:29:59] dogweather: has joined #RubyOnRails
[15:41:17] mices: has joined #RubyOnRails
[15:41:56] gambl0re: has joined #RubyOnRails
[15:43:00] syndikate: Hello people, I am sending out emails to users and I use url_helper to build urls for them to link to my application for various actions like viewing some results etc. So, in production would I have to change anything so that my production domain url will be added instead of 'localhost:300' in the generated urls?
[15:45:16] fryguy: syndikate: what are you default_url_options set to in production?
[15:46:32] zzj: has joined #RubyOnRails
[15:50:09] AzaToth: has joined #RubyOnRails
[15:53:09] syndikate: fryguy: config.action_mailer.default_url_options -> I have set this to use an env variable
[15:53:24] syndikate: I have no other deafult_url_options set in config
[15:58:38] pbmarcano: has joined #RubyOnRails
[15:59:27] jrp93: has joined #RubyOnRails
[16:02:42] fryguy: that should be all you need, there is a corresponding default_url_options for action_mailer, but I don't think that needs to also be set (might be worth experimenting).
[16:02:44] bronson: has joined #RubyOnRails
[16:04:47] cagmz: has joined #RubyOnRails
[16:06:29] syndikate: Okay I will see if the first works
[16:06:39] syndikate: https://stackoverflow.com/questions/43961548/what-is-actionmailer-default-url-options
[16:17:56] crova: has joined #RubyOnRails
[16:19:22] crova: Hello everyone, how is it going? Anyone familiar with ransack gem? I'm trying to figure out how to 'blacklist' a few attributes for the sorting (I don't want to show everything on the dropdown list). I reckon that this can be done with ransortable_attributes, but I'm not sure on how to implement it on the model
[16:38:27] one_zero: has joined #RubyOnRails
[16:39:34] workmad3: has joined #RubyOnRails
[16:40:34] dogweather: has joined #RubyOnRails
[16:43:05] uksio: has joined #RubyOnRails
[16:44:18] Dimik: has joined #RubyOnRails
[16:45:29] orbyt_: has joined #RubyOnRails
[16:46:42] mtkd: has joined #RubyOnRails
[16:47:22] Aherin: has joined #RubyOnRails
[16:58:59] moei: has joined #RubyOnRails
[17:01:57] Aherin: has joined #RubyOnRails
[17:02:52] pbmarcano: has joined #RubyOnRails
[17:03:40] bronson: has joined #RubyOnRails
[17:05:47] jrp93: has joined #RubyOnRails
[17:06:07] alfiemax: has joined #RubyOnRails
[17:12:07] jimms: has joined #RubyOnRails
[17:13:00] desperek: has joined #RubyOnRails
[17:15:05] ResidentBiscuit: has joined #RubyOnRails
[17:24:03] apeiros__: has joined #RubyOnRails
[17:24:47] dionysus69: has joined #RubyOnRails
[17:29:42] jimms: Having a weird environment issue in the console and not sure if it's affecting my tests: https://gist.github.com/JimmStout/f1b76256a2eda6f739eb5b2f467deb4c
[17:30:14] jimms: I'll throw it up on stackoverflow if no one has any ideas.
[17:37:07] jimms: Okay, I ate a walnut, received a bunch of brain juice, and realized it's 'rails c [env] [options]' and not 'rails c [options] [env]'
[17:37:58] jimms: Still doesn't explain why 'Rails.env == "test"' in both cases, but I got different DBs
[17:42:03] jimms: Anyway, thanks to anyone who looked at it!
[17:43:23] ResidentBiscuit: has joined #RubyOnRails
[17:47:05] dviola: has joined #RubyOnRails
[18:02:07] conta: has joined #RubyOnRails
[18:04:20] bronson: has joined #RubyOnRails
[18:09:49] dogweather: has joined #RubyOnRails
[18:12:45] thejamespinto: has joined #RubyOnRails
[18:25:43] rafaeldelucena: has joined #RubyOnRails
[18:27:03] jrp93: has joined #RubyOnRails
[18:32:34] dionysus69: has joined #RubyOnRails
[18:33:10] [spoiler]: has joined #RubyOnRails
[18:40:29] workmad3: has joined #RubyOnRails
[18:41:52] dogweather: has joined #RubyOnRails
[18:43:10] Dimik: has joined #RubyOnRails
[18:51:28] mtkd: has joined #RubyOnRails
[18:52:58] dogweather: has joined #RubyOnRails
[18:57:28] ResidentBiscuit: has joined #RubyOnRails
[18:58:36] ResidentBiscuit: has joined #RubyOnRails
[19:01:20] conta: has joined #RubyOnRails
[19:02:19] dogweather: has joined #RubyOnRails
[19:02:30] mices: has joined #RubyOnRails
[19:05:02] bronson: has joined #RubyOnRails
[19:09:15] xaviergmail: has joined #RubyOnRails
[19:17:14] roshanavand: has joined #RubyOnRails
[19:17:14] dogweather: has joined #RubyOnRails
[19:18:51] zigzig: has joined #RubyOnRails
[19:27:37] darkhanb: has joined #RubyOnRails
[19:29:26] ResidentBiscuit: has joined #RubyOnRails
[19:31:51] dogweather: has joined #RubyOnRails
[19:46:15] dogweather: has joined #RubyOnRails
[19:48:05] alfiemax: has joined #RubyOnRails
[20:05:40] dogweather: has joined #RubyOnRails
[20:12:30] za1b1tsu: has joined #RubyOnRails
[20:16:47] camfowler: has joined #RubyOnRails
[20:19:47] dogweather: has joined #RubyOnRails
[20:22:12] zigzig: has joined #RubyOnRails
[20:30:27] desperek: has joined #RubyOnRails
[20:34:40] dogweather: has joined #RubyOnRails
[20:39:27] ahrs: has joined #RubyOnRails
[20:41:16] workmad3: has joined #RubyOnRails
[20:43:43] desperek: how can i put contents of an array to an array instead of an array to an array in map?
[20:43:54] desperek: sorry, wrong channel
[20:44:37] lupine: foo = [a, b, *array]
[20:44:41] lupine: or array.concat(other_array)
[20:45:47] desperek: i found solution with push
[20:46:34] dogweather: has joined #RubyOnRails
[20:47:48] desperek: nawt working ;-;
[20:47:53] desperek: lupine, i have a map so
[20:49:35] desperek: lupine, it appears that i have an array with one item
[20:50:14] lupine: maybe you can illustrate with an example
[20:52:50] darkhanb: has joined #RubyOnRails
[20:56:01] mtkd: has joined #RubyOnRails
[21:00:34] desperek: my devise doesnt redirect where i want it to
[21:02:22] desperek: raaaaghhrrr
[21:09:08] jackhum: has joined #RubyOnRails
[21:13:58] desperek: https://github.com/plataformatec/devise/wiki/How-To%3A-Redirect-to-a-specific-page-on-successful-sign-in-and-sign-out
[21:14:01] desperek: that doesnt really help
[21:17:14] Radar: GOOD MORNING
[21:17:27] Radar: helpa is going down for maintenance for ~1hr
[21:19:33] desperek: zaibitsu, do you know how to into devise?
[21:29:59] defsdoor: has joined #RubyOnRails
[21:30:32] mnms_: has joined #RubyOnRails
[21:32:22] mnms_: Is there any way to add readonly attribute to activerecord model which will be serialized?
[21:36:23] jottr: has joined #RubyOnRails
[22:02:25] helpa: has joined #RubyOnRails
[22:02:36] Radar: !botsnack
[22:02:36] helpa: Nom nom. Thanks, Radar!
[22:04:52] helpa: has joined #RubyOnRails