Report abuse


			
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:   

These are the current classified ads in our system

5: 6:
    7: <% @classifieds.each.do |c| %> 8:
  • <%= link_to c.title, {:action => 'show', :id => c.id} -%>
  • 9: <% end %> 10:
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"}