Skip to content

Commit

Permalink
Fixes #11986 - Specify PUT method on form_for tags
Browse files Browse the repository at this point in the history
Rails 4 will default to PATCH which we have not implemented in our
routes. This will cause at least one failure on taxonomies integration
tests. It's the only one our test suite catches, however I'd expect
other forms to fail on this when tested manually. We can keep this
issue number as a reference and add commits with integration tests
& fixes where needed.
  • Loading branch information
dLobatog authored and Dominic Cleal committed Oct 27, 2015
1 parent 212b825 commit 9a115cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hosts/_assign_hosts.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= javascript "jquery.cookie", "host_checkbox" %>
<% assign_selected_hosts_taxonomy_path = (@taxonomy_type == "Location") ? assign_selected_hosts_location_path : assign_selected_hosts_organization_path %>
<%= form_for taxonomy, :url => assign_selected_hosts_taxonomy_path do |f| %>
<%= form_for taxonomy, :url => assign_selected_hosts_taxonomy_path, :method => 'PUT' do |f| %>
<%= base_errors_for taxonomy %>
<%= wizard_header 3, _("Create %s") % taxonomy.class.name, _("Select Hosts"), _("Assign Selected Hosts") %>
<div class="row">
Expand Down

0 comments on commit 9a115cf

Please sign in to comment.