RORT: Read Ruby on Rails Tutorial ([RORT]) Chapter 8, “Basic Login”. This chapter covers routes, controllers and actions, reviewing what was demoed in class last week. You will encounter the vaunted
form_for again. And you will for the first time you will see the routes “resources” line. You will finally deploy what you have so far onto Heroku.
As usual I really encourage and ask you to go through the code samples and actually type them in. You will see that it really helps your understanding and will assure your success in this course! Use your resources: the TAs, the class mailing list, stack overflow, google and push through to success! When you are done, go to Latte and answer these warmup questions:
- What does it mean when we say that the HTTP protocol is “stateless.” Why does this pose a challenge for processing authentication?
log_in method has this line:
session[:user_id] = user.id. Explain it.
- How is a logout achieved?
- Are there one or two things you are still confused by? If not, what one or two things were the most memorable about your reading? Deliverable: Do the warmup in Latte and submit by 10am on the day of class.