Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
SyntaxError in Classified#list Showing app/views/classified/list.rhtml where line #7 raised: compile error /Users/dandiemer/railsapps/railslist/public/../config/../app/views/classified/list.rhtml:7: parse error, unexpected ';' @classifieds.each.do |c| ; _erbout.concat "\n" ^ /Users/dandiemer/railsapps/railslist/public/../config/../app/views/classified/list.rhtml:13: parse error, unexpected kEND, expecting $ Extracted source (around line #7): 4: <p>These are the current classified ads in our system</p> 5: 6: <ul id="classifieds"> 7: <% @classifieds.each.do |c| %> 8: <li><%= link_to c.title, {:action => 'show', :id => c.id} -%></li> 9: <% end %> 10: </ul> Trace of template inclusion: /app/views/classified/list.rhtml RAILS_ROOT: /Users/dandiemer/railsapps/railslist/public/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/views/classified/list.rhtml:13:in `compile_template' Request Parameters: None Show session dump Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
This paste will be private.
From the Design Piracy series on my blog: