
rails
StudyWorks
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
rails.vim ubuntu crash solution
download the latest vim (vim-7.1.293) source code (see http://www.vim.org/download.php), and compiled it: cd vim7 ./configure --with-features=huge make make install if "You need to ins...原创 2008-06-18 14:01:15 · 126 阅读 · 0 评论 -
The difference between << and create
1.2008-04-12 15:33:36 · 137 阅读 · 0 评论 -
Reloading the Association
Notice that the second time I invoke the association via user, the object_id remains the same. The related object has been cached. However, passing true to the accessor reloads the relationship and I ...2008-04-12 15:50:25 · 121 阅读 · 0 评论 -
:dependent => :delete_all vs :destroy_all
:delete_all is much faster than :destroy_all, it doesn't trigger any destroy callbacks on the associated object. :destroy_all iteratively call the associated objects's destroy method2008-04-12 16:28:29 · 165 阅读 · 0 评论 -
instance_exec vs instance_eval
instance_exec allows you pass arguments to the block which is to be evaluated in the new self: o = Struct.new(:val).new("Hello") o.instance_exec("World!"){|arg| val + " " + arg} # => Hell...2010-03-28 23:00:08 · 183 阅读 · 0 评论 -
mouseover/mouseout vs mouseenter/mouseleave
mouseenter/mouseleave prevent the event bubbling2010-04-18 17:06:57 · 157 阅读 · 0 评论 -
visibility vs display
当visibility被设置为"hidden"的时候,元素虽然被隐藏了,但它仍然占据它原来所在的位置,而且width和height属性不为空 display设为"none"后width和height属性为空。 可以通过 设置 visibility为"hidden", 并且设置position为absolute, 让他不占据原来的位置并且...2010-04-19 11:43:08 · 298 阅读 · 0 评论 -
no such file to load -zlib
sudo apt-get install zlib1g-dev ruby extconf.rb make && sudo make install。 public void static main(String[] args){ System.out.println("xxxxxxxx"); }原创 2010-10-30 21:43:52 · 154 阅读 · 0 评论