<%= form_for(@task, :url => save_action(@task, :mode => "draft")) do |f| %> <% if @task.errors.any? %> <% @task.errors.full_messages.each do |msg| %>

<%= msg %>

<% end %> <% end %>
<%= f.label :name %> <%= f.text_field :name %>
<%= f.submit :class => "btn primary" %> <% end %>