The way it is, it works but I don't agree that these files should be where
they are.
order_helper.rb as a helper should be in the helpers directory not in
controllers.
substruct_application_controller.rb isn't even a controller as it doesn't
descend from ApplicationController nor ActionController::Base, its just a
module with methods and as such I think it should be in /lib.
You can find some suggestions that James Adam (the creator of engines) and
other people gave in the engines mailing list, about placing it in /lib and
including it in application.rb or using module inclusion with
ActionController::Base inside init.rb.
References:
http://www.mail-archive.com/engine-users@lists.rails-engines.org/msg01054.html
http://www.mail-archive.com/engine-users@lists.rails-engines.org/msg00963.html
I cannot make a patch for this as it include moving files around and
renaming files.
Labels: -Priority-Medium Priority-Low