On Wed, Mar 25, 2009 at 2:09 PM, Bharat Ruparel <
[email protected]> wrote:

>
> I just installed Rails 2.3.2 and tried to upgrade my test app from
> 2.1.2.  After installing Rails 2.3.2, I simply changed the gem version
> in my environment.rb file in config directory as shown below:
>
> # Specifies gem version of Rails to use when vendor/rails is not present
> RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
>
> The server refuses to start and I get the following stacktrace:
>
> => Booting Mongrel
> => Rails 2.3.2 application starting on http://0.0.0.0:3000
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:416:in
> `initialize_database': undefined method `configurations=' for
> ActiveRecord::Base:Class (NoMethodError)
>        from
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:141:in
> `process'
>        from
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in
> `send'
>        from
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in
> `run'
>        from /home/bruparel/exp/pizzeria-3/config/environment.rb:13
>        from
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>        from
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>        from
>
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
> `require'
>        from
>
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
> `new_constants_in'
>        from
>
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
> `require'
>        from
> /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
>        from
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>        from
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>        from script/server:3
>
>
> Change it back to 2.1.2 and I am fine.  Is there something that is
> missing?  I do a rails -v and it shows that 2.3.2 is installed as shown
> below:
>
> brupa...@bcr-d810:~$ rails -v
> Rails 2.3.2
> brupa...@bcr-d810:~$
>
> Thanks for your time.
>
> Bharat


Hi, did you update your configs?

rake rails:update

-Conrad


>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to