diff --git a/app/views/tasks/edit.haml b/app/views/tasks/edit.haml index 7afeff22..37ceda70 100644 --- a/app/views/tasks/edit.haml +++ b/app/views/tasks/edit.haml @@ -1,7 +1,7 @@ - title "Aufgabe bearbeiten" #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} = submit_tag "Speichern" | diff --git a/app/views/tasks/new.haml b/app/views/tasks/new.haml index 5fa82df8..e0dca81d 100644 --- a/app/views/tasks/new.haml +++ b/app/views/tasks/new.haml @@ -1,7 +1,7 @@ - title "Neue Aufgabe erstellen" #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} = submit_tag "Aufgabe erstellen"