For now, for testing, I created a new web app using the "rails" command.
I then just removed the index.html file from public, uncommented the
map.root command and created the welcome controller, etc.
The app isn't starting correctly and when I check the Apache logs the
newly created 2.0.2 app is bombing with the following error:
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in
`method_missing': undefined method `partial_updates=' for
ActiveRecord::Base:Class (NoMethodError)
from /my/project/dir/config/initializers/new_rails_defaults.rb:5
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in
`load'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in
`load'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in
`new_constants_in'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in
`load'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:342:in
`load_application_initializers'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:341:in
`each'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:341:in
`load_application_initializers'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:116:in
`process'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in
`send'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in
`run'
from /my/project/dir/public/../config/environment.rb:13
from /my/project/dir/public/dispatch.fcgi:21:in `require'
from /my/project/dir/public/dispatch.fcgi:21
--
Posted via http://www.ruby-forum.com/.
>
> I've upgraded to Rails 2.0.2. I installed Gems 1.1.1 then upgraded
> rails via a gem install. I've had problems fixing my existing
> previous
> 1.X applications, but I'll wait on that.
>
It looks like you got edge rails gems (ie not 2.0.2 at all. If it told
you it was installing 2.0.2.9216 (where the number right at the end is
probably different) then that's the problem . There have been a few
cases of this happening recently so you should be able to find how to
deal with this, but the short version is to either explicitly ask for
version 2.0.2 or to remove gems.rubyonrails.org from your sources list
and reinstall them (probably removing the current ones).
Fred
Well it did say: Successfully installed rails-2.0.2.9216
It should have installed something else?
That is the wrong gem, you want just 2.0.2
Fred
Yes I added this as a source. Here's the command I used:
gem install rails --source http://gems.rubyonrails.org
Most of the blogs I get related to "upgrading rails 2.0.2" returned by
Google search results. I initially tried it *without* the --source tag
(as stated on the rails download page) but that also didn't work.