For some reason, any code in my view folder that contains <% form_tag
do %> followed by text and variables only produces a blank page with no
errors. If I remove the form_tag statements and leave only text, the
page is displayed fine.
I tried putting <%= @content_for_layout%> in my
layout/application.rhtml file based on a recommendation from another
post but it did not help.
The file is actually my login.rhtml used in acts_as_authenticated but I
have tried all kinds of simplified variations and have concluded that
the problem stems from that fact that for some reason, the form_tag do
command cannot display it's output. I'm kinda stuck at the moment and
any help at all would be greatly appreciated. Thanks!
The code from login.rhtml:
<% form_tag do -%>
<%= text_field_tag 'login' %></p>
<%= password_field_tag 'password' %></p>
<!-- Uncomment this if you want this functionality
<p><label for="remember_me">Remember me:</label>
<%= check_box_tag 'remember_me' %></p>
<p><%= submit_tag 'Log in' %></p>
<% end -%>