I have the following code which I would like to update the particular object in the database. For some reason however this function will not display. Based on the log reports I am getting back nothing is wrong. Information outside of the code block is returned fine.
<% form_for (@person), :url => {:controller => "persons", :action => "update" } do |f| %>
<%= f.label :name, "Name" %><br/>
<%= f.text_field :name %>
<%= f.label :score, "Score" %>
<%= f.text_field :score %>
<%= f.submit("Update") %>
<% end %>
you should use
<%= form_for ...instead of<% form_for ...(it’s all in that equal sign)