IE7 and ror problem

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

rumz wrote:

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

Hmmm… check out the HTML source that the code generates. Also, you
missed the RoR forum by 1.

http://www.ruby-forum.com/forum/3