<%= form_with model: @exchange_rate, url: { action: 'update' } do |f| %> <%= render partial: 'form', locals: { f: f } %> <%= f.submit %> <% end %>