You might want to check out resource_controller
http://jamesgolick.com/2007/10/19/introducing-resource_controller-focus-on-what-makes-your-controller-special
On Jan 23, 2:09 pm, Neal L
<neal.lo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all,
>
> I''m writing an app that has a reporting component. All of the
reports
> are in a controller called reports_controller. I''m using REST
routes,
> and I''d like to do something like:
>
> /properties/1/myreport
>
> and have it call the myreport action of the reports controller. Is
> there a way to do this? Is this where I would use something like:
>
> map.resources :properties do |property|
> ~~ something here to reference myreport ??? ~~
> end
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---