controller:
def edit
@order = Order.find(...)
end
<%= f.label :name, "Name:" %>
<%= f.text_field :name , size: 40 %> #(:name in model @order.name)
</p>
<% end %>
def edit
@order = Order.find(...)
end
model object:
@order.name->"Dave"
<%= form_for @order do |f| %> #(@order in controller @order)
<p><%= f.label :name, "Name:" %>
<%= f.text_field :name , size: 40 %> #(:name in model @order.name)
</p>
<% end %>