Sawan T. wrote in post #972932: > Marnen Laibow-Koser wrote in post #972926: >> Sawan T. wrote in post #972924: >>> Hi I have couple of issues with my application. I have an app checked >>> out from a repository on to my local machine. rake commands like rake >>> db:create and rake db:migrate and gem list, gem install are working with >>> the app but not any other commands like rails generate scaffold User >>> username:string, rails server, rails console.... >>> >>> following is the error >>> >>> Usage: >>> rails new APP_PATH [options] >> >> Hmm. Is the app Rails 3 or Rails 2? If you don't know, try going to >> the app root directory and typing script/about (at least, this works for >> Rails 2 apps). >> >> Best, >> -- >> Marnen Laibow-Koser >> http://www.marnen.org >> [email protected] > > "Hi Marnen thanks for the reply. I know the application version is 2.3.5 > and it is mentioned in my environment.rb file
Then there's your problem. The syntax of the rails command changed between versions 2 and 3. The usage message you provided comes from version 3. So...you've got Rails 3's command-line script, and a Rails 2 application. Do you have the Rails 2.3.5 gem available at all? (Check gem list rails and the vendor/rails directory in your app.) > and even when I tried to > do as you said"app root directory and typing script/about" it did not do > anything but gave the same error message like previous. I forgot to tell > you that I'm working on windows machine.. That's a problem right there. If you can work on a Mac or other *nix box, do. If not, download Virtual Rails. And I highly recommend using RVM (if you're on *nix) to give this application its own gemset. (If you *must* work on Windows, I understand pik is similar.) > its weird because applications > I have created on my local machine using rails new myapp works and all > the other commands work with myapp.. I can create new controller new > model or even add a column to the existing migration table etc..." Right. Because those are Rails 3 apps. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

