03 2012 档案

摘要:http://www.ibm.com/developerworks/cn/web/wa-rspec/index.html#使用RSpec进行行为驱动测试http://www.letrails.cn/archives/20/ #rspec简明指南http://www.letrails.cn/archives/advanced-rspec-tutorials-rspec-scaffold/ #进阶指南(1)http://www.letrails.cn/archives/11-02-advanced-rspec-tutorials-basics/ #进阶指南(2)http://www.letrail 阅读全文
posted @ 2012-03-27 18:42 Fcicada · Sunny 阅读(171) 评论(0) 推荐(0) 编辑
摘要:http://ruby.bastardsbook.com/chapters/html-parsing/http://ruby.bastardsbook.com/chapters/web-crawling/ 阅读全文
posted @ 2012-03-22 16:00 Fcicada · Sunny 阅读(94) 评论(0) 推荐(0) 编辑
摘要:http://mechanize.rubyforge.org/ 阅读全文
posted @ 2012-03-22 15:59 Fcicada · Sunny 阅读(114) 评论(0) 推荐(0) 编辑
摘要:path是相对路径 url是绝对路径 model为复数的会对应到action=>index, 为单数时需要传递id参数并对应到action=>show如对于user而言: users_url # => http://localhost:3000/users users_path # => /users user_path(1) # => /users/1 user_url(1) # => http://localhost:3000/users/1 阅读全文
posted @ 2012-03-18 14:27 Fcicada · Sunny 阅读(456) 评论(0) 推荐(0) 编辑
摘要:Rails 3所做的很大一个改进就是:Unobtrusive JavaScript(非侵入式的JavaScript),以实现对HTML和JavaScript代码的分离。比如:1 <%= link_to "Destroy", @product, :confirm => "Are you sure?", :method => :delete %>将转换成:<a href="/products/8" data-confirm="Are you sure?" data-method=" 阅读全文
posted @ 2012-03-17 19:56 Fcicada · Sunny 阅读(353) 评论(0) 推荐(0) 编辑
摘要:Installing RVM Multi-user on CentOS can be a bit tricky. Here's my documentation - mostly so I remember, but hopefully it helps someone else as well.A quick note - the people behind RVM are clear that tutorials outside their siteare not supported. They're not discouraged, but they won't 阅读全文
posted @ 2012-03-15 13:35 Fcicada · Sunny 阅读(1030) 评论(1) 推荐(1) 编辑