<%= semantic_form_for(resource, url: resource_form_path) do |f| %> <%= f.inputs(*fields) %> <%= f.actions %> <% end %>