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