'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.


Related to : 'rails' command creates directory with /vendor/rails which uses wrong version of rails
Rails application starts with wrong rails version
Programming Languages

I'm trying to upgrade a Rails 2 application to Rails 3.


rails -v

outputs Rails 3.0.0.rc -- so, that part's good.


But...


When I do:


rails server

I just get the help


So I tried


script/server

and I get:


=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000

I've done a global replace in the application on '2.3.2' but it STILL says it's a 2.3.2 application! Why is that???


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

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.


RVM & Rails 3 - rails command fires error: Is a directory
Programming Languages

I installed Rails 3 by following this gist: http://gist.github.com/296055


But when I try "rails" in terminal I get the following error:


/Users/yves/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/rails: Is a directory - /Users/yves/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.0.0/lib/rails (Errno::EISDIR)
from /usr/bin/rails:19:in `load'
from /usr/bin/rails:19

Any ideas?


UPDATE


Ok, I figured out something. I can run the correct rails by going directly to the right executable:
/Users/yves/.rvm/gems/ruby-1.9.2-head/gems/rails-3.0.0/bin/rails


Unable to update rails version even by using gem update rails command
Programming Languages

I am trying to build ROR application for which I wrote rails fist_app command in terminal. I didn't find gemfile in folder fist_app. When goggled, found Stackoverflow answer for this problem which suggest to update rails.


But when I update rails version it shows nothing to update. Here is a screen-shot.


Please suggest some solution for this problem. Thanks


why run rails command from an rails application directory and non-rails directory differs?
Programming Languages

a silly question:


when i run rails in an rails app , it shows


Usage: rails COMMAND [ARGS]
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
.....

but outside from rails app, it shows:


Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
.....

why ?


Using Rails Composer, getting error "-bash: rails: command not found" using "learn-rails" gemset
Programming Languages

I'm using Nitrous on windows 7, and trying to use RailsComposer following "Build ‘Learn Rails’ in Less Than Five Minutes" of the "learn-Rails" book.

The book tells:

Use the “learn-rails” gemset we created earlier:

$ rvm use ruby-2.1.3@learn-rails

and then,

$ rails new foobar-kadigan -m
https://raw.github.com/RailsApps/rails-composer/master/composer.rb

I have this error:

-bash: rails: command not found



HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .