Hello,
I just modified a ERb view template and I get the following error:
SyntaxError in Admin#list
Showing app/views/admin/list.rhtml where line #36 raised:
compile error
script/…/config/…/app/views/admin/list.rhtml:36: syntax error
_erbout.concat(( link_to ‘New album’, :action => ‘new’).to_s);
_erbout.concat “\n”
^
script/…/config/…/app/views/admin/list.rhtml:36: syntax error
_erbout.concat(( link_to ‘New album’, :action => ‘new’).to_s);
_erbout.concat “\n”
^
script/…/config/…/app/views/admin/list.rhtml:36: unterminated
string meets end of file
script/…/config/…/app/views/admin/list.rhtml:36: syntax error
Extracted source (around line #36):
33: end %>
34:
35:
36: <%= link_to ‘New album’, :action => ‘new’%>
Trace of template inclusion: /app/views/admin/list.rhtml
This is my source:
Album Listing
<%= h(album.title) %> <%= h(truncate(album.artist_name, 50)) %> |
<%= album.genre %> |
<%= link_to 'Show', :action => 'show', :id => album %> <%= link_to 'Edit', :action => 'edit', :id => album %> <%= link_to 'Destroy', { :action => 'destroy', :id => album }, :confirm => 'Do you really want to quit?" %> |
<%= if @album_pages.current.previous
link_to(“Previous” , { :page => @album_pages.current.previous })
end %>
<%= if @album_pages.current.next
link_to(“Next”, { :page => @album_pages.current.next})
end %>
<%= link_to 'New album', :action => 'new'%>
What am I doing wrong?
Many, many thanks!
Unnsse