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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -