activescaffold/active_scaffold — Issue #130: Rails 3.2 breakage with render :super
Author: aspiers
Created: 2012-01-29 13:23:47+00:00
State: open

(As mentioned in [this group post](https://groups.google.com/d/msg/activescaffold/puzDCzy5sxQ/P3xFEkkxyR0J))

I just upgraded from Rails 3.1.3 to 3.2.1 and now `render :super` breaks the index action:

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 '
===================================================================================================

Here's the stack trace from running under WEBrick:

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 to say that render :super doesn't work for HAML, only ERB](https://github.com/activescaffold/active_scaffold/wiki/Template-Overrides/_compare/9e1cb62a776d84499db7ed6d62c75d9a0a7efc4a...1b68b78c8629c7f6d2c233a7a673a97b2a8915fe), but it was working fine for me until the upgrade.