很早就在多看阅读上面买了《Mac 元编程》。
赞!顶上去!!!
#7 楼 @blacktulip 没发现大哥老早就分享了。
纯帮顶,支持家乡企业。
赞!环境真好!!!
赞!
求赐尝鲜:jijin.huang2012#gmail.com谢谢
支持,支持,可惜人不在广州。
默默点赞。
谢谢楼主,恭喜楼主。
刚好补补编码有关的知识,谢谢分享。
@jxs471494539 来晚了,求分享 [email protected]
顶!
赞!
没英雄救美?
顶!!!
直接 @user.update_attribute(:password, "123456"), 不知道可不可以。
先让项目跑起来,点哪块看哪块。
知乎?
个人感觉不太好。
#104 楼 @karidyang 如果你用 firefox,装个 epubreader 插件就行了。
哈哈!你冒泡了。
@huacnlee 华顺你好,请问 ruby-china 源码 gemfile 里这样
gem 'grape', :github => 'intridea/grape', :branch => 'frontier'
然后
bundle install
Updating git://github.com/intridea/grape.git
fatal: ambiguous argument 'frontier': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
Git error: command git rev-parse frontier
in directory
/Users/hjj/.rvm/gems/ruby-1.9.3-p392/cache/bundler/git/grape- c77c5fb0336b00082cc45f4584f3dddedc8cb513 has failed.
If this error persists you could try removing the cache directory
'/Users/hjj/.rvm/gems/ruby-1.9.3-p392/cache/bundler/git/grape- c77c5fb0336b00082cc45f4584f3dddedc8cb513'
改成
gem 'grape'
bundle install 通过,但是启动却这样
ruby-china git:(master) ✗ rails s
=> Booting Thin
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/hjj/open_source/ruby-china/app/grape/entities.rb:5:in <module:APIEntities>': uninitialized constant Grape::Entity (NameError)
from /Users/hjj/open_source/ruby-china/app/grape/entities.rb:4:in
module:RubyChina'
from /Users/hjj/open_source/ruby-china/app/grape/entities.rb:3:in <top (required)>'
from /Users/hjj/.rvm/gems/ruby-1.9.3-p392/gems/backports- 2.6.7/lib/backports/tools.rb:314:in
require'
在 app/grape/entities.rb 文件里 require‘grape’也不行,该怎么改呢