Nate,

I think most of the issues in upgrading to 0.6.7 with the rails_support
extension were normal ones you face going to Rails 2. Here is what
version control and my memory tells me I changed.

-- I backed up the database, dropped all the tables, and ran the
migrations for radiant and all extensions. Schema.rb was rewritten in
the new 2.0 style. 

--the new 'protect_from_forgery' functions stopped me for awhile. In my
controllers, I had to add the line

protect_from_forgery :except => new

--in environment.rb I had to add my customizations back in from
environment.bak which the upgrade to radiant provided. Be sure to put
your "requires" outside of and after the Initialize block. Be sure to
set config.plugins = [:all] and config.extensions = [:all] unless you
have special requirements. Be sure conf.action_controller.session is
uncommented and set. 

--I had to do the migration for sessions (rake db:sessions:create) and
comment out the line session :off at the top of site_controller.rb in
../gems/radiant-0.6.7/app/contollers. This may vary with your needs. I
don't really understand how Radiant handles sessions but the forgery
protection seems to need sessions.

--In my controllers, find_all needs to be replaced by find(:all).

--many plugins and gems need to be updated. will_paginate changed from a
plugin to a gem so install the gem and remove the plugin and add

gem 'mislav-will_paginate', '~> 2.3'
require 'will_paginate' 

to environment.rb
Since pagination has been dropped from Rails core, you have to use a gem
or plugin. Be sure to get will_paginate from here:

gem install mislav-will_paginate --source http://gems.github.com/

to get the latest version. My queries were getting messed up after page
1 until I got the latest gem and made sure I was referencing it.

--If you use the Gallery extension, it needs to be updated to the latest
version. 

--main.css in admin changed and any customization you have made needs to
be merged.

--Old scaffolding doesn't work. I just created views for the little-used
admin controllers where I had been lazy and used scaffolding.


So basically once I got past these hurdles, the rails_support extension
worked just fine. 

Good luck upgrading!
Will Emerson


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to