ruby - How to modify a gem files in rails 3 project -
i'm using rails 3 bundler, installed gem using bundler, need modify flow of gem modifying controller of gem, how supposed so, i'm sure there command install files locally can modify it, tried override controller creating controller same name sounds not working .
you should able make controller, inherit gem controller , override method behavior see fit
class mycontroller < contactus::contactscontroller def create # code changes behavior end end and may have tell routes go controller
resources :contacts, :controller => 'my_controller'
Comments
Post a Comment