Marnen Laibow-Koser wrote in post #972937: > 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 >>>> 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.) > > 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]
"I have gem list rails showing me 3.0.3, 3.0.0 and 2.3.5 is it anything to do with your app_config.rb and I dont see any in vendor/rails its all have some plugin folders. I am working with tutorials which needed those rails version and 2.3.5 since my app needs it. I think the rails version will render to the needed Thanks Sawan." -- 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.

