Recent Posts by Chuck Hoffman
|
Jun 9, 2008
Chuck Hoffman
2 posts
|
Topic: Agile Web Development with Rails / p. 79, add_test_data.rb I presume we wouldn’t want this migration that deletes all existing Products and inserts a bunch of test ones to run on our production database, right? Shouldn’t there be some test in here to check which database is being messed with and skip this migration if we’re in the production database? Am I missing something? |
|
Jun 5, 2008
Chuck Hoffman
2 posts
|
Topic: Agile Web Development with Rails / Depot with Rails 2.0.2 I wouldn’t characterize it as “rolling back.” Rubygems will keep multiple versions of a gem, so you can have a 2.x and 1.x version of Rails installed on the same machine and work with both. 2.x is still very new and lots of folks are still using 1.x versions of Rails. If you can’t get hold of the 3rd edition, I recommend pressing ahead with AWDWR using a 1.x version; all you need to do is what was described earlier: specify the version to use when you create a new project by adding the extra argument to “rails” at the command line, as the version number surrounded by underscores. This will also place the version to use in the RAILS_GEM_VERSION line of config/environment.rb. You’ll still learn Rails, and then be able to learn what things bits that are different in 2.0 later, especially since you already have it installed. |
2 posts
