'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' command creates directory with /vendor/rails which uses wrong version of rails
by kalfa in 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 ha


why run rails command from an rails application directory and non-rails directory differs?
by ArmHead in 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:


TAGS: rails command from rails application directory
Rails application starts with wrong rails version
by Kevin in 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


TAGS: Rails application starts with wrong rails
Using Rails Composer, getting error "-bash: rails: command not found" using "learn-rails" gemset
27/11/2014 9:30 am by camt in 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

TAGS:
 Using 
 Rails 
 Composer 
 getting 
 error 
 bash 
  
  
RVM & Rails 3 - rails command fires error: Is a directory
by Pepe Araya in 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/a
How can I get rails to not precompile assets in vendor directory?
by tong in Programming Languages

asset:precompiling is taking forever on my app. I pretty much never send assets in the vendor directory directly to user and so I don't need those to be precompiled. They are always included by another file in the app/assets directory.


How can I get the precompiler to ignore assets in


git not responding to my rails vendor/plugins directory
by Excessi0n in Programming Languages

My git works fine in my app, except it doesn't respond to my vendor/plugins/paperclip directory. I can make a change in vendor/plugins/whatever and git status will show it, but not in vendor/plugins/paperclip. My .gitignore file only gas log* and publi


Unable to update rails version even by using gem update rails command
by lync-server-2010 in 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


Rails - join creates wrong ID
by ElFenix in Programming Languages
Im creating a stock register. Part of the system has three tables:
stocks = each item of stock (belongs_to product)
products = all the products we sell (belongs_to product_type and has_many stocks)
product_types = a grouping of products (has_many products)
I want to list all Stoc
How do I setup a rails project to use an edge source tree (not an installed gem) version of rails
by CodeOfficer in Programming Languages

I would like the rails 3.0 source tree in my project so I can use patches, etc. I don' want to freeze rails. I would like to be able to pull updates from the main repo too. How do I accomplish this?


In particular the getting started guide, has me confused with


As the ro
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .