activescaffold/active_scaffold — Issue #142: nested set_link issue
Author: portfoliomedia
Created: 2012-02-27 21:52:44+00:00
State: open

I'm porting from Rails 2.3 up to 3.2 along with ActiveScaffold 3.2

In Rails 2.3 I used to do the following:
config.columns[:column_to_link].set_link('nested', :parameters => {:associations => :has_many_association})

This now gives an error when you click on the link:
AbstractController::ActionNotFound (The action 'nested' could not be found for Controller)

I came across a solution proposed on a AS 3 branch from a year ago, but it does not work for me:
as.columns[:some_column].set_link(link_for_association(as.columns[:some_association]))

This will display a nested list, but it is a listing of the parent model, not the association. Basically a repeat of the listing I was already on.

I've been trying to get something to work to no avail. Do you have any guidance on this?