Rails 3.0 bundle
"rails new app" command is g开发者_Python百科enerating two rails applications namely "new" and "app" but both of them doesn't contains Gemfile, due to which I am not being able to run "bundle" command by changing current directory to either of the applications. I am using "rvm use 1.9.2" command to have ruby 1.9.2 and the more "gem list" command also shows bundle and bundler.
so any help .
You're probably using a old Rails2 "rails" binary.
Give rails --version
a try.
If you have multiple versions of Rails installed you'll have trouble with which binary is being used.
Check if you have both 2.3.x
and 3.0.x
installed by running gem list
.
If you need both versions, you'll want to create gemsets for each rails version in rvm. Then you do something like rvm use 1.9.2@rails2
or rvm use 1.9.2@rails3
to specify which gemset you want to use.
精彩评论