Using Haml with Merb
Haml will cut the time you spend on view code in half, and Merb offers just enough sugar to make writing views feel really natural.
Blog Posts
A Basic Form for your Create action
- form_for(:class, :action => url(:classes), :method => :post) do
%p= text_control(:name, :label => "Class Name")
%p= select_control(:teacher, :label => "Teacher", :collection => @teachers)
%p= text_area_control(:description, :label => "Class Description")
%p= submit_button "Create"