method

force_ssl

force_ssl(options = {})
public

Force the request to this particular controller or specified actions to be under HTTPS protocol.

Note that this method will not be effective on development environment.

Options

  • only - The callback should be run only for this action

  • <tt>except - The callback should be run for all actions except this action