打印

session 判断!!!

session 判断!!!

在做登陆画面时,判断session 不能直接输入url, 想把这个判断做在 lib夹子下(共同方法)
能给个例子说明下把
lib
class Comm
 self.login
  if session[:usename == nil]
  ....
  end
 end
end
controller中怎么写!!!

TOP

怎么在radrails中实现这种功能啊??

登陆时,没有输入用户和密码,当你输入登陆成功的地址就会报错,怎么实现??

TOP

提个思想的建议,使用过滤器,filter(java thinking).
doFilter(),每访问一个action,都调用doFilter,判断用户是否合法.

TOP

能找点连接给我看看

在google上搜啊搜!!! 没找到好点的! if you give me some website ,I will thank you a lot ,of course in my brain and by my mouse
if website.count > 0
 understand
else
 not understand
end

TOP

2008-11-23 22:20 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html) @38.103.63.61