[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

IE7 and ror problem

rumz

12/6/2007 5:55:00 PM

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

1 Answer

Peter Bunyan

12/6/2007 9:09:00 PM

0

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.c...
--
Posted via http://www.ruby-....