• 想請問關於 Table 的規劃 at 2012年01月02日
    1. 可以用 Polymorphic Associations 来处理 Log 和不同类型的 target 之间的关系,具体参照文档:http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
    2. 我建议 Vote 也不要分成两个表,仍然可以用 Polymorphic Associations 来处理
  • bundle install 出错 at 2012年01月01日

    在 windows 下面搞 ruby/rails 会出人命的。。

  • Rails3.2 is coming? at 2011年12月16日

    期待..

  • 一个高产社区活跃分子的公司,比方前 7 楼中的 6 位... :)

  • Committed!

  • 中文 Railscast 第一期上线 at 2011年12月09日

    啊,这周太忙了居然错过了发布会,赞,顶之!!加油@poshboytl 现在就去观看 :)

  • 那些技术名词的读音问题 at 2011年12月09日

    intridea /in'tridiә/

  • #1 楼 @s6520643 北京这边的活动不好搞啊.. 我知道的很多人不是觉得活动地方太远就是整天忙着加班,搞了五六次感觉大家参与热情还是不高... 可能也和活动质量和组织方式有一定的关系,但是不管如何一开始都需要有一批 Ruby/Rails 的铁杆粉丝积极参与才行.. Anyway, 希望借助 RubyChina 这个社区认识更多的同行,以后 Ruby 社区的活动才可能在各地更好的开花结果 :) 祝福。

    BTW,羡慕沪杭一带的朋友们~

  • ack +1

  • 顶之!也一直有类似的想法,但是 Rails 更新太快,总觉得很难控制 Podcast 的难度和问题规模,所以建议像做开源项目一样能有几个人员一起 Contribute

  • 很同意 @fredwu 关于 Cucumber 的观点,我个人也不喜欢使用 Cucumber。

  • @huacnlee @Rei - 刚意识到可能是 MongoDB 版本太低了。。。 Re-installing.. Thanks!

  • #2 楼 @huacnlee

    db version v1.4.3, pdfile version 4.5
    git hash: 47ffbdfd53f46edeb6ff54bbb734783db7abc8ca
    sys info: Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_37
    
  • @Rei

    andy@Wang-Andys-MacBook-Pro~/github.workspace/ruby-china (master):rails s
    /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr/local/git/bin in PATH, mode 040777
    /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/bundler-1.0.21/lib/bundler.rb:209: warning: Insecure world writable dir /usr/local/git/bin in PATH, mode 040777
    :public is no longer used to avoid overloading Module#public, use :public_folder instead
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/resque-1.19.0/lib/resque/server.rb:12:in `<class:Server>'
    => Booting WEBrick
    => Rails 3.1.1 application starting in development on http://0.0.0.0:3000
    => Call with -d to detach
    => Ctrl-C to shutdown server
    Exiting
    /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongo-1.3.1/lib/mongo/db.rb:506:in `command': Database command 'findandmodify' failed: {"errmsg"=>"No matching object found", "ok"=>0.0} (Mongo::OperationFailure)
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongo-1.3.1/lib/mongo/collection.rb:532:in `find_and_modify'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid_auto_increment_id-0.2.2/lib/mongoid_auto_increment_id.rb:10:in `generate_id'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid_auto_increment_id-0.2.2/lib/mongoid_auto_increment_id.rb:34:in `as_document'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence/operations/insert.rb:27:in `block in persist'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb:26:in `block (3 levels) in prepare'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:390:in `_run_create_callbacks'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb:25:in `block (2 levels) in prepare'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:390:in `_run_save_callbacks'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb:24:in `block in prepare'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb:22:in `tap'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb:22:in `prepare'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence.rb:44:in `insert'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence.rb:149:in `upsert'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence.rb:170:in `block (2 levels) in create'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence.rb:170:in `tap'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence.rb:170:in `block in create'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence.rb:273:in `creating'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/mongoid-2.2.4/lib/mongoid/persistence.rb:169:in `create'
        from /Users/andy/github.workspace/ruby-china/app/models/site_config.rb:53:in `save_default'
        from /Users/andy/github.workspace/ruby-china/config/initializers/default_site_configs.rb:7:in `<top (required)>'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `block in load'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/engine.rb:556:in `block (2 levels) in <class:Engine>'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/engine.rb:555:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/engine.rb:555:in `block in <class:Engine>'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `run'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `run_initializers'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/application.rb:96:in `initialize!'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
        from /Users/andy/github.workspace/ruby-china/config/environment.rb:6:in `<top (required)>'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
        from /Users/andy/github.workspace/ruby-china/config.ru:4:in `block in <main>'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'
        from /Users/andy/github.workspace/ruby-china/config.ru:1:in `new'
        from /Users/andy/github.workspace/ruby-china/config.ru:1:in `<main>'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/rack-1.3.5/lib/rack/builder.rb:40:in `eval'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/rack-1.3.5/lib/rack/builder.rb:40:in `parse_file'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/rack-1.3.5/lib/rack/server.rb:200:in `app'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/commands/server.rb:46:in `app'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/rack-1.3.5/lib/rack/server.rb:301:in `wrapped_app'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/rack-1.3.5/lib/rack/server.rb:252:in `start'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/commands/server.rb:70:in `start'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/commands.rb:54:in `block in <top (required)>'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap'
        from /Users/andy/.rvm/gems/ruby-1.9.2-p290@ruby-china/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'
    
  • 真心希望中国的 Ruby 社区越来越棒!也打算从自己做起,为社区做点事情...

  • #3 楼 @huacnlee @lgn21st 喊"Ping"那段确实比较经典,哈哈~