Create sessions controller. Add three basic methods to sessions controller. Construct basic view to pass the minimal test.
Add remember_token attr to user model. Include SessionHelper in all controller to persist the cookie. Add flash message for invalid signin.:
Add remember token to the model. Save it in the Ruby cookie. Also implement sign_in helper method.
Include Bootstrap JavaScript library. Check user's signin status to change the application layout.
Auto signin user after signup
Fill in the destroy action in session controller with helper functions. Also add test for successful sign out.
Add Cucumber test for authentication. Then add RSpec metcher to refactor the test code.