开发者

'rails' command creates directory with /vendor/rails which uses wrong version of rails

For some reason when I run rails command, it installs 2.2.3 version of Rails in /vendor/rails and webbrick uses that version instead of 2.3.5 which is installed as a gem.

If I delete that, then it uses the right directory. I remember using git submodule once, but I don't think that has anything to do with开发者_如何转开发 this.

How can I correct this? Thanks

Edit:

I never installed Rails 2.2.3. Although I do vaguely remember using git submodule, if that helps anyone.


Check your local gems, and your system gems. Perhaps, you have it 2.2.3 installed in your user's bin.


Try running:

rake rails::unfreeze

What's happening is 2.2.3 is getting frozen into your vendor directory.

As to why that's happening, I'm not sure. Be sure that you actually have 2.3.5. And unfreezing/refreezing should fix it.

rake rails::freeze::gems


does the rails gem get vendored at the same time you create the app? that seems very strange if so.

if you are on linux or mac then it's possible you have something in your bash profile that's overriding the rails command. to be honest it sounds like a rails template is being run when you create your app....

failing that is it perhaps possible that you have something like 'instant rails' running on your machine and it's taking control instead of the rails gem?

very strange. what OS are you on? sometimes it helps to try creating a new user profile and seeing if you get the same problems when you login to that account....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜