#RubyOnRails - 15 February 2019
« Back 1 day Forward 1 day »
[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: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: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:23:32] MrJesse: sevenseacat: https://gist.github.com/jessemcdowell/c85d58fd7d8f58582e860357ed783c1e
[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: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
[06:20:21] Linuus`: Is there any documentation for writing ActiveJob backends? What interface you need to conform to etc.
[06:23:08] Linuus: Is there any documentation for writing ActiveJob backends? What interface you need to conform to etc.
[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
[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
[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:53:57] Solifugus: newbie: I have a ruby on rails app that I did not build this.. How can I start it?
[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:52:09] albus: here's the complete error message + stacktrace + memory dump if anyone's interested
[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: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
[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: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.
[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: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