rails/rails — pull request #7461 by homakov (2012-08-28 00:26:16+00:00)
Title: Hidden data in form_for tag

Before:
```
<%= form_tag({action: :authorize, controller: :charm}) do %>
<%=hidden_field_tag :client_id, @client.id %>
<%=hidden_field_tag :scope, @client.scope %>
...
<% end %>
```
now

```
<%= form_tag({action: :authorize_accept, controller: :charm}, hidden_data:{client_id: @client.id, scope: @client.scope}) do %>
...
<% end %>

```

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.
Also, we already have a ```

``` to keep all our hidden datas there.

/cc @tenderlove @josevalim