I've got two servers, both with Rails 1.1.6 on them. I'm trying to remove some of the newly-deprecated stuff in my app, and I've run into a problem. My login page used to look like this:
<div title="Account login" id="loginform" class="form"> <h1>Please Sign In</h1>
<%= start_form_tag :action => 'login' %>
<label for="user_login">Login:</label><br/> <input type="text" name="user_login" id="user_login" size="30" value=""/><br/>
<label for="user_password">Password:</label><br/> <input type="password" name="user_password" id="user_password" size="30"/>
<br/> <input type="submit" name="login" value="Login »" class="primary" /> <%= end_form_tag %> </div>
When I change to this :
<% form_tag :action => 'login' do %> (...same form fields...) <% end %>
then on my production machine, I get no HTML output at ALL. No errors in the log file, nothing. The layout renders, and the HTML produced looks like this:
... <div title="Account login" id="loginform" class="form"> <h1>Please Sign In</h1>
</div> ...
So the output of the whole <% form_tag :action... do %> ... <% end %> is just AWOL.
Now, on my development machine, these produce identical HTML output; the form shows up and works fine whether I use the old deprecated <%= start_form_tag ...%> or the new-and-hotness <% form_tag ... do %>.
Can someone shed some light on where I might look to find the problem? It seems perhaps I don't have the proper version of *something* on one of the servers, but frankly, I don't know how to determine that.
Thanks for any suggestions!