Sorry -- after a small bit of actual thinking (figure I have to do
some this week), this is much more straightfoward.  All I did was in
my existing controller:

  def conditions_for_collection
    if params[:filter]
      ['opt_in=true']
    else
      []
    end
  end

and then called the action as /subscriptions?filter=true

and this could easily be expanded.  So this is sort of a no-brainer.

dwh




On Jul 23, 5:33 pm, dwhsix <[email protected]> wrote:
> In a discussion a year ago [1] someone suggested that to have a list
> view which had a different selection criteria, one approach was to
> subclass the existing controller and just supply an
> conditions_for_collection method.
>
> That isn't working for me.  It looks for a view with the subclassed
> controller's name, unless I add
>
> active_scaffold <modelname>
>
> which essentially negates the whole usefulness of subclassing.
>
> Is there another way to do this?
>
> Thanks,
>
> dwh
>
> [1]http://groups.google.com/group/activescaffold/browse_thread/thread/fd...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to