1) if you have show_action in your controller, you should remove it from the router

2) test using another name. "duplicate" may be conflicting with something somewhere. At the moment I don't have access to check.

Bryan

On 10-06-18 07:37 AM, Ronbo wrote:
Just tried that - I still get error.

On Jun 18, 6:36 am, Joachim<[email protected]>  wrote:
W dniu 18.06.2010 12:32, Ronbo pisze:



Hi all,

I've been struggling with routing for a custom action. I've read some
background on rails routing, and the hobo controller/routes doc, but
still scratching my head.

I have a method defined in the controller

... in controller
class UnitsController<  ApplicationController
     def duplicate
         ...
     end
end

... in router
map.duplicate 'duplicate/:id', :controller =>  'unit', :action =>

Looks like you're using standard-looking route, it may be to let Hobo
handle routes

     class UnitsController<  ApplicationController
       show_action :duplicate
       def duplicate
         ...
       end
     end


--
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.

Reply via email to