Instant Rails update commands required for examples to work
Brian Jones
3 posts
|
(PDF version B1.5 Aug 18) It looks like Instant Rails must be updated in order for the steps in ch. 6 to work properly. The statements on page 36 make this seem optional when following the examples: ” C:\rails_apps> gem update—system I glossed over this my first pass through the book and got different results and eventually errors when I followed the commands in ch. 6. After updating as instructed on page 36, everything in ch. 6 worked. You might want to just instruct your readers to run the commands rather than suggesting that they do so. For reference, I installed Instant Rails 2.0 for Windows (file name InstantRails-2.0-win.zip ” 2007-12-28 21:08”) as this appeared to be the most current release. Without doing the update commands, this gave me different results for the commands: ruby script/generate scaffold product title:string description:text image_url:string rake db:migrate And this command did not work at all: sqlite3 db/development.sqlite3 “select version from schema_migrations” And I got ‘No route matches ”/products” with {:method=>:get}’ when accessing http://localhost:3000/products for p. 79. Brian |
Michael Matt...
8 posts
|
|
2 posts, 2 voices
