That's what I needed, thanks. I ended up using an index_action for this particular case.
On May 6, 2:51 am, Tom Locke <[email protected]> wrote: > You can put > > show_action :first do > ...implement the action... > end > > in your controller > > Tom > > On 6 May 2009, at 06:54, oillio wrote: > > > > > I have a resource that needs to be able to provide the first instance > > of itself as an XML file. > > > My first inclination is to create a custom action for this routed to > > say: > >http://www.example.com/recos/first.xml > > > And in routes.rb I would have: > > map.resources :recos, :collection => { :first => :get } > > > But with Hobo's add_routes method I'm not sure how to do this. > > > Is there a better way to set this sort of thing up? > > How do I setup a custom action with Hobo? > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
