Dynamic routing to a controller's action. If you have a rails form which has multiple submit buttons such as Publish
and Unpublish
, you can easily route those to corresponding actions within the controller with this clever hack.
Recent articles
- React in Rails is gaining momentum with Inertia - 14th April 2025
- Query optimization in rails - 14th April 2025
- Ruby's clamp method reduces conditionals - 24th February 2025