Topic: How to override controller actions?

Hi,

Is it possible to override an existing controller actions?

ex
----
I want to modify some actions in an exisiting controller by my created plugins controllers.

Class ControllerName < ApplicationController

def index
p "from default"
end

end

Created plugin called 'sample' by ruby script/generare plugin sample.
Here i want to modify the index def by my plugin controller action i.e: index. Is it possible?. If so, Can anyone help me out?.

Last edited by Jercy (2013-01-29 09:24:54)