Check your theme for instances of:
RAILS_ROOTreplace withRails.rootRAILS_ENVreplace withRails.env
This...
require 'dispatcher'
Dispatcher.to_prepare doshould be replaced with this...
Rails.configuration.to_prepare doYou need to upgrade your custom routes to the new Rails syntax.
The list_public_bodies_default helper has been removed from Alaveteli
In lib/patch_mailer_paths.rb change ActionMailer::Base.view_paths.unshift File.join(File.dirname(__FILE__), "views") to ActionMailer::Base.prepend_view_path File.join(File.dirname(__FILE__), "views")
Rename view templates from filename.rhtml to filename.html.erb.
Run this in the root of your theme directory: ruby -e 'Dir.glob("lib/views/**/*.rhtml").each { |f| `git mv #{f} #{f.gsub(".rhtml", ".html.erb")}` }'
GOTCHA! One exception is mailer templates, these should be renamed to filename.text.erb as we only use text emails.
Due to a naming conflict, Configuration has been renamed to AlaveteliConfiguration.
You'll may have this in your them for things like Configuration::site_name, just change it to AlaveteliConfiguration::site_name
Replace instances of request.request_uri with request.fullpath
See example.