ruby on rails - Filter chain halted as force SSL rendered or redirected -
so app in production has totally crashed message:
filter chain halted #<proc:0x007f766547ea18@/app/vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.1/lib/action_controller/metal/force_ssl.rb:65> rendered or redirected
i've done research online , far seems happen in local dev mode when port lost. i'm not sure why happening in heroku app... context code has not changed, , working fine of 30 minutes ago. i'm using cloudflare, checked bare your-app-name.herokuapp.com
broken same error.
any appreciated!
i got same error on development environment in rails 4.0 (because of controller force_ssl on it).
i solved using thin web server ssl support, so:
- add thin gem
gemfile
on development group:
group :development gem 'thin' end
run bundle install on termnal:
bundle install
start thin ssl support on terminal:
bundle exec thin start --ssl
access page via https on web browser:
the protocol need https @ beginning, otherwise can empty response. (err_empty_response)
https://localhost:3000/
if connection refused (err_connection_refused) you'll need define loopback ip address on server params:
bundle exec thin start --ssl -a 127.0.0.1
you'll privacy error, jus click on advanced , on go localhost (not safe)
- it's done! you'll self-signed https connection on localhost in development mode ;)