I needed the new function in ActiveStorage to resize_to_fill so I upgraded to Ruby 2.5.1 and Rails 6.
ruby \'2.5.1\' gem \"rails\", github: \"rails/rails\"
Simple solution:
Add this line to config/environments/development.rb
config/environments/development.rb
config.hosts << /[a-z0-9]+\.ngrok\.io/
Restart your rails server and it will work