I have google I found that by specifying rails _2.3.10_ new demo will
help but is not working instead it creating \
the ‘new’ command did not exists in rails before rails 3, back then
there
was a different script for generators
script/generate controller
is now
rails g controller
so back then the ‘rails’ script was only for making apps, now it accepts
commands like generate, destroy and more. If you want to see who to use
it
in rails 3 check out this link
I have google I found that by specifying rails _2.3.10_ new demo will
help but is not working instead it creating new app in the name “2.3.10”
I don’t remember how to do it on rails 2 (the method you have tried is
for rails 3), but I think if you type
rails -h
it will show you all the switches, one of which should be for
specifying the version.
Ideally you should not be using rails 2 for new applications however.