Rails Authentication
Basecoat-styled views for the authentication generator built into Rails 8: sign in, forgot password and reset password.
Preview
Installation
rails generate authentication
rails db:migrate
rake basecoat:install:authentication
To create your first user, open the console:
rails console
User.create(email_address: "email@example.com", password: "basecoat")
exit
What it installs
- Styled
sessionsandpasswordsviews - A split-screen
layouts/sessions.html.erb(also applied to the passwords controller) - A user dropdown (with log out) injected into your application header, shown when
Current.useris set