cpr
2009-May-22 02:34 UTC
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column'' for #<ActionView::Base:
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
2009-May-22 16:30 UTC
Re: rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column'' for #<ActionView::Base:
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
Apparently Analagous Threads
- Problem with RESTful resource and ActiveScaffold
- ActionView::TemplateError when FQL query does not return any results
- active_scaffold + i18n
- Active Scaffold controllers created dynamically at runtime?
- RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*