Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Rei
@Rei
Admin
NO. 1 / 2011-10-28

[email protected]
深圳
182 Topics / 9132 Replies
727 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • has_many,根据关联的数量排序! at January 10, 2012

    #17 楼 @stephen http://mongoid.org/docs/querying/criteria.html#desc 这是 mongoid 的写法,AR 找 order

  • has_many,根据关联的数量排序! at January 10, 2012

    #13 楼 @stephen 是的,xxx_count 是个魔法字段

  • has_many,根据关联的数量排序! at January 10, 2012

    #11 楼 @stephen 这个是 Mongoid 的实现,ActiveRecord 不用在 Model 设置 field,不过要迁移。根据这个思想改造一下好了。

  • 提问要有方法 at January 10, 2012

    #25 楼 @dota 国你 XX 情,这里是互联网

  • 原来 ruby-china 也可以按 m 键了查看 markdown 语法了 at January 10, 2012

    我这里也连按有黑屏问题

  • 提问要有方法 at January 10, 2012

    ITeye 的投隐功能已经变成老鸟排斥新人的工具了,老是指混论坛年龄,而不是水平。一些有货的帖子被恶性投隐之后,楼主就再也不来了。

  • 提问要有方法 at January 10, 2012

    Block 用户功能!!!类似 V2EX

  • 最近没啥活动嘛~ at January 09, 2012

    过年回家不带电脑

  • rails application 在 server 上的部署? at January 09, 2012

    https://www.ruby-toolbox.com/categories/web_servers

    Passenger 确实比较大众

  • 在 Rails 中做代码高亮,只能依赖 Pygments 这个 Python 写的东东吗? at January 09, 2012

    #20 楼 @huacnlee 看依赖用了这个东西 http://rubypython.rubyforge.org/

  • has_many,根据关联的数量排序! at January 09, 2012

    #7 楼 @huacnlee 应该让 LZ 先贴自己的实现嘛

  • has_many,根据关联的数量排序! at January 09, 2012

    楼主自己的想法是?

  • 求助。。passenger 没法找到 bundle 安装的 git 源的 gem at January 09, 2012

    #3 楼 @bony passenger 的 ruby 环境和用户登录的环境是不同的,找不到 gems。知道--deployment 这个方法后我也懒得找其他方案了。

  • 求助。。passenger 没法找到 bundle 安装的 git 源的 gem at January 09, 2012

    bundle install --deployment

  • 请问网站要如何提供域名绑定的服务? at January 09, 2012

    想了一下,要实现自定义域名,最好先实现子域名

    比如 rei.ruby-china.org 映射到 chloerei.com 很容易,path 都一样

    而 ruby-china.org/users/rei 映射到 chloerei.com 就很痛苦了,每个 path 都要判断要不要加 /users/rei 前缀

  • 在 Rails 中做代码高亮,只能依赖 Pygments 这个 Python 写的东东吗? at January 09, 2012

    #9 楼 @camel 仿照目录结构就行了

    文章可以看看 [Ruby][教學] 如何打包一個 Asset Gem http://blog.xdite.net/posts/2012/01/04/how-to-pack-a-asset-gem/

  • 继 Twitter 发布 Bootstrap 之后,Facebook 的 bootstrapp 也有了 at January 09, 2012

    #3 楼 @ery Bootstrap 模块化很好,熟悉 less 的换肤应该很容易

  • 前台的 views helper 到底慢不慢? at January 09, 2012

    UrlHelper 不是瓶颈

    用 helper 还有个好处是测试的时候可以提早发现问题

  • 提问要有方法 at January 09, 2012

    提问的智慧

    艾瑞克。史蒂文.雷蒙德(Eric Steven Raymond)

    http://www.beiww.com/doc/oss/smart-questions.html

  • 这个 ruby-china 安装是缺少某个插件吗? at January 09, 2012

    https://github.com/huacnlee/ruby-china/blob/master/config/deploy.rb

    task :link_shared_files

    这一步从 #{deploy_to}/shared/ 目录链接了一些配置文件和 assets 目录到 current 目录,要在第一次跑的时候手工 cp 一份。详情我也不是很了解了,或许等 @huacnlee 说说

  • 在 Rails 中做代码高亮,只能依赖 Pygments 这个 Python 写的东东吗? at January 08, 2012

    #2 楼 @richfisher 快去包成 gem~

  • 继 Twitter 发布 Bootstrap 之后,Facebook 的 bootstrapp 也有了 at January 08, 2012

    forked from twitter/bootstrap

    看来是个 mod

  • 在 Rails 中做代码高亮,只能依赖 Pygments 这个 Python 写的东东吗? at January 08, 2012

    用 highlight_js-rails 高亮代码 http://codecampo.com/topics/381

  • 请问网站要如何提供域名绑定的服务? at January 08, 2012

    #4 楼 @anylei 没要自己管理阿

    比如 3 个域名进入 Rails 应用:ruby-china.org, foo.com, bar.com

    ruby-china.org 是网站域名,进入首页

    foo.com 在用户资料里查到,进入个人首页

    bar.com 没查到或者没被批准,抛 404

  • 请问网站要如何提供域名绑定的服务? at January 08, 2012
    1. 用户把域名指向应用服务器
    2. 应用的前端服务器把所有域名都指向 Rails 应用
    3. Rails 应用里面获取 host 来判断路由,这里怎么做比较好我没经验。
  • Ruby/Rails 及相关 26 本英文图书简评 at January 08, 2012

    很好,要挑几本未看的看了

  • view 中的逻辑处理,helper vs draper? at January 07, 2012

    #4 楼 @richfisher

    可以在 Controller

    helper 'users'
    

    也可以在 Helper

    include UsersHelper
    
  • 关于 Devise 的使用问题 at January 06, 2012

    #6 楼 @yfeng 注册页面没有其他信息了吗?

  • 关于 Devise 的使用问题 at January 06, 2012

    #4 楼 @yfeng 然后你发现的异常在哪里?一次把所有你掌握的信息发出来,不要挤牙膏。

  • 创建一个 Golang 的节点,有兴趣的可以多聊聊 at January 06, 2012

    #3 楼 @hujoy 是的

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