On 9/27/06, Dark Ambient
<sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Is there a way to add something say in the line - config.rb/
> map.resources :articles, :collection {:user_id =>:get}
> so that only articles by the user who posted would be listed ?
>
> --
Okay , I just need some clarification on a few things -
I''m assuming I define the action in the controller (duh) , and I want
to make it protected.
Since all the restful actions are params[id], I''m trying to figure out
a generic action to add the condition of user id on there.
Stuart
--
http://en.wikipedia.org/wiki/Dark_ambient
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---