I’m developing an engine with a controller, and I have problems to
configure the routing.
The engine is located in vendor/plugins/web_file_attachment. Under
the controller is in app/controllers/web_file_attachments.rb
I’m trying with this controller classes:
class WebFileAttachment::WebFileAttachmentsController <
and I have tried with equivalent configurations for class
WebFileAttachmentsController < ApplicationController
in routes.rb, I have this (following the docs stating that the
plugin name is the first part of the controller name):
connect “/app/web_file_attachments/:action/:id”, :controller =>
And in the main rails config/routes.rb I have this:
I still end with this error:
though this is exactly how I name my controller.
If I try
in init.rb, I get an error with ApplicationController not defined.
What am I doing wrong here?
I’m using rails 2.1.1 and engines 2.0.0
Thanks in advance.