Fixed wrong path in task form.

This commit is contained in:
Benjamin Meichsner 2010-06-10 12:55:06 +02:00
parent 74407a5912
commit 0e4b6107ba
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
- title "Aufgabe bearbeiten" - title "Aufgabe bearbeiten"
#form{:style => "float:left; width:39em"} #form{:style => "float:left; width:39em"}
- form_for :task, @task, :url => {:action => 'update', :id => @task} do |form| - form_for @task do |form|
= render :partial => 'form', :locals => {:form => form} = render :partial => 'form', :locals => {:form => form}
= submit_tag "Speichern" = submit_tag "Speichern"
| |

View file

@ -1,7 +1,7 @@
- title "Neue Aufgabe erstellen" - title "Neue Aufgabe erstellen"
#form{:style => "float:left; width:39em"} #form{:style => "float:left; width:39em"}
- form_for :task, @task, :url => {:action => 'create'} do |form| - form_for @task do |form|
= render :partial => 'form', :locals => {:form => form} = render :partial => 'form', :locals => {:form => form}
= submit_tag "Aufgabe erstellen" = submit_tag "Aufgabe erstellen"