Start by working through the tutorial at railstutorial.org. That will
give you a good understanding of the basics of rails. Also look at
the Rails Guides. When working through any tutorial make sure that
the tutorial is for rails 3 and that you have installed exactly the
rails version that the tutorial expects.