- text_block :title => "New <%= singular_name %>" do - next_form_for(@<%= singular_name %>, :url => collection_path, :html => {:class => 'form'}) do |f| = render :partial => "form", :locals => { :f => f } - f.buttons do |b| = b.save = b.cancel :url => collection_path