<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :project %>
<%= f.select :project, Project.all.map {|p| [p.name, p.id]} %>
<%= f.label :description %>
<%= f.text_area :description %>
<%= f.label :parent %>
<%= f.text_field :parent %>
<%= f.submit 'Update' %>
<% end %> <%= link_to 'show', project_task_path(@project, @task) %> | <%= link_to 'Back', project_tasks_path(@project) %>