Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
dfang
@dfang
VIP
NO. 1748 / 2012-04-08

ekohe
上海
32 Topics / 254 Replies
2 Followers
0 Following
224 Favorites
GitHub Public Repos
  • ansible-role-rtx 5

    ansible role for rtx

  • bash 2

    homesick bash repository

  • ansible-role-ag 1

  • xgit 1

    git wrapper

  • gin-websocket-demo 0

  • kratos-demo 0

  • supabase 0

    The open source Firebase alternative. Supabase gives you a dedicated Postgres database to build y...

  • go-zero 0

    A web and RPC framework written in Go. It's born to ensure the stability of the busy sites with r...

  • dashboard 0

    Application that helps you create, backtest, deploy, and manage Hummingbot instances

  • hummingbot 0

    Open source software that helps you create and deploy high-frequency crypto trading bots

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • rails project 文件夹下运行 rspec spec 和 rake spec 到底有什么区别 at September 09, 2012

    我都知道原因了,rspec 也可以测试文件夹的 比如 rspec spec/models 运行 spec/models 文件夹下的所有 spec,rake spec 应该只是用 rake 任务包装了一下,当然了也包括一些测试环境的准备工作,现象 2 是因为 gem‘rspec-rails’没有放到 development group 里,这个项目不是我搭的,看看 gemfile 才想到的

  • rails project 文件夹下运行 rspec spec 和 rake spec 到底有什么区别 at September 09, 2012

    不是,肯定是用了 rails g rspec:install 的,因为都有 spec 目录和 spec_helper 等,我没有去建他

  • 类方法可以这么用? at September 09, 2012

    @blueplanet self.find_incomplete 确实是类方法,但是重点是在方法里面的代码啊 Rails c 下,Task.find_incomplete 也是可以调用的

  • 类方法可以这么用? at September 09, 2012

    @blueplanet @fsword find_incomplete 不会出错的啊 @project.tasks 在控制台下确实是数组 但实际上是 Relation .tasks .find_incomplete 调用的都是 sql 语句,至于为什么可以连用,是因为返回的是 AR::Relation,scope 能够连续调用(chaining)和 lazy evaluation 都是因为 AR::Relation 的原因 前不久看过一篇 ROR 的博客写的就是 activerecord 3 的改进,现在我记不得地址了,不过到 speakerdeck.com 去搜 activerecord 可以找到这方面的资料,为了确定我所说的我也建了 demo 试了一下。

  • FactoryGirl 粗浅介绍 at September 09, 2012

    @knwang fabrication 是你们公司的产品? 这里有个 vs, https://gist.github.com/1135434 Fab 还没用过,factorygirl 了解得多一点,应该足够用了

  • FactoryGirl 粗浅介绍 at September 09, 2012

    #8 楼 @benzhang 插入的这点时间相比整理和维护测试数据的 不值一提啊

  • rails project 文件夹下运行 rspec spec 和 rake spec 到底有什么区别 at September 08, 2012

    @pobing 有个项目下 rake -T spec 是空的,这是怎么回事? rspec,rspec-rails 的版本都是 2.10 的

  • rails project 文件夹下运行 rspec spec 和 rake spec 到底有什么区别 at September 08, 2012

    rake spec 既然是执行所有测试,为什么会出现现象 2 呢

  • 问个很白痴的问题,怎么知道一个 gem 的最新版本 at September 07, 2012

    gem list paperclip -ar | grep 'paperclip ' -a -> --all -r -> --remote

  • 使用 vundle 安装 ZenCoding 没有效果 at August 28, 2012

    @chucai 用 sparkup 把,sparkup 有占位符的概念,div.header>a.active 展开后,鼠标焦点应该就在 a 的 href 属性上,直接接着写,zencoding 的话就还要移动光标

  • vmware + mac os x mountain lion 环境下 .railsrc 不起作用 at August 28, 2012

    @messiahxu 刚细看了下说明,点右上角的 skip ad 就可以了,所以你就在这里下好啦,应该一样的

  • vmware + mac os x mountain lion 环境下 .railsrc 不起作用 at August 28, 2012

    @messiahxu 是这个 team(souldevteam.net)做的,OS X Mountain Lion 10.8 Retail VMware Image 的链接在这里,不过貌似不能下

  • Cloud Foundry 中文网上课程 at August 27, 2012

    @genedna 应该没把,官网的文档都不全呢 不过之前看过这样的文章,内部人写的,cf 源码就在 github 上 http://qing.weibo.com/tj/88ca09aa330004r8.html http://qing.weibo.com/tj/88ca09aa33000975.html

  • vmware + mac os x mountain lion 环境下 .railsrc 不起作用 at August 27, 2012

    可能是 rails 版本得问题 我装 rvm 的时候,带了--rails 装上的是 3.1.1,后来装了 3.2.8 就好了

  • vmware + mac os x mountain lion 环境下 .railsrc 不起作用 at August 27, 2012

    vmware image , 也就是说安装好了 mac os 的 vmdk(vmware disk image)文件

  • vmware + mac os x mountain lion 环境下 .railsrc 不起作用 at August 26, 2012

    #1 楼 @huacnlee 有的 给你几个链接 http://ruby-china.org/topics/4421 http://decielo.com/articles/377/haml-by-default-in-a-new-rails-3-2-app http://natashatherobot.com/2012/08/07/how-to-configure-your-rails-defaults/

  • 第一次用 Rails 开发网站 at August 25, 2012

    awesome !

  • 很好的 vim 套件 at August 23, 2012

    @stc 早没用 ctrlp 了,ctrlp 不支持带空格的模糊匹配 我问过作者了 他说他做 ctrlp 是模仿了 fuzzyfinder 的 呵呵,fuzzyfinder 过于强大 很多功能我用不到

  • 我的一套 vim 配置在 ubuntu 下好好的,在 mac osx 很乱,怎么调下? at August 21, 2012

    #1 楼 @jinleileiking 可以在 pc 上装个黑苹果 配个苹果的小键盘 这样可以吗?就是不知道有没有 10.8 的?

  • 我的一套 vim 配置在 ubuntu 下好好的,在 mac osx 很乱,怎么调下? at August 21, 2012

    #2 楼 @lihuazhang 有的

  • 我的一套 vim 配置在 ubuntu 下好好的,在 mac osx 很乱,怎么调下? at August 21, 2012

    #1 楼 @jinleileiking 公司电脑都是 imac 再去虚拟 ubuntu 麻烦啊

  • 谁说 Ubuntu 好用? at August 19, 2012

    @yesmeck ubuntu 自带的 vim,不是 vim-full,好像是 vim.tiny,阉割版 ibus 有 google 拼音的啊

  • Rails 开发特配 vimfiles 文件 at August 19, 2012

    @wongyouth 请问你说的 " 有些 zencoding 可以的 sparkup 做不到“是指的哪些呢,我现在装的是 sparkup

  • 分享几个 Vim 的教学视频 URL at August 18, 2012

    一个不错的 slide http://walking-without-crutches.heroku.com

  • 为什么你们用 Vim 和 Textmate 而不用 IDE at August 18, 2012

    #4 楼 @ywencn railsdoc.com 很不错,要是有英文或中文版的多好啊 #29 楼 @cxh116 这两个插件安装顺序有讲究,一定要先装 supertab,我就碰到这样的问题,snippets 无效

  • vim 怎么配置快捷键可以显示 snippets? at August 17, 2012

    @huobazi 汗,你没看明白还是我没说清楚呢?我知道是按 tab 补全我装了 supertab 我是问是否能设置一个快捷键,能列出该文件类型所能用到的 snippets,比如在编辑 erb 的时候,按下它,以 prompt 的方式列出 ff , lia 等等 erb snippets

  • pry 代替 Rails console 的 irb,不用加进 Gemfile at August 16, 2012

    @doitian 我用的 0.0.5 也报错了

    /home/ror/.rvm/gems/ruby-1.9.3-p125/gems/pry-rails-0.2.1/lib/pry-rails.rb:3:in require': cannot load such file -- pry (LoadError) from /home/ror/.rvm/gems/ruby-1.9.3-p125/gems/pry-rails-0.2.1/lib/pry-rails.rb:3:in' from /home/ror/.rvm/gems/ruby-1.9.3-p125/gems/rails-console-pry-0.0.5/bin/rails-console-pry:38:in require' from /home/ror/.rvm/gems/ruby-1.9.3-p125/gems/rails-console-pry-0.0.5/bin/rails-console-pry:38:in' from /home/ror/.rvm/gems/ruby-1.9.3-p125/bin/rails-console-pry:19:in load' from /home/ror/.rvm/gems/ruby-1.9.3-p125/bin/rails-console-pry:19:in

    ' from /home/ror/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in eval' from /home/ror/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in'

    我有装 pry,pry-doc 等的 环境: rails 3.2.8 rvm 1.14.12 ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux] ubuntu 12.04 server

  • 如何分析 github Oauth 返回的 hash 的结构 at August 14, 2012

    用 pry 设置个断点,request.env['omniauth.auth'] 取,console 下看的一清二楚

  • Happycast: git add 使用总结 at August 13, 2012

    @sundevilyang 的确是看不到

  • tmux 下 vim 有些行为很怪异 at August 11, 2012

    @yesmeck 新建了一个用户,再试,竟然没有这个问题,真心伤不起

  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 7
  • 8
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English