breaking out into a partial view
This commit is contained in:
parent
36c69e95a4
commit
2ed6806e6e
@ -0,0 +1,4 @@
|
||||
<%= form_tag :action => 'new' do %>
|
||||
Item: <%= text_field "item", "value" %>

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

|
||||
<%= submit_tag "Add new item" %>
|
||||
<% end %>
|
||||
<%= render :partial => 'new_item_form' %>
|
||||
|
Loading…
Reference in New Issue
Block a user