I just upgraded from Rails 3.1.3 to 3.2.1 and now render :super breaks my
tests:
E
===================================================================================================
Error:
test_should_get_index(Admin::RolesControllerTest):
ActionView::Template::Error: wrong number of arguments (4 for 5)
app/views/admin/roles/list.html.haml:5:in
`_app_views_admin_roles_list_html_haml___368318457_75996840'
lib/admin/controller_tests.rb:68:in `block in <module:Index>'
===================================================================================================
Here's the stack trace:
actionpack (3.2.1) lib/action_view/lookup_context.rb:137:in `args_for_lookup'
active_scaffold (3.1.18)
lib/active_scaffold/extensions/action_view_rendering.rb:7:in `block (2 levels)
in find_all_templates'
actionpack (3.2.1) lib/action_view/path_set.rb:38:in `each'
actionpack (3.2.1) lib/action_view/path_set.rb:38:in `each'
active_scaffold (3.1.18)
lib/active_scaffold/extensions/action_view_rendering.rb:6:in `collect'
active_scaffold (3.1.18)
lib/active_scaffold/extensions/action_view_rendering.rb:6:in `block in
find_all_templates'
active_scaffold (3.1.18)
lib/active_scaffold/extensions/action_view_rendering.rb:5:in `collect'
active_scaffold (3.1.18)
lib/active_scaffold/extensions/action_view_rendering.rb:5:in
`find_all_templates'
active_scaffold (3.1.18)
lib/active_scaffold/extensions/action_view_rendering.rb:49:in
`render_with_active_scaffold'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:11:in `block in
render_with_haml'
haml (3.1.4) lib/haml/helpers.rb:90:in `non_haml'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
I notice someone updated the wiki in February
2011<https://github.com/activescaffold/active_scaffold/wiki/Template-Overrides/_compare/9e1cb62a776d84499db7ed6d62c75d9a0a7efc4a...1b68b78c8629c7f6d2c233a7a673a97b2a8915fe>to
say that render
:super doesn't work for HAML, only ERB, but it was working fine for me
until the upgrade.
Any ideas? Thanks!
P.S. the only reason I need render :super is to invoke my title helper to
set the page title. Is there another way to do that?
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/activescaffold/-/P3xFEkkxyR0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.