Error in tutorial or sintax changed?

Pedro Valentini
2005-04-20T20:38:24Z

Hi,

In this tutorial
http://wiki.rubyonrails.com/rails/show/HowtoUseJoinsWithFindAll
it sad:

sql =<<SQL
SELECT articles.*, authors.name AS author_name
FROM articles
LEFT JOIN authors ON author_id = authors.id
SQL

and this return
*app/controllers/media_controller.rb:366: can''t find string
"SQL"
anywhere before EOF*

what is wrong? the tutorial or ruby changed?
please, how I insert a text in a variable? (widout " or '' to
delimite
the string)

Thank''s

--

Pedro C. Valentini
pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org
+55 (21) 8708-8035



_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org