Forum: Ruby on Rails About Overriding controller actions from plugin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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?.
This topic is locked and can not be replied to.