Semergence

Seth Ladd’s blog about Ruby on Rails and crunching data.

Issues with Active Scaffold and Rails 2.1, Solved

with one comment

If you are looking to upgrade to Rails 2.1 and you are using Active Scaffold, be aware it still has a few rough edges.

Make sure you install the Rails 2.1 branch of Active Scaffold:


git clone git://github.com/activescaffold/active_scaffold
cd active_scaffold
git branch -r (just lists the branches)
git checkout origin/rails-2.1

(Check out the full thread for Rails 2.1 and Active Scaffold compatibility)

Second, I had to patch vendor/plugins/active_scaffold/lib/extensions/generic_view_path.rb. On line 53, make it look like this:


if !@template.controller.is_a?(ActionMailer::Base) && @template.controller.class.uses_active_scaffold?

I had to add !@template.controller.is_a?(ActionMailer::Base) &&

All my tests are now passing!

I still love Active Scaffold, even though it’s a bit behind the times.

Written by sethladd

June 28, 2008 at 1:07 pm

Posted in rails, rubyonrails

One Response

Subscribe to comments with RSS.

  1. Thank you! This fix should be more well known. It is still a problem 9 months later!

    laurence

    March 19, 2009 at 1:28 am


Leave a Reply