Forum: Ruby on Rails rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
cpr (Guest)
on 2009-05-22 06:35
(Received via mailing list)
Before I dig in any further (since I have no idea where to go from
here...)

Has anyone been succcessful with 2.3.2, AS, and nested scaffolds?

I have the latest of AS and the render_component plugin via
% script/plugin install --force
git://github.com/lackac/render_component.git
-r rails-edge

I have an AS user_controller:

  active_scaffold :user do |config|
   ...
    config.nested.add_link("Portfolios",[:portfolios])
  end

But when I click on the Portfolios link I get:

ActionView::TemplateError (undefined method `format_column' for
#<ActionView::Base:0xb67cee38>) on line #28 of vendor/plugins/
active_scaffold/frontends/default/views/_nested.rhtml:

format_column is defined in:
.../vendor/plugins/active_scaffold/lib/helpers/list_column_helpers.rb

which is included via:
.../vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb

which is included via:
.../vendor/plugins/active_scaffold/environment.rb

which is included via:
.../vendor/plugins/active_scaffold/init.rb

so I don't understand why it's not defined when needed.

Any pointers/ideas will be much appreciated. This worked fine in
2.2.2.

Thanks,

-cpr
Chris Rosebrugh (Guest)
on 2009-05-22 20:31
(Received via mailing list)
Problem was that I had installed the newest AS on top of an earlier
version, so .../frontend/default/views contained *.html.erb and
*.rhtml files.

The latter ones were being picked up instead of the former.

I deleted AS and did a fresh install and all is good.

-cpr
This topic is locked and can not be replied to.