after the RoR security tutorial (here) , I wrote something in the lines
@@private_re = //
def secure?
action_name =~ @@private_re
end
The idea is that in the base case this should not match anything and return nil. the problem is that it is not. I worked currently using a meaningless line, but I would like to know the answer.
source
share