Skip to content

Instantly share code, notes, and snippets.

@rwarbelow
Created July 17, 2017 16:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwarbelow/b4b78d8fca9dfd7ad9051844854809c9 to your computer and use it in GitHub Desktop.
Save rwarbelow/b4b78d8fca9dfd7ad9051844854809c9 to your computer and use it in GitHub Desktop.

Use what you know about Ruby, Rails, MVC, sessions, etc. to create the following pieces of functionality:

  1. A user who already exists in the database can log in using a username/password combination that they enter in a form. They should know that they are logged in because something like "Welcome, Rachel!" should appear at the top of every page they visit.

  2. A user who already exists in the database and is already logged in should be able to log out. They should know that they are logged out because their welcome message will no longer appear at the top of every page they visit.

  3. Users should have many jobs, and a job should belong to a user. Therefore, when a user visits any jobs listing, they should only see jobs associated with them. They should not be able to see, edit, or delete any jobs that are not associated with their account.

  4. A user who does not exist in the database should be able to create an account through a form that gathers any necessary user information. Once they create an account, they should see a welcome message with their name on the top of every page they visit.

  5. A user can either be of type "admin" or "default". If the user is an admin user, they should be able to see/edit/delete categories. If the user is a default user, they should not be able to edit or delete categories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment