Fix form_for arguments
This commit is contained in:
parent
3377879d39
commit
5eb21cc2da
3 changed files with 3 additions and 3 deletions
|
@ -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' %>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue