StimulusReflex + ActiveStorage + Localhost
As it turns out, when you're working with StimulusReflex and ActiveStorage to store Images for a given model, you need to setup default_url_options
in development.rb
to
config.action_controller.default_url_options ={ host: 'localhost', port: 3000 }
otherwise, they will be rendered with www.example.org/
host and won't show properly