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\"
The Blocked Host is a new feature of Rails 6. You can add this pattern to your config/environments/development.rb
to have no worries of that in case of dynamic urls
config.hosts << /[a-z0-9]+\.c9users\.io/
Also for ngrok user, just replace above c9users
by ngrok
Source: https://github.com/MikeRogers0/puma-ngrok-tunnel