![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rails
StudyWorks
这个作者很懒,什么都没留下…
展开
-
rails.vim ubuntu crash solution
download the latest vim (vim-7.1.293) source code (seehttp://www.vim.org/download.php), and compiled it: cd vim7 ./configure --with-features=huge make make installif "You need to ins...原创 2008-06-18 14:01:15 · 96 阅读 · 0 评论 -
The difference between << and create
1.2008-04-12 15:33:36 · 104 阅读 · 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 · 86 阅读 · 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 · 122 阅读 · 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 · 128 阅读 · 0 评论 -
mouseover/mouseout vs mouseenter/mouseleave
mouseenter/mouseleave prevent the event bubbling2010-04-18 17:06:57 · 120 阅读 · 0 评论 -
visibility vs display
当visibility被设置为"hidden"的时候,元素虽然被隐藏了,但它仍然占据它原来所在的位置,而且width和height属性不为空 display设为"none"后width和height属性为空。 可以通过设置visibility为"hidden", 并且设置position为absolute,让他不占据原来的位置并且...2010-04-19 11:43:08 · 258 阅读 · 0 评论 -
no such file to load -zlib
sudo apt-get install zlib1g-devruby extconf.rb make && sudo make install。 public void static main(String[] args){ System.out.println("xxxxxxxx");}原创 2010-10-30 21:43:52 · 101 阅读 · 0 评论