Help with page redirect

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’ %>

<%else%> I put in my content <%end%>

Surely there is a better ruby way than using a meta tag?

Thanks in advance,
Peter

bump

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs