# Action Controller Exception caught?

**URL:** <https://www.ruby-forum.com/t/action-controller-exception-caught/51801>\
**Category:** Rails\
**Created:** [December 3, 2005, 12:48am UTC](https://www.ruby-forum.com/t/action-controller-exception-caught/51801 "2005-12-03T00:48:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![untz786](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/bc8723/32.png) [@untz786](https://www.ruby-forum.com/u/untz786)\
**Post date:** [December 3, 2005, 12:48am UTC](https://www.ruby-forum.com/t/action-controller-exception-caught/51801/1 "2005-12-03T00:48:41Z")

</div>

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
\<% odd\_or\_even = 0 for album in @albums odd\_or\_even = 1 - odd\_or\_even %\> \<% end %\>

| \<%= 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
