Skip to content

firstdraft-projects/msm_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Must See Movies Auth

In this project, we'll practice using the Devise gem to add authentication and authorization.

Our goal is to allow users to bookmark movies that they intend to watch or that they loved. In other words, we need to be able to identify users and tailor the application for them, rather than having the app treat all visitors the same.

Our starting point is the target for the last project, MSM Associations. Now we want to add the following:

  • Make the "Dummy" sign in, edit profile, etc, links actually work; users should be able to register with their email and password. How can we achieve this?
  • Then, users should be able to click a button on a movie's show page to bookmark it.
  • Users should be able to visit a page that shows a list of movies that they have bookmarked.

Devise Guide

Have the Devise Guide open in a tab to refer to as we work together.

Setup

  1. Set up a Cloud 9 workspace as usual.
  2. bin/setup
  3. bin/server and navigate to the live app
  4. Click around and remind yourself what the associations are / how they work.

There are no automated tests or rails grade:all for this project; it's just an in-class introductory exercise.

In this project I've already installed the Devise gem. To generate your first table that has user authentication built in,

rails generate user first_name:string last_name:string
rails db:migrate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages