breaking out into a partial view

This commit is contained in:
Dan Buch 2011-08-10 22:54:10 -04:00
parent 36c69e95a4
commit 2ed6806e6e
2 changed files with 5 additions and 6 deletions

View File

@ -0,0 +1,4 @@
<%= form_tag :action => 'new' do %>
Item: <%= text_field "item", "value" %>&#x00A;
<%= submit_tag "Add new item" %>
<% end %>

View File

@ -8,9 +8,4 @@
<% end %> <% end %>
</ul> </ul>
<h2>Add new item</h2> <%= render :partial => 'new_item_form' %>
<%= form_tag :action => 'new' do %>
<label for="product_name">Item:</label><%= text_field "product", "name" %>&#x00A;
<%= submit_tag "Add new item" %>
<% end %>