Forum: Ruby on Rails About Overriding controller actions from plugin

E87acb6dd8c56899ff41fc0e54ea19ec?d=identicon&s=25 Rosy Catz (rosy)
on 2013-01-11 14:55
(Received via mailing list)
All,

  Im having an issue while including the plugins actions index,show. I
need
to use my customized plugin actions instead of an existing functions.
Please any one help me out.

ror_project/app/controller/samples_controller.rb

  class SamplesController < ApplicationController

  def index
  some actions
  end

  def show
  some actions
  end

  def edit
  end

  end

My plugin called my_plugin ->
ror_project/vendor/my_plugin/app/controller/samples_controller.rb


 class SamplesController < ApplicationController

  def index
  some actions
  end

  def show
  some actions
  end
end

The plugin actions are working when i removed the index & show from
controller. Otherwise it doesn't. Can anyone tell what is the correct
steps
to
do it?.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.