Best books for starting with Rails [closed]
I work a lot with PHP and have used django/python quite a bit and want to get started with Rails.
Can anyone recommend any good books for Rails to get started with?
Agile Web Development with Rails from Pragmatic bookshelf has always been a very good book to start with Rails. You may need to go through the Programming Ruby book for Ruby.
You should definitely do a little bit of ruby. You have a programmer background, so the basics are pretty obvious, but you should familiarize yourself with blocks/procs/loops/iteration and symbols. After that i'd recommend that Agile Web Development with Rails, or Rails Tutorial by Michael Hartl.
I find Michael Hartl's Ruby on Rails Tutorial to be fantastic (http://amzn.to/pANzzL). Also, if you don't want to spend much money, it's available for free online. He also keeps the online version up to date with any changes in Rails framework (e.g., Rails 3.1, which is very new, has a chapter online that isn't in the print edition).
Also, the previous answers are correct, Rails is a framework, Ruby is a language. That said, I don't think starting with a book on Ruby, then moving on to Rails is the way to go. You can teach yourself what Ruby you need to get by as you learn Rails and then, later on, pick up an actual Ruby book and get a firmer grasp of the language.
To get started with rails:
- Agile Web Development with Rails
- Peepcode screencasts
- Ruby on Rails Tutorial: Learn Rails by Example
- Ryan Bates screencasts
To study about ruby:
- Programming Ruby
- The Ruby Programming Language
精彩评论