Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Help with page redirect
Peter Woodsky
1/18/2008 9:34:00 PM
Today I learned how to write and read cookies in eruby but I'm looking
for a better way "ruby way" of doing something.
I read to see if the user has my cookie. If they have read the page
already and allowed a cookie I want to send them automatically to
another page.
This is what I have:
<% if cookie == 'true' %>
<meta http-equiv="refresh" content="0; URL=/page/index" />
<%else%>
I put in my content
<%end%>
Surely there is a better ruby way than using a meta tag?
Thanks in advance,
Peter
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Help with page redirect
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password