Re: Age Verify

edberner
2007-12-21T06:54:11Z

Scratch that it didn''t work.

On Dec 21, 1:48 am, edberner
<eber...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Adding session[:check] to the view
>
> <% session[:check] == true %>
> <% button_to ........ %>
>
> and an if statement to the ApplicationController does not seem like a
> good solution.
> This RESTful design has been posing many problems for me. Is there
> something I''m missing about it? Why is it *so* good. It just makes
> everything impossible to program for.
>
> On Dec 21, 1:40 am, "Ryan Bigg"
<radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > What is preventing it? Whatever code you write for it. You
didn''t say
> > anything about wanting to protect that action.
> > You could store another session variable on the previous page which
says
> > that they visited that page before they visited the adult page. Check
to see
> > if the variable is set before setting adult to true and forwarding
them on.