Manually create the form field names using format required by Rails controller when it cannot be generated correctly by form_for or form_tag helper.For e.g.

hidden_field_tag "resource[resource_type]", "link", id: 'resourceType'

could have been written as 

hidden_field :resource_type, when using form_for

and 

hidden_field_tag :resource_type, when using form_tag

Please see the helper's documentation for more details and options.