![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
wccxiaoan
这个作者很懒,什么都没留下…
展开
-
jQuery 表格拖动插件:tableDnD
你需要下载1.2及以上版本的jQuery,并下载TableDnD plugin(当前版本0.7,git上有0.8版本,但官网上说当前版本是0.7,那就老实用0.7吧 )把下载好的文件加载到你的页面中,如下面这样使用它$(table).tableDnD();同时,它还有一些实用的函数:onDragStyle,拖动时,为tr添加的行内样式onDropStyle,拖动完原创 2013-04-01 17:23:56 · 3581 阅读 · 0 评论 -
undefined method `inheritable_copy' for nil:NilClass
开发环境:rails 3.2.9 + ruby 1.9.3报错:undefined method `inheritable_copy' for nil:NilClass莫名其妙的错误,logger也跟着报错。后来试了下,原因是我有个action的名字叫configdef config # xxxend# 后来把action名字和路由命名改掉def me原创 2013-03-27 15:13:22 · 1540 阅读 · 0 评论 -
undefined method `model_name' for NilClass:Class
{:action => :action_name} do |f| %>页面加载以上代码报错如下:undefined method `model_name' for NilClass:Class原因是因为@user为空,改代码如下 {:action => :action_name} do |f| %>笔记原创 2013-03-27 18:05:28 · 2244 阅读 · 0 评论