Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Hidden data in form_for tag #7461
Why adding it as parameter in form_for is a nice solution? because the only purpose of type=hidden is to add some parameters to request, only data payload and there is no difference where will you put this tag inside of form.