Hi,
I would like to develop a plugin, that if enabled in a controller, extends the controller with some basic methods (actions).
Here's what I've done so far: In init.rb:
require 'my_scaffold' ActionController::Base.send :include, MyScaffold
in lib/my_scaffold.rb:
module MyScaffold def foo render :text => "Hello World" end end
But everytime I try to access this new action "foo" I get an "Unknown Action" error from rails.
What am I missing?
Timo