Hi
Is it possible to rename the form so that the input fields are submitted under a different key in the params hash. Here's what I mean:
<%= simple_form_for @foo, url: some_path, do |f| %>
<%= f.input :waffle %>
...
<% end %>
would generate a hash
{ foo: { waffle: 'yes' } }
I would like to obtain a hash like so:
{ bar: { waffle: 'yes' } }
I can change the name on each input (example below) but was wondering if there is a better way to change the form name instead
<%= f.input :waffle, input_html: { name: 'bar[waffle]' } %>
Thanks heaps