Lecture Notes for CS349W
Fall Quarter 2008
John Ousterhout
distance_of_time_in_words excerpt pluralize
link_to "Delete", { :action => "delete", :id => @product}, { :confirm => "Are you sure?" }
<% form_for :student :url => {:action => :create} do |form| %> <p>Last name: <%= form.text_field :last :size => 30 %></p> <p>First name: <%= form.text_field :first :size => 30 %></p> ... <% end %>Form helpers automate some of the error handling if a form is submitted with invalid data (more on this later under Fiz).