Fix form_for arguments

This commit is contained in:
Tom Hughes 2011-09-25 12:05:49 +01:00
parent 3377879d39
commit 5eb21cc2da
3 changed files with 3 additions and 3 deletions

View 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' %>

View 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>

View 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>