Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Rei
@Rei
管理员
第 1 位会员 / 2011-10-28

[email protected]
深圳
188 篇帖子 / 9165 条回帖
731 关注者
0 正在关注
11 收藏
中下水平 Rails 程序员
打赏作者
GitHub Public Repos
  • writings 941

    [Closed] Source code of writings.io

  • alipay 732

    Unofficial alipay ruby gem

  • code_campo 291

    [Closed] Source code of http://codecampo.com

  • asciidoctor-pdf-cjk-ka... 101

    **no longer maintained**

  • geeknote 34

  • asciidoctor-htmlbook 31

    Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook docu...

  • material-ui 17

  • rich-text-editor 12

  • htmlrenderer 12

  • rails-chatgpt-demo 8

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 一表关联多个外键的问题 at 2014年05月06日

    #3 楼 @mimosa 不用 gem。

    添加一个 migration

    rails g migration add_birth_place_and_residence_to_model
    

    migrattion 的 change block 里面写

    add_column :table_name, :birth_place, :integer
    add_column :table_name, :residence, :integer
    

    完成。外键带 _id 是 Rails 的约定,破坏约定会增加维护者的沟通成本。

    楼主要完整看看 http://guides.rubyonrails.org/migrations.html

  • 有没有使用 capistrano 的个人站长?有没有觉得这种部署方式很慢? at 2014年05月05日

    #3 楼 @ddyy 哇,万一一个 reset……

  • 有没有使用 capistrano 的个人站长?有没有觉得这种部署方式很慢? at 2014年05月05日

    是慢,不过用的人多,我相信一定有道理。

  • 如何自定义 has_secure_password 错误信息? at 2014年05月04日

    https://github.com/svenfuchs/rails-i18n

  • 求推荐开源的 IT 设备 / 资产管理系统 at 2014年05月04日

    纸和笔。

  • 如何在 html.erb 文件中写 coffeescript 呢? at 2014年05月04日

    #8 楼 @xiongxin8802 http://chloerei.com/ 看这里

  • [已解决] 我访问不了《在 Ubuntu 12.04 Server 上安装部署 Ruby on Rails 环境》 at 2014年05月03日

    #15 楼 @zhaiyingchang

    scp filename username@hostname:/home/username
    ssh username@hostname
    sudo cp filename /etc/nginx/sites-enabled/
    

    #17 楼 @zhaiyingchang

    1) 不必须。可以 2) 把 server_name 后面的 example.com 改成你的域名,同时域名 DNS 的 A 记录指向服务器 IP。

  • [已解决] 我访问不了《在 Ubuntu 12.04 Server 上安装部署 Ruby on Rails 环境》 at 2014年05月03日

    我是用 vi 编辑那个文件的,你可以在本地编辑好再放到服务器上同一个地方。

  • [已解决] 我访问不了《在 Ubuntu 12.04 Server 上安装部署 Ruby on Rails 环境》 at 2014年05月03日

    可供参考 https://github.com/ruby-china/wiki/wiki/Ubuntu-12.04-%E4%B8%8A%E4%BD%BF%E7%94%A8-Nginx-Passenger-%E9%83%A8%E7%BD%B2-Ruby-on-Rails

  • gem install nokogiri 失败: Error installing nokogiri at 2014年05月03日
    sudo apt-get install libxslt-dev libxml2-dev
    
  • DHH TDD Is Dead 续 at 2014年05月02日

    You'll be hard pressed to even find a development machine today that doesn't have gobs of RAM, an SSD drive, and a speedy CPU.

    Orz 我还没买 SSD

  • 如何在 html.erb 文件中写 coffeescript 呢? at 2014年05月02日

    #6 楼 @xiongxin8802 哪个链接?博客运作正常,访问不了可能是网络问题。

  • 如何在 html.erb 文件中写 coffeescript 呢? at 2014年05月02日

    #2 楼 @xiongxin8802 看 Turbolinks。

  • [北京][2014年5月8日] 五一节后 RubyThursday 线下活动召集 at 2014年05月01日

    鲁葳也加入貔貅了?

  • 在 Ubuntu 14 上搭建 ROR 环境 at 2014年05月01日

    passenger 的 deb 包还没打好,我在等更新。

  • 消息提示页面的异常 at 2014年05月01日

    @huacnlee 现在是用 newrelic 监控异常?

  • 有关 hstore 读取的问题 at 2014年05月01日

    Ruby 的 Hash 本来就认为 symbol 和 string 是不一样的,在 Rails 里面 params 不分 symbol 和 string 是做了特殊处理。

  • rspec 测试中编辑 factorygirl 生成的对象的疑惑 at 2014年05月01日

    疑问在哪?

  • 再回顾一遍 Ruby Gotchas at 2014年04月30日

    我取消精华了。

  • 谁有 Rails 操作数据库的所有方法的文档或者网站吗? at 2014年04月29日

    http://guides.rubyonrails.org/

  • Rspec 是在 Rails 目前用的最多的测试框架吗? at 2014年04月29日

    顶楼列举的有些是测试工具而不是框架,是要和 Test::Unit 和 Rspec 搭配用的,所以只比较这两个。

    从 Ruby Conf China 2013 的现场举手投票来看,Rspec 大概占到了 9 成。不过我是 Rspec 反对者,认为这套 DSL 徒增复杂性,不如 Test::Unit 简单明了。

    写测试性价比高,推荐写够用的测试,但写多少是够有并没有标准,需要自己琢磨。

  • DHH: TDD is dead. Long live testing. at 2014年04月28日

    #47 楼 @lilu

    If your TL;DR of my talk and post on TDD was "great, I don't have to write tests!", your comprehension skills are inadequate. Level up.

    https://twitter.com/dhh/status/459329011420647424

  • 如何实现论坛中 @ 用户的功能 at 2014年04月28日

    #4 楼 @mosky 用户名限制了英文、数字还有杠,就没有空格问题了。

  • 终于也忍不住了 at 2014年04月28日

    #1 楼 @yangjie6020 楼主心里一凉。

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