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 %>
|
<% 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" %>

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