Lookout It's Another Noob Question
Doug Casebolt
2 posts
|
I have two of your books the “How to Program” and AWDwR and love them both. Coming from a self taught VBA environment Ruby appears to be a dream come true. I have installed Instant Rails on my WindowsXP 32bit platform and have been sucessfully following along in the book. That is until I tried the code listed at the top of page 77. When I enter in ruby script/generate scaffold product > title:string description:text image_url:string I receive the following error: Gem::SourceIndex#search support for Regexp patterns is deprecated I ran the update methods for both rails and ruby before I started the projects in the book. What have I done wrong or is this an error in the beta of the book? I am guessing it’s something to due with my skills. Thanks for the help! |
Sam Ruby
215 posts
|
While I don’t see how this can produce the error you are getting, the first thing I notice is that the greater than sign is means to be the prompt on the next line, and not something you enter. Try entering the command all on one line without the greater than sign. |
Brent Nordquist
1 post
|
Timely post. On my Mac (Leopard) I got all the way through the Depot application with no problems, but then updated some stuff with “gem”, and now I get the following (on a newly-created application). (I don’t have the ”>”.) $ ruby script/generate scaffold author name:string bio:text $ ruby -v $ gem—version $ gem list—local |
Sam Ruby
215 posts
|
Looks like a change in gem 1.3.0 I’ve verified that this is not fixed on Rails edge. |
Doug Casebolt
2 posts
|
Thank you, I was speeding through to fast and missed the explanation of the command in the text of your book. I deleted the depot directory and started over without the > and this time all I received was the “deprecated” warning. Albeit by accident but glad to have it not be all my doing. Thank you again for repsonding! |
jlvall
1 post
|
Hi there! “deleted the depot directory and started over without the > “ Here you have my configuration: $ ruby -v $ gem—version $ gem list—local Thanks a million! |
James West
73 posts
|
I would just delete the folder and it’s contents then start again. |
7 posts, 5 voices
