From: Tom Hughes Date: Sun, 25 Sep 2011 11:05:49 +0000 (+0100) Subject: Fix form_for arguments X-Git-Tag: live~6053 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5eb21cc2da0dea996cd0e524d67589378335dfa1 Fix form_for arguments --- diff --git a/app/views/oauth_clients/edit.html.erb b/app/views/oauth_clients/edit.html.erb index bee1bd183..b27f9b8fc 100644 --- a/app/views/oauth_clients/edit.html.erb +++ b/app/views/oauth_clients/edit.html.erb @@ -1,5 +1,5 @@

<%= t'oauth_clients.edit.title' %>

-<%= form_for :client_application, @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %> +<%= form_for @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %> <%= render :partial => "form", :locals => { :f => f } %>
<%= submit_tag t'oauth_clients.edit.submit' %> diff --git a/app/views/trace/create.html.erb b/app/views/trace/create.html.erb index f4815a946..23346a951 100644 --- a/app/views/trace/create.html.erb +++ b/app/views/trace/create.html.erb @@ -2,7 +2,7 @@ <%= error_messages_for 'trace' %> -<%= form_for :trace, @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> +<%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> diff --git a/app/views/trace/edit.html.erb b/app/views/trace/edit.html.erb index e1382a1be..a694d55bb 100644 --- a/app/views/trace/edit.html.erb +++ b/app/views/trace/edit.html.erb @@ -2,7 +2,7 @@ -<%= form_for :trace, @trace do |f| %> +<%= form_for @trace, :url => { :action => "edit" } do |f| %>
<%= t'trace.trace_form.upload_gpx' %><%= f.file_field :gpx_file, :size => 50, :maxlength => 255 %>
<%= t'trace.trace_form.description' %><%= f.text_field :description, :size => 50, :maxlength => 255 %>