RailsCasts Pro episodes are now free!

Learn more or hide this

Gustavo Beathyate's Profile

GitHub User: goddamnhippie

Site: goddamnhippie.com

Comments by Gustavo Beathyate

Avatar

If you use Heroku, it makes sense to use foreman in development. If you do that, you can put all your config vars in a .env file.

https://github.com/ddollar/foreman/blob/master/lib/foreman/cli.rb#L134

Avatar

You can also pass other options such as form in the initializer to override the login form. Like this:

provider :identity,
    form: lambda { |env| SessionsController.action(:new).call(env) },
    on_failed_registration: lambda { |env| UsersController.action(:new).call(env) }