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

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

    [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**

  • 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

  • rails-app 7

    A Rails project template lets me start new projects quickly.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 数字转数组 at 2012年07月25日

    1428.to_s.split('').map(&:to_i)

    先来一个

  • 我想做一个 photo gallery 这样的应用,怎么创建? at 2012年07月25日

    #19 楼 @1272729223 恭喜 👏 以后添加 gem 别忘重启哈。

  • Rails 如何删除一个已有的数据库表? at 2012年07月25日

    #3 楼 @1272729223 1 楼也是清数据库

  • Rails 如何删除一个已有的数据库表? at 2012年07月25日

    开发阶段的话可以

    rake db:migrate:reset

  • 我想做一个 photo gallery 这样的应用,怎么创建? at 2012年07月25日

    我看不出了。你逐步注释掉一些代码看看是哪里导致出问题。我搜了一下 undefined method `key?' for nil:NilClass 有可能是拼写错误导致的。

  • 我想做一个 photo gallery 这样的应用,怎么创建? at 2012年07月25日

    ImageUploader 生成了吗?

  • 我想做一个 photo gallery 这样的应用,怎么创建? at 2012年07月25日

    错误页面点 Full Trace,贴出来

  • 我想做一个 photo gallery 这样的应用,怎么创建? at 2012年07月25日

    @work 这个实例变量赋值了吗?

    @work = Work.new

  • 我想做一个 photo gallery 这样的应用,怎么创建? at 2012年07月25日

    ActiveRecord 需要给你的 Model 加一个字段,你的例子是要加个 image 字段,string 类型

    还有,错误栈贴全,不然很难判断什么问题。

  • 难道我进步了? at 2012年07月25日

    👍

  • 有没有对办公桌椅有研究的盆友? at 2012年07月25日

    气压椅会爆炸喔!

  • 关于 github 放私人项目问题 at 2012年07月25日

    付费啊,这么好的服务

  • ruby 如何迭代小数,已经指定精度迭代 at 2012年07月25日

    乘一个倍数?

  • 新手问 Rails 更适合什么样的项目 at 2012年07月25日

    #10 楼 @brantyoung 喜欢你的观点 : )

  • 给插画节点凑个数 (AI 练手习作) at 2012年07月25日

    能不能画点不恐怖的 @ @

  • 新手问 Rails 更适合什么样的项目 at 2012年07月25日

    #4 楼 @ColdsterW 在 Web 层面,Rails 是目前最好的框架。我看过很多非 Ruby 程序员对 Rails 的介绍都是错的。Rails 的模块化做得很好,几个大块不满意都可以替换,比如 Ruby China 模型层用了 Mongoid,CodeCampo 的视图模板用了 haml,以后还可能用 slim。但是 Rails 的默认组件对大部分人是最优选择,所以成为了最省时间的 Web 框架。

    Ruby 的现成工具包很多,可以在这里大概浏览一下有没有自己需要的库 https://www.ruby-toolbox.com/

  • 我想做一个 photo gallery 这样的应用,怎么创建? at 2012年07月25日

    用这个

    https://github.com/jnicklas/carrierwave

    存文件就行。

  • Passenger 4.0 将推出收费的企业版本,提供更棒的无缝重启功能 at 2012年07月25日

    好像新功能都是企业版,不过也好,他们公司盈利才能更好的维护开源版。

    touch tmp/restart.txt 是我见过最省心的重启方法。

  • 我已经 gem install 了 execjs 和 therubyracer,为何 Gemfile 中却没有 at 2012年07月24日

    没加进 Gemfile 的 gem,Rails 不会 load。

  • 神奇的 form_for at 2012年07月24日

    魔法!

  • 新手问 Rails 更适合什么样的项目 at 2012年07月24日

    有时我真不知道某些 Pyhtoner 的偏见是从哪来的。

    楼主的需求不需要 Web 端,Rails 是个 Web 框架对楼主帮助不大。

    Python 和 Ruby 都行,看楼主喜欢哪个,库都不缺。

  • Let's Party! at 2012年07月24日

    别回啦,这贴太老了。

  • HTML 5 and HTML Living standard at 2012年07月24日

    Implementations and specifications have to do a delicate dance together. You don’t want implementations to happen before the specification is finished, because people start depending on the details of implementations and that constrains the specification. However, you also don’t want the specification to be finished before there are implementations and author experience with those implementations, because you need the feedback. There is unavoidable tension here, but we just have to muddle on through.

    http://diveintohtml5.info/past.html

  • HTML 5 and HTML Living standard at 2012年07月24日

    #3 楼 @zhex HTML5 压根就不是标准

  • HTML 5 and HTML Living standard at 2012年07月24日

    #1 楼 @zfben 赞同

    吐槽的其实都没明白 Html5 是什么。

  • nginx+passenger 403 forbidden 解决 at 2012年07月24日

    chmod -R 777

    是很不安全的行为,等于说「我不需要安全机制了」

  • 手指受伤了.. at 2012年07月24日

    歪楼成功

  • 手指受伤了.. at 2012年07月23日

    「放手!我的手指不能用了,活在这个世上还有什么意义!」 「你还有我啊!」

  • [分享] 学习 Rails 的过程中遇到的一些陷阱, 新人一定进来看看! at 2012年07月23日

    -编辑掉-

  • rails 创建新闻怎么正确排序显示? at 2012年07月23日

    http://guides.rubyonrails.org/active_record_querying.html#ordering

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