maandag 27 april 2009

Ruby On Rails: end_form_tag removed in Rails 2.0

The end_form_tag method is removed in Rails 2.0, now one can create a block to start and end a HTML form. This is actually quite simple:


<% form_tag :action => 'create' do %>
#...
<% end %>


An important part is the 'do' at the end of the form_tag line.