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
On Feb 7, 11:42 pm, albert
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---