Re: controller from plugin not working

Frederick Cheung
Thu, 26 May 2011 12:59:09 -0000

On May 26, 7:25 am, Jedrin
<jrubia...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>  I have a controller:
>
> vendor/plugins/buoy_report/lib/app/controllers/
> buoy_station_controller.rb

That should probably be  vendor/plugins/buoy_report/app/controllers/
buoy_station_controller.rb
if you want it to get picked up automatically by rails

Fred

>
> class BuoyStationController < ActionController::Base
>
>   def index
>     render :text => ''buoy test''
>   end
>
> end
>
> when I try the url for rails 2.3.11:
>
> http://localhost:3000/buoy_station/index
>
> I get:
>
> Routing Error
> No route matches "/buoy_station/index" with {:method=>:get}