I have read how to add extra member route using retract, but couldn’t understand it thoroughly. It is said that just like edit being a portal for update, retract is a portal for destroy where I am really thorough with CRUD functionalities. So Can I have a detailed, but a simple explanation how retract method works in rails 3 with an example.
You can find the context here. informit.com/articles/article.aspx?p=1671632&seqNum=8
There is no
retractmethod in Rails. It is a route added to the controller of the resource as an example (it could have been named differently). This new action is added to the 7 default ones for resources:index,new,create,show,edit,update,destroyYou can look at the Rails Routing Guide for more information on routing and resources, and particularly the chapter 2.9 that covers the same topic as your link.