Ruby on Rails Tutorial, 2nd edition
news.railstutorial.org
news.railstutorial.org
The only problem I ran into is that when using spork and guard, the test environment didn't always get reloaded (not sure if I recall the exact conditions in which that happened) and so I got some unexpected errors/test failures on occasion (resolved by restarting spork/guard). There's a stack overflow entry on this, iirc.
One word of advice when using Spork: after changing a file included in the prefork loading (such as routes.rb), you will have to restart the Spork server to load the new Rails environment. If your tests are failing when you think they should be passing, quit the Spork server with Control-C and restart it.
That doesn't mean you won't end up on Stack Overflow, though. I end up there all the time myself, and I wrote the damn thing.
If that was eliminated, than spork would be an absolute no brainer.
By the way, I finally broke down and got an iPad (way overdue, I know), which finally motivated me to fiddle with the Rails Tutorial PDF fonts. The result (14pt for the main text and ~10pt for tables and code samples) was a bit tricky to achieve, but it looks good on a Kindle and great on an iPad. Someday I may go to the trouble of making ePub and mobi formats as well, but for now the PDF is smokin'.
Michael, I was looking through the online version of the book and I couldn't find any indication that I was reading the 2nd edition. I apologize if I simply missed it, otherwise I think it might be worthwhile mentioning in the preface that what we're looking at the 2nd ed.
You could add something like this:
Ruby with Cygwin (Windows)
Another option on Windows is install Ruby under Cygwin. If you are already using Cygwin then installing RVM and Ruby is done the same way you would do it on Linux/OSX. If you do go the Cygwin route then throughout the rest of the book just follow the Linux/OSX examples. Here are the steps:
First, make sure you have the following Cygwin packages installed: git, readline, wget, patch, make, gcc, libsqlite3-devel, libxml2-devel, libxslt-devel.
Then install RVM: curl -L get.rvm.io | bash
Then just follow the steps listed in the next section to install Ruby.
I think that experience of reading such "Learn by example" books would be even better if:
* Each chapter or section are issues on github.
* Examples are commits, associated with the issue.
* Extensive use of labels as book index.
Would you think this book and screencasts would work for my skill level or should I use another book to learn more about Ruby?
Although as a person with substantial programming experience, I would recommend you to have a look at Chapter 4 first. The first few chapters deal with code examples that are not meant to be understood (at that point), but knowing the "Ruby way" will help you to figure out most of it. The book also is more holistic about Web Development; Rails, although being the main focus, isn't all that it covers. Version Control (GIT) and Deployment are explored as well. Also, the author having beginners in mind, goes through the terminal stuff a bit slower.
You might find yourself skimming few pages along the way, but the book does an extremely good job at getting you to the point where you can and know what you want to do next.
Fully updated for Rails 3.2 and Ruby 1.9
All-new design using Twitter's Bootstrap
Coverage of the new asset pipeline, including Sprockets & Sass
Behavior-driven development (BDD) with Capybara & RSpec
Better automated testing with Guard & Spork
Roll your own authentication with has_secure_password
An introduction to Gherkin & Cucumber
I've also converted to a two-pane editor setup using Sublime Text 2, which is especially nice for TDD. See http://youtu.be/REuxSzMtcJA for a sample video.