I'am trying to redirect the user to the login page if the user is not
already logged in.

<%= link_to_remote "Add To Favorites", :update => "content-item-
favorite-#{content_item.id}",
     :url => {:controller => :user, :action => :add_favorite, :params
=> {:id => content_item.id }},  302 => 'document.location =
request.getResponseHeader("location"); return false;' %>

This works in Firefox but in IE7 the login page gets embedded in the
current page instead of getting redirected!

any thoughts?

Many Thanks
Ramya