Alrighty,
How about putting a file in lib called custom_methods.rb or something
and
define this in it:
def adult
session[:adult] = true
end
That way NOBODY can make a request to it, you should be able to call it
whenever you like and there’s not another action in the controller.
If the method doesn’t work, restart your server. If it doesn’t work
after
that, then put it in a module:
module CustomMethods
def adult
session[:adult] = true
end
end
and “include CustomMethods” in your application controller, but it
should
never get to this.
On Dec 22, 2007 9:09 PM, edberner [email protected] wrote:
However, my code is not secure. Should someone go make a PUT request
ApplicationController
if session[:checked] == true # how do i set this to be
On Dec 22, 2007 7:01 PM, edberner [email protected] wrote:
page
–
Ryan B.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.