Question : Windows Generate problems

Hi,
I'm completely new to Ruby but good with Windows and VB.
I downloaded and installed Instant Rails yesterday.
The tutorials I'm learning from are in Mac on 1.8.4 and I'm on Windows Vista 1.8.6
I have everything up and running - the www.mycookbook.com works
Added paths etc

In my tutorial I need to generate a controller and an action and it says:
script/generate controller Say
windows says it can't find anything to run called "Scripts".
On EE it said use:
ruby script/generate controller Say
I get
ruby: No such file or directory -- script/generate (LoadError)
So, how do you generate a controller in Windows?
Thanks

Answer : Windows Generate problems

One other thing to know is that a rails app will use the system version UNLESS you do a "freeze".  A freeze will actually copy the rails files to /vendor/rails so that you're locked to that version until YOU decide to update it.

First, pick a release that you want to freeze to (a list at http://svn.rubyonrails.org/rails/tags/)

Then, use the freeze rake command:
> rake rails:freeze:edge TAG=rel_X-X-X

It'll take a bit to copy all the files for that version, but then you can work with rails on an older version.

And yes, Rails is a fast-moving target!  Tutorials go out of date quickly.

Glad you got it working!
Random Solutions  
 
programming4us programming4us