Initially the scores were handed over by the controller, and I thought
something went wrong there. So I just create an array "testscores" and
try
it - same syntax error. As a Ruby / RoR I would appreciate a helping hand *&
word of wisdom
8<------------------------------------------------------------------------------------
compile error
/home/mongrel/Dmc/config/../app/views/mydass/results.rhtml:3: syntax error,
unexpected '')'', expecting kDO_COND or '':'' or
''\n'' or '';''
_erbout.concat(( for var in @testscores ).to_s); _erbout.concat "\n"
^
/home/mongrel/Dmc/config/../app/views/mydass/results.rhtml:5: syntax error,
unexpected kEND
_erbout.concat(( end ).to_s); _erbout.concat "\n"
^
Extracted source (around line #3):
1: <h1>DASS21 score for <%= @user %> </h1>
2: <%= @testscores = [''a'', ''b'',
''c''] %>
3: <%= for var in @testscores %>
4: Score: <%= var %> <br>
5: <%= end %>
6:
Where the heck is the syntax error here?
(the full rhtml file attached)
Horst
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---