Re: controller from plugin not working

Jedrin
Thu, 26 May 2011 13:16:46 -0000

Thanks alot.

I went through this whole thing like below, was that unnecessary ?

module BuoyReport #:nodoc:
  module Routing #:nodoc:
    module MapperExtensions
      def buoy_reports
        @set.add_route("/buoy_report", {:controller =>
"buoy_reports", :action => "index"})
      end
    end
  end
end

ActionController::Routing::RouteSet::Mapper.send :include,
BuoyReport::Routing::MapperExtensions

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org