Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm an experienced developer with .NET, and understand core computing concepts well (OOP, design patterns, etc) but would like to also learn rails.

Is there a book out there that's the de-facto standard for describing best practices, design methodologies, and other helpful information on Ruby on Rails? What about that book makes it special?

share|improve this question

closed as off-topic by gnat, Dan Pichelman, MichaelT, thorsten müller, mattnz Sep 23 '13 at 1:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – gnat, Dan Pichelman, MichaelT, thorsten müller, mattnz
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Do you know Ruby? As I understand Rails is a framework for Ruby, similar as Zend is a framework to PHP. Although, I may be completely wrong ;) If that is true, then I'd say probably look into some Ruby books first, perhaps someone here could recommend a good one. Unless people learn Ruby and Rails hand in hand... –  Josh Dec 17 '10 at 15:00
2  
I had zero knowledge of Ruby before I started creating a Rails website. Ruby is so natural and intuitive that there's scarcely any point in studying it in isolation. –  Adam Crossland Dec 17 '10 at 15:17

6 Answers 6

up vote 12 down vote accepted

Agile Web Development with Rails will bring you up to speed at a relatively rapid pace.

For learning the ins and outs of the Ruby language itself, I found Programming Ruby 1.9 helpful.

Between those two books you'll know what you need to know to get going.

If you are looking for free and online, Ruby on Rails Tutorial isn't bad at all.

share|improve this answer
    
Agile Web Development is exactly what I was going to recommend. It was the only reference that I used (aside from the web, obviously) when I was creating a web site in Rails. –  Adam Crossland Dec 17 '10 at 15:18
    
+1, agile web development is the book to read on this topic, since it is co-authored by DHH (who wrote Rails). Start there to get a solid foundation. –  Justin Ethier Dec 17 '10 at 15:32
    
You will probably want to start off with Rails 3.0, so make sure you get the right edition of any book on rails. –  Bryan Rehbein Dec 17 '10 at 16:53
    
@Redbeard 0x0A - the 4th Edition of Agile Web Development, which I linked, is the Rails 3.0 edition. –  justkt Dec 17 '10 at 17:11
    
Also having experience with .NET, I started Rails and read about 5 books. Agile Web Development is the best. The other great resource is StackOverflow. –  B Seven Oct 1 '11 at 23:59

I would recommend The Rails 3 Way. I cannot say enough good things about it. It covers every part of Rails, including many of the essential gems you need to know about. And it works both as a read for a beginner and a reference guide for the intermediate Rails developer.

If you're feeling flush, I would also throw in The RSpec Book, for a good grounding in how to write in a BDD way, which I personally think is a near-essential for Rails devs.

share|improve this answer

I would recommend The Rails 3 Way by Obie Fernandez if you're really interested in learning Rails in depth, and learn how the 'magic' happens behind the scenes.

If you'd like the learn just for the sake of it or create a simple app, Agile Web Development with Rails by Sam Ruby, Dave Thomas & David Heinemeier Hansson should work out just fine.

share|improve this answer

I recommend the online Rails Tutorial book.

I also have a copy of Ruby on Rails for Microsoft Developers and it's been pretty helpful in providing an overview of Rails, drawing parallels with ASP.NET, and giving a good introduction to web development in general.

share|improve this answer

Once you've grasped the basics of creating web applications with Rails and are looking for further reading, I highly recommend you check out both the RSpec Book and The Well-Grounded Rubyist.

The former gives a great overview of behaviour-driven development with an eye to Rails, and is worth reading because the Ruby community has a strong emphasis on testing and most people are using the tools described in the RSpec book.

The latter is the best book out there for getting into a Ruby mindset and developing your knowledge of the language from 'the pretty guts behind Rails' to understanding both the guts and the ethos of the language, which approaches many things with a very different perspective from C# and similar languages.

share|improve this answer

I found the Head First book on Rails to be very useful. I come from a .NET background as well and I was able to follow the book with very little knowledge of Ruby and no knowledge of Rails.

http://www.amazon.com/Head-First-Rails-Learners-Companion/dp/0596515774

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.