#RubyOnRails - 20 August 2019
« Back 1 day Forward 1 day »
[10:22:27] randohinn: I've been trying out rails 6 and seem to hit ActionController::InvalidAuthenticityToken all the time, when trying to build out my login session contoller, following https://www.railstutorial.org/book ch6-9 :/
[10:36:47] ^amra: I try to convert TGA image to PNG with imagemagick and all done, but I need to replace alpha channel mask to another different color, red for example
[10:56:55] randohinn: Authenticity Token is passed... how can it be wrong -.- https://imgur.com/a/qfZOHhh
[11:01:09] randohinn: The controller methiod it errors out on https://paste.ubuntu.com/p/XtC35bm9hm/ and the helper where login and remember are from: https://paste.ubuntu.com/p/YsDB3kshVv/
[11:08:26] GreekFreak: Hi all. I am trying to use ActiveStorage in my engine (not the parent app). The ActiveStorage 5.2.3 gem exists in the Gemfile.lock of my engine, and I have added `require "active_storage/engine"` in my engine.rb file, however running `rails active_storage:install` gives me an error that it does not recognise the rake task. Any advice on how to get ActiveStorage to work in an engine?
[11:41:06] jlebrech: my keeps getting gateway error and passenger is stopped, was given a shutdown signal. in 6.0.2, didn't have that issue with the previous version. has anyone had a similar issue?
[13:56:23] regedit: how can i implement human name search functionality? ex. searching for "Blake D. Brooks" will bring up ranked results such as "Brooks, Blake Davis" then "B. D. Brooks" then "Blake Brooker" etc.
[13:57:06] regedit: should RDBMS be used for such functionality? or something like elasticsearch? other?
[17:54:12] JackT: Hey guys, newbie here and I'm kinda stuck with rails 6, maybe anyone could give me a hand?
[17:55:42] JackT: i'm running rails with passenger and apache, already set "config.hosts = nil" in my environments files but I'm still getting the Blocked host error.. any ideas?
[17:58:05] JackT: I have tried config.hosts << "hostname.com", config.hosts = nil, and config.hosts.clear so far and still nothing
[18:01:29] JackT: Blocked host: ribi.clTo allow requests to ribi.cl, add the following to your environment configuration:config.hosts << "ribi.cl"
[18:03:53] havenwood: JackT: Are you editing `config/environments/production.rb` to add the `config.hosts <<`?
[18:04:46] JackT: tried production.rb and development.rb and yes inside the block right after the Rails.application.configure do
[18:08:04] havenwood: JackT: And you put the `config.hosts <<` in your `config/environments/development.rb` file inside the block?
[18:09:28] JackT: is there anyway to log the errors in a file even when the app is not being loaded?
[18:15:16] JackT: lol ok give me a minute please, I'm also getting a No matching DirectoryIndex error from apache
[18:26:22] JackT: -Indexes directive in the apache site conf file throws a 302 error and the app thinks it's because of the config.hosts directive
[21:42:53] hnanon: This returns cards that are not deleted: @cards = @subscription.cards.where(deleted: [false, nil])