Commit 1c227d1

mo khan <mo@mokhan.ca>
2013-06-22 16:14:44
add needs form to the needs listing
1 parent b1314b9
Changed files (1)
app
views
app/views/needs/index.html.erb
@@ -1,5 +1,14 @@
-<h1>Needs</h1>
+<%= form_for(Need.new) do |f| %>
+  <div class="field">
+    I need:
+    <%= f.text_area :description %>
+  </div>
+  <div class="actions">
+    <%= f.submit "Submit" %>
+  </div>
+<% end %>
 
+<h1>Needs</h1>
 <table class="table">
   <tr>
     <th>Description</th>
@@ -14,6 +23,3 @@
 <% end %>
 </table>
 
-<br />
-
-<%= link_to 'New Need', new_need_path %>