I should also point out that there is this on going debate about whether it is better to learn Ruby before diving into Rails, or just learn them at the same time. Personally I tackled them both, since I could plug what I was learning into a web application project. I learn much better by doing.
Hope this helps!