
ruby
文章平均质量分 54
iteye_2629
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ruby、rails学习资源
一、ruby白魔法书 http://www.infoq.com/cn/articles/ruby-white-magic-book 二、infoq社区的ruby http://www.infoq.com/cn/ruby/ 三、TDD学习rubyhttp://rubykoans.com/ 四、猴子补丁http://monkeyandcrow.com/ 五、...原创 2014-07-02 13:45:24 · 210 阅读 · 0 评论 -
devise cancancan rolify 权限认证
http://d.hatena.ne.jp/htz/20140718/1405690417 http://www.tonyamoyal.com/2010/07/28/rails-authentication-with-devise-and-cancan-customizing-devise-controllers/ http://arubystory.blogspot.com/...原创 2014-11-02 21:21:00 · 221 阅读 · 0 评论 -
rubymine性能调优
一.禁用不要的插件 二.jvm参数调整 cd rubymine_dir/binvim rubymine.vmoptions-Xms128m-Xmx2048m-XX:MaxPermSize=500m-XX:ReservedCodeCacheSize=128m-XX:+UseCodeCacheFlushing-XX:+UseCompressedOops...原创 2014-10-02 13:29:06 · 221 阅读 · 0 评论 -
mac mini配置ruby开发环境
一.安装xcodeAppStore 二.安装homebrew# http://brew.shruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 三.安装rvmcurl -L https://get.rvm.io | bash -s sta...原创 2014-09-30 17:42:18 · 169 阅读 · 0 评论 -
ruby工具箱
https://rubygems.orghttps://www.ruby-toolbox.com/ https://www.ruby-toolbox.com/categories/by_name https://www.ruby-forum.com/ 古老!!! http://guides.rubyonrails.org/http://rubyonrails.org...原创 2014-09-22 12:23:39 · 568 阅读 · 0 评论 -
rmagick使用教程
一.基本用法http://www.iteye.com/topic/125487 二.汇总http://www.iteye.com/topic/706242 三.安装https://github.com/rmagick/rmagick/wiki/Installing-on-Ubuntu原创 2014-08-25 09:41:03 · 229 阅读 · 0 评论 -
99宿舍四六级成绩查询模拟ruby版本和curl版本
一.ruby版本,需要使用curb gem# encoding: UTF-8require 'curb'#99宿舍网页是GBK的CET_NUM = "xxxxxxxxxxxx"CET_NAME = "xxxx".encode('gb2312', 'utf-8')user = { :name => CET_NAME, :id => CET_NUM...原创 2014-08-20 17:12:08 · 165 阅读 · 0 评论 -
block, lambda, proc的区别
The second difference is that lambdas have diminutive returns. What this means is that while a Proc return will stop a method and return the value provided, lambdas will return their value to the met...原创 2014-07-24 20:02:01 · 153 阅读 · 0 评论 -
ruby元编程资源
1.ruby中的单件方法http://www.devalot.com/articles/2008/09/ruby-singleton 2.ruby书架http://pragprog.com/ 3.ruby selfhttp://yehudakatz.com/2009/11/15/metaprogramming-in-ruby-its-all-about-the-sel...原创 2014-07-24 13:49:52 · 102 阅读 · 0 评论 -
rails无限级分类实现
一.左右值算法https://github.com/collectiveidea/awesome_nested_set 二.自实现https://ruby-china.org/topics/20322原创 2014-07-04 23:21:41 · 217 阅读 · 0 评论 -
ruby语言注意事项
每一门语言都有其独特之处,今天我就来聊聊ruby的独特之处1.ruby中除了nil为false,其他都为true2.ruby中的string是可变的,string类中有一系列修改字符串的方法。例如[]= << ruby中的数值对象是不可变的3.ruby中的block3.times { print "ruby }#do end1.upto(10) ...原创 2014-07-04 13:02:44 · 183 阅读 · 0 评论 -
rails 4 自定义脚手架配置
一.建立rails 4 项目rails -v # => 4.1.7rails new customgenerator --skip-bundle# edit the gem source in Gemfilecd customgeneratorbundle installrails s# visit http://127.0.0.1:3000/ 二.添...原创 2014-11-04 10:47:28 · 157 阅读 · 0 评论