first of all, you should make sure that this route is really
existing(you can type rake routes | grep “buoy_station”).
secondly, you have to add the following configurations to vendor/
plugins/buoy_report/lib/buoy_station.rb :
%w{ models controllers helpers }.each do |dir|
path = File.join(File.dirname(FILE), ‘app’, dir)
$LOAD_PATH << path
ActiveSupport::Dependencies.load_paths << path
ActiveSupport::Dependencies.load_once_paths.delete(path)
end
This is important to add your plugin files to the load path and make
them appear just like files in the main app directory.
sorry, i maked a mistake, you should put the configurations in vendor/
plugins/buoy_report/lib/buoy_report.rb instead of:
vendor/plugins/buoy_report/lib/buoy_station.rb
concerning route , why don’t put map.resources :buoy_station in the
main routes file?