- Implement authentication into a rails application
This homework assignment requires that you build upon your existing blog app (from the prior homework assignment)
-
Add a users model to your blog and add logic that allows users to login (and logout) of the application (use the
has_secure_passwordmethod covered in class). -
In your layout file, display the logged-in user's email address (only if someone is logged in). Display a link that allows a user to log in if no user is currently logged in.
-
Add logic that only allows non-logged-in users to view an index (list) of posts and authors.