I am working my way through the January 2007 edition of “Build Your
Own Ruby on Rails Web Applications” by Patrick Lenz. The application
in the book is a clone of digg.com and I am halfway through the book
with no problems.
I am now working on the user authentication portion, and I am getting
a compile error with the following 12 line file (typed exactly as
printed in the book):
<% form_tag do %>
Please log in.
Username: <%= text_field_tag 'login' %>
Password: <%= password_field_tag 'password' %>
<%= submit_tag 'login' %>
<% end_form %>The compile error is:
compile error
C:/CONDUC~1/rails_apps/shovell/config/…/app/views/account/login.rhtml:
13: parse error, unexpected $, expecting kEND
Extracted source (around line #13):
10:
11:
<%= submit_tag ‘login’ %>
12: <% end_form %>
My application’s environment is:
Ruby version 1.8.5 (i386-mswin32)
RubyGems version 0.9.2
Rails version 1.2.3
Active Record version 1.15.3
Action Pack version 1.13.3
Action Web Service version 1.2.3
Action Mailer version 1.3.3
Active Support version 1.4.2
Application root C:/CONDUC~1/rails_apps/shovell
Environment development
Database adapter mysql
Database schema version 4
I suspect that I have a typo somewhere, but I need a fresh set of eyes
to review what I have typed to uncover it. I realize that there might
be a version differential between what I have installed on my laptop
and the version used in the book (Ruby 1.8.4, Rails 1.2 Release
Candidate 2, MySQL General Release 5.0.27).
Thanks in advance for your guidance!
John