PagesController I mean :) Sent from my iPhone
On Sep 13, 2010, at 7:42 PM, Wesley Gamble <[email protected]> wrote: > Pages.class_eval do > def index > .... > end > end > > in your <extension_name>_extension.rb file. > > Wes > > Sent from my iPhone > > On Sep 13, 2010, at 7:24 PM, "star L.." <[email protected]> wrote: > >> I want to change the action where in controller, for example: >> >> /radiant project/app/controllers/admin/pages_controller.rb has one >> 'index' action >> >> def index >> @homepage = Page.find_by_parent_id(nil) >> response_for :plural >> end >> >> I want to change it to: >> >> def index >> @homepage = Page.find_by_created_by_id(current_user.id) >> response_for :plural >> end >> >> But how can I change it through extension/ >> >> thanks >> star
