`
yautah
  • 浏览: 9991 次
  • 性别: Icon_minigender_1
文章分类
社区版块
存档分类
最新评论
文章列表
项目中遇到的问题,如下。 这样一段form中的代码: <select name="group[user][][title]"> <option id="1" value="经理"/> <option id="2" value="职工"/> </select> <input type="text" name="group[user][][desc]"/> <sel ...
extjs中使用了tab form 代码中关于tab部分的定义 items: { xtype:'tabpanel', deferredRender:false,//设为false,提交的时候才会提交所有tab里的field activeTab: 0, defaults:{autoHeight:true, bodyStyle:'padding:10px'}, items:[{ title:'基本信息', ...
权限需求分类 一是系统权限,主要是对模块为单位的权限划分,具体就是用户对该模块可见不可见,能不能对该模块进行再授权的操作。表现在用户界面就是用户登录系统主页面后,可以看到的顶部菜单和左侧outlookbar菜单的内 ...
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(" ...
1. gem install gettext      然后打开irb:  require "rubygems"   --->true  require "gettext"         -->true  GetText  -->GetText 则说明安装成功 2.创建 main.rb  require "rubygems"  require "gettext"  include GegText  bindtextdomain("main")  print _("he ...
表中有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( ...
Global site tag (gtag.js) - Google Analytics