Learn

Many web apps let users sign up for a new account and log in and out of their accounts. Together, signing up, logging in and logging out make up an authentication system.

Let’s create an authentication system for a photosharing website built with Ruby on Rails.

If you’re new to Rails, we recommend you do our introductory Rails course first.

Instructions

1.

We’ve provided a Rails app to get you started. Let’s take a look - first install the gems in the Gemfile.

$ bundle install
2.

Next start a Rails development server.

$ rails server
3.

Then visit http://localhost:8000 to see a list of all albums.

Click on an album to see the photos inside it.

How can we add an authentication system to this app? Click Next to learn more.

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?