阅读背景:

在检查机器人的函数中使用中断时,Ruby函数返回true而不是false

来源:互联网 

I have a function that is supposed to return a boolean. Inside the function I am checking to see if the user is cookied. If the user has not been cookied than I want to run a check to see if they are a bot. I have an array called @bots conatining strings like 'googlebot' and 'msnbot' and so on. The @bots array is created with a before_filter and is available.I have a function that is supposed to return a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: