Rails Tutorial (http://ruby.railstutorial.org/ruby-on-rails-tutorial-book) teaches you to do all those things and more. More importantly it is absolutely free. I'm just pointing it out as I wasn't sure whether you were referring to another book when you mentioned "Rails 3 Tutorial" as your next step.