Here's a quick bullet-points reminder of the important concepts from the lecture:
A cleaned-up version of the code from class has been posted to https://github.com/qrohlf/webdev-examples (and tagged with
If you're interested in implementing user login in your final project, I highly recommend reading the
app.rb file from the example app in it's entirety. I've added extensive comments explaining the ins and outs of implementing a simple login system with Sinatra.
This version of the app introduces a few new concepts: Rack sessions, ActiveRecord
has_secure_password methods, and ActiveRecord validations.