Hi Victor,

Does this help you?

http://your.AS.site/tasks/list?status=open

Try to add the following line to your controller.

config.action_links.add 'open', :action => "list", :label => "Open
Tasks", :type => :table, :parameters => {"status" => "open"}, :page =>
true

Cheers,

ebi

2009/11/27 Victor <[email protected]>:
> I have AS set on a tasks controller. I have a "status" column that
> denotes whether the task is open or completed. I would like the list
> to only show open tasks when a user goes to the /tasks list page. But
> I would also like the user to change the search filter to show all
> tasks or closed tasks (or any other status). Essentially, is there a
> way to set an initial search criteria on page load. Is this possible?
>
> --
>
> 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.
>
>
>

--

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