extjs中使用了tab form 代码中关于tab部分的定义 items: { xtype:'tabpanel', deferredRender:false,//设为false,提交的时候才会提交所有tab里的field activeTab: 0, defaults:{autoHeight:true, bodyStyle:'padding:10px'}, items:[{ title:'基本信息', ...
权限需求分类 一是系统权限,主要是对模块为单位的权限划分,具体就是用户对该模块可见不可见,能不能对该模块进行再授权的操作。表现在用户界面就是用户登录系统主页面后,可以看到的顶部菜单和左侧outlookbar菜单的内容控制。它是粒度最大的权限控制。 二是模块操作权限,在对整个模块的权限做出控制后,这里继续对模块的浏览、增加,修改,删除的操作权限做出控制,也可以理解为对象权限 。还是以车辆管理为例,不同的人员对这个模块的操作是不同的,有些用户可以新增,删除车辆;而有些用户则只是可以对车辆的情况查看不能修改。 三是数据范围权限,又可以叫做对象实例级权限。事实上不是每个用户都可以看到所有记录的。以财务 ...
  • 10:51
  • 浏览 (58)
  • 评论 (0)
2007-11-14

ruby入门小case

关键字: RUBY
Q1. Write a Ruby program that asks for a numeric value of the temperature in degrees Fahrenheit. Finally, the program displays the equivalent value in degrees Centigrade. To format the output to say 2 decimal places, we can use the Kernel's format method. For example, if x = 45.5678 then format("%.2 ...
1. gem install gettext      然后打开irb:  require "rubygems"   --->true  require "gettext"         -->true  GetText  -->GetText 则说明安装成功 2.创建 main.rb  require "ruby ...
  • 00:35
  • 浏览 (233)
  • 评论 (0)
2007-10-23

关于updated_at(updated_on)的问题

关键字: activerecord
表中有updated_at和last_viewed_at两个字段,原意是想记录修改时间和最后访问时间. 于是在controller中做了一个after_filter: after_filter:update_last_viewed,:only => "show" 相应的方法: def update_last_viewed @group.update_attributes(:last_viewed => Time.now) end def show @group = Group.find(params[:id]) ...
yautah
搜索本博客
博客分类
最近加入圈子
存档
最新评论