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
- with_defaults is a better named alias - 28th April 2025
- Bundler can be configured to auto install - 28th April 2025
- React in Rails is gaining momentum with Inertia - 14th April 2025