Results 1 to 6 of 6
Oct 22, 2007, 12:26 #1
- Join Date
- Oct 2007
- 0 Post(s)
- 0 Thread(s)
form_tag not working - error with login-form from sitepoint book
i read sitepoints book "Build your own ruby on rails web applications" by patrick lenz. it seems that there is a big mistake:
At Page 244 there is the following Example-Code:
<% form_tag do %> <p>Please log in.</p> <p> <label>Username:</label> <%= text_field_tag 'login' %> </p> <p> <label>Password:</label> <%= password_field_tag 'password' %> </p> <p><%= submit_tag 'login' %></p> <% end %>
If i would type some letters before "<% form_tag", they would be rendered. But all letters from up to "<% form_tag" are'nt rendered.
Please give me some hints what happenes here and how to fix this.
thank you for any help