I have a strange error that came about when I changed my app from mongrel to mod_rails.
My app changes from a two column layout to a three column layout depending on where the user is in the app. My application layout relies on several helpers to put the divs in the right place.
In application_helper.rb:
def left_column_layouts
if params[:controller] == "users" && params[:action] == "show" ||
params[:controller] == "friendships" && params[:action] == "index" ||
params[:controller] == "tags" && params[:action] == "index"
true
else
false
end
end
I also have similar logic for where the three column layouts.
Then, in my layout file:
<% if left_column_layouts %>
<div class="colmask leftmenu">
<div class="colleft">
<%= yield %>
</div>
</div>
<% elsif three_columns_with_blank_sides %>
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<%= yield %>
<div class="col2">
</div>
<div class="col3">
</div>
</div>
</div>
</div>
<% else #Three column layout %>
<div class="colmask threecol">
<div class="colmid">
<div class="colleft">
<%= yield %>
</div>
</div>
</div>
<% end %>
This worked well until I changed to mod rails. I can't imagine why mod rails would make this part of the app simply not work.
Interesting note: I went to the https parts of my site and the layout was loading without a problem. My server support guys said I should clear the cache but the problem persists.
Any help would be appreciated!