上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页
  2017年7月18日
摘要: http://xiewenwei.github.io/blog/2015/01/11/mattr-accessor-in-ruby-on-rails-activesupport/ 阅读全文
posted @ 2017-07-18 15:23 c3tc3tc3t 阅读(320) 评论(0) 推荐(0)
摘要: https://github.com/unixc3t/mydoc/blob/master/blog/caiv.md 阅读全文
posted @ 2017-07-18 15:05 c3tc3tc3t 阅读(135) 评论(0) 推荐(0)
  2017年7月5日
摘要: 进行邮件测试,你需要在dummy目录下的虚拟程序添加一个配置 In your config/enviroments/test.rb, by default you should have the line config.action_mailer.delivery_method = :test fr 阅读全文
posted @ 2017-07-05 15:25 c3tc3tc3t 阅读(136) 评论(0) 推荐(0)
  2017年6月29日
摘要: [原文] http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/ 我的翻译 https://github.com/unixc3t/mydoc/blob/master/blog/gemspec. 阅读全文
posted @ 2017-06-29 09:40 c3tc3tc3t 阅读(762) 评论(0) 推荐(0)
  2017年4月6日
摘要: 在使用devise这个gem时,编写控制器层的单元测试,你需要在你的rspec帮助文件 rails_helper.rb里添加下面这一样 阅读全文
posted @ 2017-04-06 15:34 c3tc3tc3t 阅读(436) 评论(0) 推荐(0)
  2017年3月17日
摘要: 原文 http://www.wellho.net/mouth/985_Equality-in-Ruby-eql-and-equal-.html Equality in Ruby - == eql? and equal? The == comparison checks whether two val 阅读全文
posted @ 2017-03-17 12:24 c3tc3tc3t 阅读(879) 评论(0) 推荐(0)
  2017年3月12日
摘要: 官方文档是 \Z - Matches end of string. If string ends with a newline, it matches just before newline \z - Matches end of string \Z - Matches end of string. 阅读全文
posted @ 2017-03-12 16:39 c3tc3tc3t 阅读(712) 评论(0) 推荐(0)
  2017年1月20日
摘要: # retry用于处理异常中的begin/end代码块中,如果发生异常会重新运行 begin 和 rescue 之间的代码#当retry 被调用的话,begin 和 rescue 之间所有的代码都会被重新跑一次,并不会只跑片段代码或只跑发生异常的代码(0..5).each do |i| begin 阅读全文
posted @ 2017-01-20 12:53 c3tc3tc3t 阅读(424) 评论(0) 推荐(0)
  2017年1月11日
摘要: 原文地址 http://www.gamersonlinux.com/forum/threads/updating-nvidia-drivers-mint.1746/ 主要步骤很简答 就是将ppa仓库地址添加以下 仓库地址 : 1 ppa:graphics-drivers/ppa 点击图中的 ppas 阅读全文
posted @ 2017-01-11 13:07 c3tc3tc3t 阅读(295) 评论(0) 推荐(0)
  2017年1月4日
摘要: 下面这种写法作废了 替换成下面 阅读全文
posted @ 2017-01-04 11:48 c3tc3tc3t 阅读(315) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页