Rails gem error while trying to upgrade rails project to rails 3



While trying to upgrade rails project from rails 2.3.5 to rails 3.0.3 i get following error:-


/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems.rb:230:in
activate': can't activate rails (=
2.3.5, runtime) for [], already activated rails-3.0.3 for []
(Gem::LoadError) from
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in
require' from
./script/../config/boot.rb:54:in
load_initializer' from
./script/../config/boot.rb:38:in
run'
from ./script/../config/boot.rb:11:in
boot!' from


View Replies

Related to : Rails gem error while trying to upgrade rails project to rails 3


Rails gem error while trying to upgrade rails project to rails 3
Category : Programming Languages

While trying to upgrade rails project from rails 2.3.5 to rails 3.0.3 i get following error:-


/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems.rb:230:in
activate': can't activate rails (=
2.3.5, runtime) for [], already activated rails-3.0.3 for


View Replies


xmlsimple / picasa on rails error after upgrade to rails 3.2.3
Category : Programming Languages
ArgumentError in GraphicsController#index
Could not find <rails.xml> in <script>
Rails.root: /Users/****/*****/rails/*****
Application Trace | Framework Trace | Full Trace
xml-simple (1.1.1) lib/xmlsimple.rb:992:in `find_xml_file'
xml-simple (1.1.1) lib/xml

View Replies


For Rails, if there is a project that uses Rails 3.0.0, it looks for bundler 1.0.0 and it is there but rails server won't run?
Category : Programming Languages

I have a Rails 3.0.0 project that was using Ruby 1.9.2. Now that I tried to run it on a new computer with the current rvm, it will say:


$ rails s
/Users/michael/.rvm/gems/ruby-1.9.2-p318@global/gems/bundler-1.1.3/lib/bundler/resolver.rb:129:in `block in resolve': Bundler coul

View Replies


Upgrade from rails 3.1.3 to rails 3.2.1. Error with assets
Category : Programming Languages

I try to upgrade my application from rails 3.1.3 to rails 3.2.1 and I have a problem with assets.


I have this kind of error :


ActionController::RoutingError (No route matches [GET] "/assets/logos/opera_logo.png"):
actionpack (3.2.1) lib/action_dispatch/middlewar

View Replies


Rake task rails:upgrade:check is not working on windows. Rails 3 Upgrade problem
Category : Programming Languages

Is there any solution to solve the problem of rake task rails:upgrade:check on windows ?


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


'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


delayed_job: attribute accessor values are not stored in delayed_jobs table in rails 3 after upgrade from rails 2
Category : Web Design

How we did this in rails2 was: For a job class we set a bunch of attr_accessor methods for the job object and enqueue the object into delayed_jobs table and those accessor values are stored in the table as well. (we were using delayed_job 2.0.3)


But in rails3 even though we follow the


View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .