]> git.openstreetmap.org Git - rails.git/commitdiff
Fix form_for arguments
authorTom Hughes <tom@compton.nu>
Sun, 25 Sep 2011 11:05:49 +0000 (12:05 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:52 +0000 (09:42 +0000)
app/views/oauth_clients/edit.html.erb
app/views/trace/create.html.erb
app/views/trace/edit.html.erb

index bee1bd183d43ae91a89c15134a18b5d2851750a9..b27f9b8fc01d9700476c36c0454f68b57a72ed09 100644 (file)
@@ -1,5 +1,5 @@
 <h1><%= t'oauth_clients.edit.title' %></h1>
-<%= 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 } %>
   <br/>
   <%= submit_tag t'oauth_clients.edit.submit' %>
index f4815a9460ed9ae3e37c99076cf916418e753d5d..23346a951602dd8e62950cf6724b20c92545a0ef 100644 (file)
@@ -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| %>
 <table>
   <tr><td class="fieldName"><%= t'trace.trace_form.upload_gpx' %></td><td><%= f.file_field :gpx_file, :size => 50, :maxlength => 255 %></td></tr>
   <tr><td class="fieldName"><%= t'trace.trace_form.description' %></td><td><%= f.text_field :description, :size => 50, :maxlength => 255 %></td></tr>
index e1382a1be570dc37b980596f4046f9948eadbdbd..a694d55bb07b718cc3bf906388d45852aa1d29a4 100644 (file)
@@ -2,7 +2,7 @@
 
 <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
 
-<%= form_for :trace, @trace do |f| %>
+<%= form_for @trace, :url => { :action => "edit" } do |f| %>
 
 <table border="0">
   <tr>