Edge Restful question

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 ?


TIA
Stuart

On 9/27/06, Dark A. [email protected] 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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs