Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
tian
@chentianwen
高级会员
第 1304 位会员 / 2012-03-06

0 篇帖子 / 43 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 一个美国人眼中的中国 (如果大家感兴趣的话) at 2013年12月20日

    syd 確實很荒涼的。。。

  • 活着的意义 at 2013年11月21日

    新陳代謝和繁殖後代都是動物做的,我們是人,有思考能力的。

    不要糾結於活著的意義,因為人生本沒有意義,你思考得出得只會是人生的目標,所以趁早做自己喜歡的事情就好。

  • ActiveResource 是用 HttpMock 来测试吗? at 2013年11月21日

    用這個可以自動捕捉和紀錄 http request & request

    https://www.relishapp.com/vcr/vcr/v/1-6-0/docs/test-frameworks/usage-with-rspec

  • Writings.io 失败了 at 2013年09月27日

    @Rei,有參考過http://ghost.org/麼?他們好像還幾成功

  • ruby 生成目录问题 at 2013年08月19日

    FileUtils.mkdir_p '/usr/local/lib/ruby'

  • Sublime Text 3 Beta 向非注册用户开放了! at 2013年07月09日

    #16 楼 @blacktulip nice

  • Sublime Text 3 Beta 向非注册用户开放了! at 2013年07月08日

    #8 楼 @blacktulip multiple selection is the most useful feature. not sure how this is done in vim.

  • Font Awesome 在 rails 中怎么用? at 2013年06月19日

    helper?

  • [深圳] Knewone.com 招聘 Ruby/Javascript/iOS 程序员 at 2013年06月07日

    同问 freelancing

  • 昨天发生的灵异现象 at 2013年06月03日

    #3 楼 @metal haha, you should have used the private mode...

  • 掉到 Array 链式调用的坑里了 at 2013年05月23日

    don't abuse the bang methods

  • Rei 关于你的 writings.io at 2013年04月23日

    @Rei Hi Rei,我今天看见有一个叫“简书”的上线了,不知道你有留意到嘛?

  • [远程] Senior Ruby on Rails Developer for US-based Start Up at 2013年04月16日

    @tylerlong 想知道公司工作文化如何?working hard or working smart?还有平时小组怎么交流?有用任何 agile framework 么,例如 scrum?

  • [远程] Senior Ruby on Rails Developer for US-based Start Up at 2013年04月15日

    有公司网站看看么?

  • 如何把 erb 换成 slim at 2013年03月12日

    slim 处理空格不是很理想。之前试用过一段时间又转回用 haml 了

  • 多用户使用 rvm 安装的 ruby at 2013年03月11日

    @xiaoronglv ywjno 同学解释了 rvmsudo

  • 多个项目共用 activerecord? at 2012年11月30日

    你可以把一套 activerecord 做成一个 rails_engine 的 gem,然后就可以在 gemfile 里面引用了

  • respond_with (@obj,location:where_path) 怎么传递参数? at 2012年11月09日
    def create
      @user = User.new(params[:user])
      flash[:notice] = "User was successfully created." if @user.save
    
      respond_with(@user) do |format|
        format.html { redirect_to params[:back] }
      end
    end
    
  • 问一个有关 ruby 作用域的问题 at 2012年11月09日

    而实例变量是无法调用 private 方法的

    other=self 只是说默认传入自身作为参数,但是 other 在这里是一个变量,不是 self

  • OS X 下的 iTerm 2 如何让 cursor 跳字移动? at 2012年10月19日

    #2 楼 @artone That's the example file of inputrc, you don't need to change the iterm2 or terminal configuration.

  • 想使用 rails 做一个常在线的 gtalk 机器人, 如何让这个机器人 run 起来? at 2012年10月19日

    try daemon?

  • OS X 下的 iTerm 2 如何让 cursor 跳字移动? at 2012年10月17日
    # ~/.inputrc
    
    ## Key binding
    # @see `bind -p`
    # @format "key": command
    $if mode=emacs # find the keyboard preference in mac terminal
        "\e[3~":              delete-char             # del
        "\e[1~":              beginning-of-line       # home
        "\e[4~":              end-of-line             # end
        "\x1B\x1B\x5B\x44":   backward-word           # opt + left
        "\x1B\x1B\x5B\x43":   forward-word            # opt + right
        "\e[B":               history-search-forward  # down
        "\e[A":               history-search-backward # up
        # no magic-space. not working in postgres console
        #Space:                magic-space
    $endif
    
  • if 与 ||=的优先级 at 2012年10月12日

    Ruby language precedence http://www.ruby-doc.org/docs/ProgrammingRuby/language.html#table_18.4

  • update_attributes 老是更新不成功,也没错误提示。 at 2012年09月19日

    hmmm, looks like you have unique check for the nickname. take a look whether you have two users with same nickname, and remove one of them.

  • GitCafe Beta 正式公开上线 at 2012年09月17日

    ... github clone?

  • 多用户使用 rvm 安装的 ruby at 2012年09月17日

    rvmsudo

  • 关于 Http 的几个方法的理解 at 2012年09月07日

    Reference would help: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

  • Migration 文件是不是可以 “用后即焚”? at 2012年08月31日

    schema.rb 是用于显示当前数据库结构的,一般会被用于测试环境中,用来创建测试数据库的。最好不要删。

  • 关于 string 的 delete 方法的一个疑问? at 2012年07月03日

    "abcdefgabcdefgaaaaa".gsub(/abcd/, '')

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