« Back to channel list

#RubyOnRails - 15 February 2019

« Back 1 day Forward 1 day »
[00:05:54] quazimodo: has joined #RubyOnRails
[00:06:07] orbyt_: has joined #RubyOnRails
[00:12:26] conta: has joined #RubyOnRails
[00:28:15] gravitation: has joined #RubyOnRails
[00:46:50] octos: has joined #RubyOnRails
[00:47:00] sevenseacat: has joined #RubyOnRails
[00:47:37] Puffball: has joined #RubyOnRails
[01:10:55] NotSatoshi: has joined #RubyOnRails
[01:13:34] NotSatoshi: Rake doesn't like one of my gems. I can install the gem fine, and it works well on Ruby, but I get 'cannot load such file' when I try to run migrations or 'rails s'
[01:13:52] sevenseacat: can you gist the error you're getting
[01:14:42] NotSatoshi: The gem is called 'reddit/base'..... and i am including it as 'reddit' or 'reddit-base'.....
[01:15:08] NotSatoshi: and the error is '/home/drake/Projects/InfoSpider/vendor/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': cannot load such file -- ruby_reddit_api (LoadError)
[01:17:28] sevenseacat: that gem doesn't appear to require that file that I can see
[01:18:23] MrJesse: has joined #RubyOnRails
[01:18:28] sevenseacat: are you including that file somewhere?
[01:18:53] NotSatoshi: I don't think so
[01:19:19] sevenseacat: can you check?
[01:19:53] NotSatoshi: I guess with a grep?
[01:20:13] sevenseacat: or a search in your text editor
[01:20:51] MrJesse: Hello. I need help. :( I'm totally new to rails, inherited a project from another developer. When the client calls an API, I see this in the console: ActionView::MissingTemplate, but I'm pretty sure the template is there. I've spent a couple hours reading and googling, and I'm totally stuck. :(
[01:20:57] NotSatoshi: hmm... it is in config/boot
[01:21:42] orbyt_: has joined #RubyOnRails
[01:21:48] NotSatoshi: sevenseacat: thanks.... let me look a little deeper
[01:21:52] sevenseacat: MrJesse: can you gist the error you're getting?
[01:23:32] MrJesse: sevenseacat: https://gist.github.com/jessemcdowell/c85d58fd7d8f58582e860357ed783c1e
[01:23:59] MrJesse: Also, the template is a jbuilder template
[01:24:28] sevenseacat: so you have a file at app/views/v1/volunteers/show.json.jbuilder ?
[01:26:46] MrJesse: the template is doing something with a partial. I thought it might have something to do with that, but commenting out everything in the template didn't help either
[01:26:53] quazimodo: has joined #RubyOnRails
[01:27:24] sevenseacat: sure there's no typos in the filename, eg. volunteer vs volunteers ?
[01:28:16] MrJesse: I have tripple checked. also, this code is already deployed and working. So it seems like it might have something to do with my hosting environment
[01:28:30] sevenseacat: so where isnt it working?
[01:28:55] MrJesse: I'm running it on my computer
[01:41:56] blackmesa1: has joined #RubyOnRails
[01:42:44] brycesenz: has joined #RubyOnRails
[01:47:27] ariedler: has joined #RubyOnRails
[01:47:36] ariedler: has joined #RubyOnRails
[01:47:41] blackmesa1: has joined #RubyOnRails
[01:48:04] conta: has joined #RubyOnRails
[02:05:53] blackmesa1: has joined #RubyOnRails
[02:12:56] valadares: has joined #RubyOnRails
[02:18:56] conta: has joined #RubyOnRails
[02:28:24] orbyt_: has joined #RubyOnRails
[02:34:16] Saukk: has joined #RubyOnRails
[02:46:28] GodFather: has joined #RubyOnRails
[02:59:52] orbyt_: has joined #RubyOnRails
[03:38:53] maryo: has joined #RubyOnRails
[03:57:08] oosehedaiphequag: has joined #RubyOnRails
[03:58:13] orbyt_: has joined #RubyOnRails
[04:00:28] oosehedaiphequag: has left #RubyOnRails: ()
[04:09:03] braincrash: has joined #RubyOnRails
[04:22:53] v01d4lph4: has joined #RubyOnRails
[04:27:57] conta: has joined #RubyOnRails
[04:28:28] pedahzur: has joined #RubyOnRails
[04:35:25] barhum2013: has joined #RubyOnRails
[04:58:09] barhum2013: has joined #RubyOnRails
[05:25:33] Linuus`: has joined #RubyOnRails
[05:29:02] conta: has joined #RubyOnRails
[05:45:00] gambl0re: has joined #RubyOnRails
[05:56:59] Tempesta: has joined #RubyOnRails
[06:01:27] Forager: has joined #RubyOnRails
[06:13:41] srinidhi: has joined #RubyOnRails
[06:20:21] Linuus`: Is there any documentation for writing ActiveJob backends? What interface you need to conform to etc.
[06:20:32] Linuus`: has left #RubyOnRails: ("WeeChat 2.1")
[06:20:54] Linuus: has joined #RubyOnRails
[06:23:05] Linuus: Oops, I accidentally closed my client. Not sure if I posted this already:
[06:23:08] Linuus: Is there any documentation for writing ActiveJob backends? What interface you need to conform to etc.
[06:25:40] conta: has joined #RubyOnRails
[06:29:02] tdy1: has joined #RubyOnRails
[06:50:51] DTZUZO: has joined #RubyOnRails
[06:52:23] Forager: has joined #RubyOnRails
[06:55:18] sevenseacat: has joined #RubyOnRails
[07:06:40] Linuus: has joined #RubyOnRails
[07:14:58] tdy2: has joined #RubyOnRails
[07:16:26] Linuus: has joined #RubyOnRails
[07:17:50] lexileo: has joined #RubyOnRails
[07:52:09] dionysus69: has joined #RubyOnRails
[08:09:10] skryking: has joined #RubyOnRails
[08:21:24] tdy3: has joined #RubyOnRails
[08:21:32] uks: has joined #RubyOnRails
[08:39:53] fox_mulder_cp: linuus_ first QA: why you need yor own subscriber implementation? we have a some popular, known and very tested AJ clients and systems, like resque
[08:47:11] tbuehlmann: they're gone
[09:10:33] fox_mulder_cp: i'm glad to know, that my project come to real world production... but
[09:10:36] fox_mulder_cp: but I'm a little afraid - financial responsibility
[09:13:50] mikecmpbll: has joined #RubyOnRails
[09:14:21] blackmesa1: has joined #RubyOnRails
[09:24:49] kapil____: has joined #RubyOnRails
[09:31:20] lxsameer: has joined #RubyOnRails
[09:33:11] deathwishdave: has joined #RubyOnRails
[10:23:42] mostlybadfly: has joined #RubyOnRails
[10:28:14] kidPalooma: has joined #RubyOnRails
[10:29:30] kidPalooma: Hello, how do I configure a general CORS policy for activestorage attachments? I have a use case where I need to open ttf files from a headless browser and they get blocked by AS's policy
[10:36:40] tbuehlmann: there's the rack-cors gem, but shouldn't the domain be the same?
[10:44:05] kidPalooma: tbuehlmann: i am requesting the fonts from a file:// path
[10:44:12] kidPalooma: so no domain there
[10:45:11] nowhere_man: has joined #RubyOnRails
[10:48:37] kidPalooma: nvm, I solved by passing a different config to the browser
[10:53:27] Linuus: has joined #RubyOnRails
[10:55:39] conta: has joined #RubyOnRails
[11:15:08] deathwishdave: has joined #RubyOnRails
[11:20:32] markoong: has joined #RubyOnRails
[11:25:59] Ergo: has joined #RubyOnRails
[11:27:45] v01d4lph4: has joined #RubyOnRails
[11:35:16] Linuus: has joined #RubyOnRails
[12:02:10] bender_unit: has joined #RubyOnRails
[12:50:20] tdy4: has joined #RubyOnRails
[12:57:40] tdy: has joined #RubyOnRails
[13:10:53] davidh38: has joined #RubyOnRails
[13:25:03] davidh38: has joined #RubyOnRails
[13:29:04] NeXTSUN: has joined #RubyOnRails
[13:44:50] catbusters: has joined #RubyOnRails
[13:45:49] catbusters: Anyone using Grape?
[13:54:51] Technodrome: has joined #RubyOnRails
[14:34:08] krawchyk: has joined #RubyOnRails
[14:34:45] DTZUZO: has joined #RubyOnRails
[14:54:14] status402: has joined #RubyOnRails
[15:03:03] maryo: has joined #RubyOnRails
[15:08:47] valadares: has joined #RubyOnRails
[15:10:15] skryking: has joined #RubyOnRails
[15:14:59] prestorium: has joined #RubyOnRails
[15:18:26] blackmesa1: hi all. I have this callback which seems to work prety fine
[15:18:31] blackmesa1: before_save :update_event, if: :start_time_changed? or :end_time_changed?
[15:19:06] blackmesa1: does it look okay for you or should I use a Proc.new
[15:19:12] blackmesa1: or || instead of or
[15:19:31] blackmesa1: I have seen callbacks that either use "Proc.new" in their ifs
[15:28:12] conta: has joined #RubyOnRails
[15:31:47] djgraham: has left #RubyOnRails: ()
[15:32:34] Psy-Q: wha, we have ActiveJob now?
[15:32:40] Psy-Q: how times change
[15:43:44] maryo: has joined #RubyOnRails
[15:44:17] Linuus: has joined #RubyOnRails
[15:44:58] Saukk: has joined #RubyOnRails
[15:55:07] Souvent22: has joined #RubyOnRails
[16:02:11] Linuus: has joined #RubyOnRails
[16:10:07] maryo: has joined #RubyOnRails
[16:15:45] Dbugger: has joined #RubyOnRails
[16:16:16] conta2: has joined #RubyOnRails
[16:37:27] whispers: has joined #RubyOnRails
[16:37:44] Linuus: has joined #RubyOnRails
[16:38:42] agent_white: has joined #RubyOnRails
[16:45:44] tdy: has joined #RubyOnRails
[16:48:54] whispers: Hello! I have in serializer `A` a relation `has_many :users, serializer: B`. In that `B` serializer there is few `has_many` relations. How to include them in the response from `A` serializer? All relations from `B` serializer are simply ignored by `B` serializer respnonse, only `attributes` from `B` serializer are in the JSON response not relations.
[16:51:56] Solifugus: has joined #RubyOnRails
[16:53:57] Solifugus: newbie: I have a ruby on rails app that I did not build this.. How can I start it?
[16:54:50] Solifugus: there is gem and yarn... but no start script in the package.josn
[16:55:43] whispers: ./bin/rails s
[17:01:13] nowhere_man: has joined #RubyOnRails
[17:03:44] krawchyk: has joined #RubyOnRails
[17:04:39] hive-mind: has joined #RubyOnRails
[17:07:46] tdy: has joined #RubyOnRails
[17:16:41] catbusters: has joined #RubyOnRails
[17:24:51] MrCrackPotBuilde: has joined #RubyOnRails
[17:43:32] Linuus: has joined #RubyOnRails
[17:49:19] albus: has joined #RubyOnRails
[17:49:41] albus: Anyone here try running rails on a raspberry pi? I just bought a model 3 and put a fresh installation of rails on it
[17:50:14] albus: created a new app with 'rails new myapp' and when I try to run `rails server` I get a seg fault
[17:50:55] albus: using ruby 2.6.1 and rails 5.2.2
[17:52:09] albus: here's the complete error message + stacktrace + memory dump if anyone's interested
[17:52:09] albus: https://dpaste.de/KsAJ
[17:53:46] orbyt_: has joined #RubyOnRails
[17:53:49] barhum2013: has joined #RubyOnRails
[17:54:17] albus: it's the same result if I try to run an API also `rails new test_api --api; cd test_api; rails server`
[17:55:54] IGnorAND: I see pick is something in ruby 6. I have however been using first. Is there a difference between .limit(1) and .first
[18:00:57] tdy: has joined #RubyOnRails
[18:27:02] Jon30: has joined #RubyOnRails
[18:27:14] Linuus: has joined #RubyOnRails
[18:27:27] Jon30: hey guys, for some reason i am getting "max key length is 1000 bytes: CREATE TABLE `active_storage_attachments`" when trying to run the migration on mysql 5.6
[18:28:18] Jon30: anyway to fix this without upgrading to mysql 5.7?
[18:40:51] Technodrome: has joined #RubyOnRails
[18:46:28] gambl0re: has joined #RubyOnRails
[19:01:18] valadares: has joined #RubyOnRails
[19:06:38] lxsameer: has joined #RubyOnRails
[19:14:38] orbyt_: has joined #RubyOnRails
[19:18:32] ravenousmoose: has joined #RubyOnRails
[19:27:01] orbyt_: has joined #RubyOnRails
[19:28:31] _aeris: has joined #RubyOnRails
[19:33:42] v01d4lph4: has joined #RubyOnRails
[20:12:11] DTZUZO: has joined #RubyOnRails
[20:27:54] superscott: has joined #RubyOnRails
[20:52:38] orbyt_: has joined #RubyOnRails
[20:59:01] Linuus: has joined #RubyOnRails
[21:00:22] Nuck: has joined #RubyOnRails
[21:00:58] Nuck: Does #deliver_later serialize the args or just references to them?
[21:01:29] Nuck: Like, if I want to email a user about something I'm deleting
[21:01:55] tdy: has joined #RubyOnRails
[21:03:57] Nuck: Er, how to put it. I want to email a user when I delete a model. If I call do `Mailer.new(thing).deliver_later; thing.destroy!` in the web process, will it work?
[21:05:17] Nuck: Like, where is the view rendered there? My method calls `render` and I get the `ActionMailer::MessageDelivery`, but am I *actually* rendering right then in the web process?
[21:05:47] Nuck: The docs don't say how much is actually offloaded to ActiveJob by deliver_later
[21:05:51] Souvent22: has joined #RubyOnRails
[21:11:28] conta: has joined #RubyOnRails
[21:20:23] Linuus: has joined #RubyOnRails
[21:25:22] markong: has joined #RubyOnRails
[21:27:44] havenwood: IGnorAND: #pick is implemented as: limit(1).pluck(*column_names).first
[21:30:37] havenwood: IGnorAND: There are several differences between `.limit(1)` and `.first`. Both generate the SQL `'LIMIT 1`. #first also has an implied `ORDER BY *.id` if there's no order and also returns the first object.
[21:31:28] havenwood: IGnorAND: The reason both are used in the #pick implementation, is that you want to limit before plucking, and only then do you want to return the first object.
[21:33:36] havenwood: (#pluck returns an Array, so that's ^ Array#first.)
[21:39:19] mikecmpbll: has joined #RubyOnRails
[21:51:30] Souvent22: has joined #RubyOnRails
[22:07:03] kapil____: has joined #RubyOnRails
[22:08:22] tdy: has joined #RubyOnRails
[22:24:56] orbyt_: has joined #RubyOnRails
[22:30:40] IGnorAND: havenwood: cool, thanks. so there should be no performance penelty for me. i have a default scope with an orde
[22:31:59] davidh38: has joined #RubyOnRails
[22:39:44] IGnorAND: is it possible to create a migration for a view - https://stackoverflow.com/questions/4503632/ruby-on-rails-activerecord-sql-view-into-schema
[23:03:22] tdy1: has joined #RubyOnRails
[23:20:56] Technodrome: has joined #RubyOnRails
[23:52:01] conta: has joined #RubyOnRails