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


View Replies

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
Category : 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


View Replies


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



View Replies


Rails application starts with wrong rails version
Category : 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



View Replies


RVM & Rails 3 - rails command fires error: Is a directory
Category : Web Design

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

View Replies


How can I get rails to not precompile assets in vendor directory?
Category : 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


View Replies


git not responding to my rails vendor/plugins directory
Category : 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


View Replies


Unable to update rails version even by using gem update rails command
Category : 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


View Replies


Are there 3 forms to invoke production, staging, etc in Ruby on Rails for rails server, rails console, and rake?
Category : Programming Languages

The forms I know of are:


For Rails 3.0:


for rails server:


rails server -e production

for rails console


rails console production

for rake


rake db:migrate RAILS_ENV=production

View Replies


Routes.rb - from Rails 2.x to Rails 3.x “How to Create a Blog from Scratch Using Ruby on Rails” tutorial
Category : Programming Languages

I'am working on "How to Create a Blog from Scratch Using Ruby on Rails" from http://sixrevisions.com. The tutorial was created for Rails 2.x. I try to get It working on Rails 3.x. . When I run server I and run localhost:3000 get some serious routing error:


Called from: C:/Ruby

View Replies


script/console won't work; reports “Missing the Rails gem. Please `gem install -v= rails`…” even though rails shows as installe
Category : Programming Languages

I'm trying to learn RoR, and running script/console fails, returning:


Loading development environment (Rails 2.3.5)
Missing the Rails gem. Please gem install -v= rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have


View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .