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

<%= msg %>

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