Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<% if @classifieds.blank? %> <p>There aren't any ads currently in the system.</p> <% else %> <p>These are the current classified ads in our system</p> <ul id="classifieds"> <% @classifieds.each.do |c| %> <li><%= link_to c.title, {:action => 'show', :id => c.id} -%></li> <% end %> </ul> <% end %> <p><%= link_to "Add new ad", {:action => 'new' }%></p>
This paste will be private.
From the Design Piracy series on my blog: