I'm coding with a Rails plugin, which need to extend ActionController so that action callback can be made when a view-generated hyper-link is clicked.
But when i wrote some code like these:
module MyController def callback_action() @origin_page='' p params redirect_to :action=>:index end end
and wrote these in init.rb:
ActionController::Base.send(:include, MyController)
Rails seemed not knowing this callback_action method ( ' unknown action callback_action in xxx')
why? So , what should I do to extend the fucking ActionController::Base ?
help me!