i’m a nuby on rails. I’m using patrick Lenz’s book to study rails. When
creating the login page for th application i got a problem.
given below is the code
<% form_tag do %>
Please log in.
<%= text_field_tag ‘login’%>
<%= password_field_tag ‘password’ %>
<%= submit_tag ‘login’ %>
<% end_form %>
But when browsing to the page I get the error
Showing app/views/account/login.rhtml where line #13 raised:
parse error, unexpected $, expecting kEND
But when I change the code from <% end_form %> to <% end %>
the page loads but no textboxes are shown.
I tried checking my code and the format seems to be right as in the
book, I also googled to check if anything is wrong, but couldn’t come up
with a solution. So I believe someone from here can help me out.