Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
<%= start_form_tag :action => 'create' %> <p>Section <%= select("exam","section",ClassSection.find_all.collect{|s|[s.section]}, :include_blank => 'true') %></p> <p>Exam Name <%= text_field_tag "exam_name" %> </p> <% @subjects=Subject.find(:all) %> <% for s in @subjects %> <b><%= s.subject %></b><p><label for="session">Session</label><br/> <%= select("exam","session",[["1","1"],["2","2"]])%></p> <%= select_date "MyDate" %> <%= "Description" %> <%= text_area_tag "desc[]" %><br> <% end %> <%= submit_tag "Create" %> <%= end_form_tag %>
From the Design Piracy series on my blog: