??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-pengpenglin http://www.dentisthealthcenter.com/pengpenglin/人,必须选择一U生zL式ƈ有勇气坚持下?/description>zh-cn Thu, 07 Dec 2023 16:38:44 GMT Thu, 07 Dec 2023 16:38:44 GMT 60 【{】天下大?/title> http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370258.htmlPaul Lin Paul Lin Sat, 18 Feb 2012 10:57:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370258.html http://www.dentisthealthcenter.com/pengpenglin/comments/370258.html http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370258.html#Feedback 0 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/370258.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/370258.html http://firecacada.blog.163.com/blog/static/707437620114168314998/ ]]> 【{】Q云与q气 http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370257.htmlPaul Lin Paul Lin Sat, 18 Feb 2012 10:27:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370257.html http://www.dentisthealthcenter.com/pengpenglin/comments/370257.html http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370257.html#Feedback 0 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/370257.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/370257.html 阅读全文 ]]> 【{】有没有可能q行同理 http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370256.htmlPaul Lin Paul Lin Sat, 18 Feb 2012 10:09:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370256.html http://www.dentisthealthcenter.com/pengpenglin/comments/370256.html http://www.dentisthealthcenter.com/pengpenglin/archive/2012/02/18/370256.html#Feedback 0 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/370256.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/370256.html http://firecacada.blog.163.com/blog/static/70743762012027595383/ ]]>如何搭徏一个工业的Rails应用q行环境 http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/21/364445.htmlPaul Lin Paul Lin Mon, 21 Nov 2011 08:22:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/21/364445.html http://www.dentisthealthcenter.com/pengpenglin/comments/364445.html http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/21/364445.html#Feedback 0 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/364445.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/364445.html
q里使用到的各种软g包括Q?br/>
Ubuntu
Virtual Box
Vagrant
RVM
Capistrano
Passenger
Nginx
MySQL
PostgreSQL
q涉及到Git、GitHub、SSH{技? 阅读全文 ]]> Passenger+Nginx配置摘记 http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/13/363643.htmlPaul Lin Paul Lin Sun, 13 Nov 2011 15:29:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/13/363643.html http://www.dentisthealthcenter.com/pengpenglin/comments/363643.html http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/13/363643.html#Feedback 1 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/363643.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/363643.html 阅读全文 ]]> RoRC轮学习计?/title> http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/03/362576.htmlPaul Lin Paul Lin Wed, 02 Nov 2011 16:17:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/03/362576.html http://www.dentisthealthcenter.com/pengpenglin/comments/362576.html http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/03/362576.html#Feedback 0 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/362576.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/362576.html l于׃近4个月的时_把《Learn Rails3 by example》的E文版看完了,心中那个成就感和满感啊~~ l箋下一轮的针对性学习计划,计划包括Q?/span>1. Rails应用的部|和性能监控 2. Rails的MVC架构和Cache 3. JS和JS与Rails的结合?/span>4. Ruby的语法和Ҏ?/span>5. MySQL配置和调?/span>6. 搜烦引擎和推荐引擎的学习 7. NoSQL专题 ]]> 【{】A Guide to a Nginx, Passenger and RVM Server http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/03/362574.htmlPaul Lin Paul Lin Wed, 02 Nov 2011 16:14:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/03/362574.html http://www.dentisthealthcenter.com/pengpenglin/comments/362574.html http://www.dentisthealthcenter.com/pengpenglin/archive/2011/11/03/362574.html#Feedback 0 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/362574.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/362574.html 关于RVM + REE + Ngix + Passenger + Capistrano的安装配|,非常详细Q强烈推?/span>http://blog.ninjahideout.com/posts/a-guide-to-a-nginx-passenger-and-rvm-server
]]> Rspec 无法自动reload model的解x?/title> http://www.dentisthealthcenter.com/pengpenglin/archive/2011/09/06/358102.htmlPaul Lin Paul Lin Tue, 06 Sep 2011 06:21:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2011/09/06/358102.html http://www.dentisthealthcenter.com/pengpenglin/comments/358102.html http://www.dentisthealthcenter.com/pengpenglin/archive/2011/09/06/358102.html#Feedback 0 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/358102.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/358102.html 在上一?/span>自动化测试狂人的Rails试优化之\ 》中Q我演示了如何用Guard-spork, Guard-rspec和Spork, Rspec来进行自动化试和集成测试?/span>今天发现存在一个bugQ那是当model文g被修改后Q虽然会重新启动rspec执行试。但是测试的代码不是最新的Q而是l箋沿用已经加蝲到内存的model文g。网上搜索一番后Q发现问题的原因是spork的预加蝲问题。于是在spork的spork.each_runҎ中加入如下代码,重启sprokQ解决问?/p>
Dir[ " #{Rails.root}/app/models/**/*.rb " ].each do | model | load model end
]]>Rails的attr_accessibleҎ的奇怪特?/title> http://www.dentisthealthcenter.com/pengpenglin/archive/2011/09/03/357877.htmlPaul Lin Paul Lin Sat, 03 Sep 2011 04:51:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2011/09/03/357877.html http://www.dentisthealthcenter.com/pengpenglin/comments/357877.html http://www.dentisthealthcenter.com/pengpenglin/archive/2011/09/03/357877.html#Feedback 1 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/357877.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/357877.html 假如我们把attr_accessible讄成只有name是可以访问的Q然后在Console中执行如下命令:
ruby - 1.9 . 2 - p180 : 001 > user = User.create(:name => " Paul " , :email => " pengpenglin@163.com " ) => # < User id: 1 , name: " Paul " , email: nil, created_at: " 2011-09-03 04:42:59 " , updated_at: " 2011-09-03 04:42:59 " > ruby - 1.9 . 2 - p180 : 002 > user.email => nil ruby - 1.9 . 2 - p180 : 003 > user.email = " bob@163.com " => " bob@163.com " ruby - 1.9 . 2 - p180 : 004 > user.email => " bob@163.com " ruby - 1.9 . 2 - p180 : 005 > user.save => true ruby - 1.9 . 2 - p180 : 006 > user.reload.email => " bob@163.com " ruby - 1.9 . 2 - p180 : 007 > User.find( 1 ) => # < User id: 1 , name: " Paul " , email: " bob@163.com " , created_at: " 2011-09-03 04:42:59 " , updated_at: " 2011-09-03 04:43:31 " >
不是not accessible 吗?怎么emailq是能够改变Q?/span>
]]> 自动化测试狂人的Rails试优化之\ http://www.dentisthealthcenter.com/pengpenglin/archive/2011/08/31/357613.htmlPaul Lin Paul Lin Tue, 30 Aug 2011 16:44:00 GMT http://www.dentisthealthcenter.com/pengpenglin/archive/2011/08/31/357613.html http://www.dentisthealthcenter.com/pengpenglin/comments/357613.html http://www.dentisthealthcenter.com/pengpenglin/archive/2011/08/31/357613.html#Feedback 1 http://www.dentisthealthcenter.com/pengpenglin/comments/commentRss/357613.html http://www.dentisthealthcenter.com/pengpenglin/services/trackbacks/357613.html A. Gemfile
B. .rspec
C. Guardfile
D. rspec_helper.rb 阅读全文 ]]> 久久一级片