Hi all, this is the first time I’m posting to this list or all Ruby on
Rails lists, at all. If I’m wrong here please let me know where the
best place is to put my question.
I’m doing the authentication example in the new Agile Development with
Rails book. For whatever reason the user login page doesn’t work. The
login.rhtml looks like this:
<% form_tag do %> <p> <label for="name">Name:</label> <%= text_field_tag :name, params[:name] %> </p> <p> <label for="password">Password:</label> <%= password_field_tag :password, params[:password] %> </p> <p> <%= submit_tag "Login" %> </p> <% end %>
But when trying to display this site there aren’t any input fields.
Seems to me the “form_tag do” does produce any html code. My Firefox
browser simply shows the following page source.
Does anybody know what might be wrong with my application? Any hint is
very welcome. I’m in my first steps of using Ruby on Rails.