Pass persisted params in a Rails form

0

If the params you want to persist are state and order

<% request.params.slice('state', 'order').each do |key, value| %>
  <%= hidden_field_tag key, value %>
<% end %>

  • 0 posts
  • 0 subtopics
  • 30 days ago by vince