Question on learning rails

Hi guys,

I am planning to learn rails soon. But I want a solid understanding of
rails.
So my question is learn tutorial at Ruby on Rails websites or read the
Rails book or do
both?