Pages / Rails Authentication

Rails Authentication

Basecoat-styled views for the authentication generator built into Rails 8: sign in, forgot password and reset password.

Preview

Basecoat styled sign in page

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 sessions and passwords views
  • 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.user is set