I need to extend a RESTful controller (ads) with two aditional actions
(search and coincidences), so I include the following code in my
routes.rb file:
I saw it and I had to comment… a search doesn’t really need its own additional action. Search just returns records (in your case, ads), but with a filter applied. Generally, if you’re doing RESTful design, Search forms just do GET to the Index action, and the controller checks parameters to determine how the results get populated.