IE7 and ror problem

R

rumz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top