Forum: Ruby on Rails syntax error ruby 1.8.5

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E2592af2ea700cc8461e93c12ea9dd97?d=identicon&s=25 albert (Guest)
on 2007-02-08 05:42
I have updated ruby to 1.8.5 and now get a lot of syntax error in my
views.
I removed the tabs from my rbtml files but I can not solve this one.
This was working completely fine before:

 SyntaxError in Study#show_study

Showing app/views/study/show_study.rhtml where line #150 raised:

compile error
./script/../config/../app/views/study/show_study.rhtml:150: syntax error
    :action => :show_notes, :id => study.id}, :title =>
pluralize(study.public_note_count, "note") ).to_s); _erbout.concat "\n"
     ^
./script/../config/../app/views/study/show_study.rhtml:150: syntax error
    :action => :show_notes, :id => study.id}, :title =>
pluralize(study.public_note_count, "note") ).to_s); _erbout.concat "\n"
                                            ^

Extracted source (around line #150):

147:    <td>
148:    <% if @annotated %>
149:     <%= link_to "all notes",  {:controller => 'study'
150:     :action => :show_notes, :id => study.id}, :title =>
pluralize(study.public_note_count, "note") %>
151:     <%end%>
152:    <% if @annotated_by %>
153:    <% @note_count = @member_study.public_note_count +
@member_study.private_note_count %>

any help is greatly appreciated.
Thanks,
-Albert
456f5e099eb136439d751598e32d8607?d=identicon&s=25 Bill Siggelkow (Guest)
on 2007-02-08 05:49
(Received via mailing list)
I may be wrong, but it looks like you are missing a comma between
the :controller => 'study' and :action => :show_notes key-value pairs
in the hash.

-Bill
http://www.jadecove.com
This topic is locked and can not be replied to.