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

[email protected]
深圳
188 篇帖子 / 9160 条回帖
730 关注者
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 无意中发现一个超级坑爹的 git 特性 at 2012年08月04日

    #6 楼 @Saito 目睹了整个事件的刘先生

  • 无意中发现一个超级坑爹的 git 特性 at 2012年08月04日

    The advantages of Git compared to other source control systems.

    http://git-scm.com/

    这话题太无聊了,估计要叫 iGit 就万事大吉了。

  • 无意中发现一个超级坑爹的 git 特性 at 2012年08月04日

    Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.

  • Rails 其实有点像 Delphi. at 2012年08月04日

    #7 楼 @ywjno 那你会去用 cobol 吗?

  • rails 返回 json 格式的数据时在列表里新加一个属性 at 2012年08月04日

    建议用 jBuilder

  • 我用脚手架生成的新闻,如何用不同的 layout 嵌套 index,show 和 new,edit 文件? at 2012年08月04日

    #2 楼 @1272729223 可喜可贺 😃

  • Rails edge 终于加入了 live streaming.. at 2012年08月04日

    以后部署除了选择 server 外,还要选择运行模式,更多可玩的了~

  • Rails edge 终于加入了 live streaming.. at 2012年08月04日

    #3 楼 @huacnlee app server 需要改进,Is it live 里面写到能实现 live streaming 同时不阻塞进程的有 Rainbows!, Puma, 和 Thin。1 楼 passenger 里面的文章分析了多进程,多线程和事件模型的区别,以后 passenger 企业版会提供三种运行模式选择。

  • 我用脚手架生成的新闻,如何用不同的 layout 嵌套 index,show 和 new,edit 文件? at 2012年08月04日

    http://guides.rubyonrails.org/layouts_and_rendering.html#finding-layouts

  • Rails edge 终于加入了 live streaming.. at 2012年08月04日

    要实现更丰富的应用体验,这个特性是必需的了。live streaming 可以减少对其他并发工具的依赖。

  • Rails edge 终于加入了 live streaming.. at 2012年08月04日

    Why Rails 4 Live Streaming is a big deal

    http://blog.phusion.nl/2012/08/03/why-rails-4-live-streaming-is-a-big-deal/

  • validates_uniqueness_of 的必要性? at 2012年08月03日

    #7 楼 @iwinux 是的。短时间内发生冲突,算是小概率事件了,给个统一错误就好。除非是商场抢拍这样的操作,就个别处理。

  • validates_uniqueness_of 的必要性? at 2012年08月03日

    加个模型校验,做提交前的客户端校验比较方便。

  • unicorn 使用简介 at 2012年08月03日

    #1 楼 @evan 流水不腐,户枢不蠹

  • Phusion Passenger 企业版发布! at 2012年08月03日

    #8 楼 @lgn21st $99/yr 其实挺便宜的。

  • 一些关于部署的疑问,求解惑 at 2012年08月03日

    #2 楼 @Zernel 你需要的 cap 都提供了。

  • 缓存页面失效 expire_page at 2012年08月01日

    如果用 Redis 缓存,可以用 Hash 类型储存,实现批量过期。印象中 redis_store 只用了 key-value,所以得自己写逻辑。

  • Rails should have data migration. at 2012年08月01日

    看来 @bhuztez 完全没了解过 Rails 就来推广 Django。

    http://guides.rubyonrails.org/migrations.html

  • Rails 程序员的 Linux 需要学到什么程度。。。 at 2012年08月01日

    会部署应用、数据库、其他工具,跑定时任务,备份,权限管理

  • 大家能帮忙推荐本讲部署或者服务器方面的入门好书么? at 2012年08月01日

    Phusion Passenger design & architecture

    http://www.modrails.com/documentation/Architectural%20overview.html

  • 大家能帮忙推荐本讲部署或者服务器方面的入门好书么? at 2012年08月01日

    Deploying Rails: Automate, Deploy, Scale, Maintain, and Sleep at Night http://pragprog.com/book/cbdepra/deploying-rails

  • assets 不在 public 下面的目录,应该怎么设 at 2012年08月01日

    #3 楼 @fei0456116

    <%= link_to File.basename(f.redocument.url), "/uploads/#{f.id}/#{File.basename(f.redocument.url)}" %>
    

    这里就可以推出,如果想直接显示图片

    <%= image_tag "/uploads/#{f.id}/#{File.basename(f.redocument.url)}" %>
    

    当然,这个地址的生成应该写成一个 model 方法。

  • Class & SuperClass at 2012年08月01日

    superclass 不就是 class 的爸爸吗?

  • false.blank? 居然返回的是 true at 2012年08月01日

    #12 楼 @smoothdvd

    我觉得楼主表达有问题,是否存在是用这个

    defined?(var)
    

    但我觉得楼主要用的是

    var == false
    var != true
    
  • assets 不在 public 下面的目录,应该怎么设 at 2012年08月01日

    https://github.com/jnicklas/carrierwave/wiki/How-To%3A-Secure-Upload

  • 在现有的 rails 网站上,如何快速的增加其他语言啊? at 2012年07月31日

    我用这个顺序确定语言

    def set_locale
      I18n.locale = set_locale_from_user || set_locale_from_accept_language_header || I18n.default_locale
    end
    

    https://github.com/chloerei/code_campo/blob/master/app/controllers/application_controller.rb#L14

  • bundle install 时的问题 at 2012年07月31日

    #12 楼 @gugugupan 现实是新的包不再兼容 1.8,比如 Rails 4.0

  • bundle install 时的问题 at 2012年07月31日

    #10 楼 @gugugupan rvm 可以管 gemsets(这个功能基本弃用)

    先切换到 ruby 1.8.7 再升级 rubygems

    其实解决不了也可以不管了,1.8.7 逐渐弃用了。

  • bundle install 时的问题 at 2012年07月31日

    #8 楼 @gugugupan 如果你装了两个 ruby,他们分别会有不同版本的 rubygems。

  • bundle install 时的问题 at 2012年07月31日

    #4 楼 @gugugupan 这个是 1.8.7 的 rubygems 吗?(不把亲删掉我就不回了)

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