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

[email protected]
深圳
188 Topics / 9155 Replies
730 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 仅后台页面使用 bootstrap 而前台不使用,这样可以么? at April 07, 2014

    #1 楼 @hanluner 正解。

  • Campo 3 发布 at April 07, 2014

    #104 楼 @runup 没有太多程序文档,只有安装部署相关的文档 https://github.com/chloerei/campo/wiki

    而且安装过程我正在简化成一个 shell 脚本,wiki 近期会过时。

  • Rails 4 中 coffee 的问题 at April 06, 2014

    用 <script> 写到页面内。

  • ajax 问题 at April 06, 2014

    #20 楼 @wudixiaotie 是的。

  • 再次请求一个问题,还是内存溢出 at April 05, 2014

    #2 楼 @xwf286 top 直接看内存占用啊

  • ajax 问题 at April 05, 2014

    #17 楼 @wudixiaotie slim 不是用来生成 js 的。

  • 再次请求一个问题,还是内存溢出 at April 05, 2014

    内存不够大。

  • Action_controller 执行完一个 action 后为什么直接执行下一个 action 了? at April 05, 2014

    http://apidock.com/rails/AbstractController/Base/process

    process 是内置方法,换名。

  • Action_controller 执行完一个 action 后为什么直接执行下一个 action 了? at April 05, 2014

    ArgumentError in AmountController#index

    异常是在 index action 里面抛出的。日志没贴全判断不了。

  • 部署 Rails 起码要一台 VPS,有什么低开销的方案? at April 05, 2014

    静态网站好,Jekyll 好。

  • 部署 Rails 起码要一台 VPS,有什么低开销的方案? at April 05, 2014

    https://www.strikingly.com/ ?

  • ajax 问题 at April 04, 2014

    #15 楼 @wudixiaotie http://signalvnoise.com/posts/3697-server-generated-javascript-responses

  • css 文件在 pipeline 中的问题 at April 04, 2014

    这部分单独处理,不走 assets pipeline。

  • [新手] 关于 ModuleA::ClassA = ModuleA::ClassB 的问题 at April 03, 2014

    Ruby 里面大写开头的变量叫做常量,虽然叫做常量但是可以重复赋值,只是第二次赋值时解析器会输出警告。

    类名也是个常量,比如可以动态生成一个类然后赋值给常量

    A = Class.new do
      def bar
        "bar!"
      end
    end
    A.class
    #=> Class
    A.name
    #=> "A"
    A.new.bar
    #=> "bar!"
    

    跟下面几乎等价(我没研究过区别):

    class A
      def bar
        "bar!"
      end
    end
    
  • [新手] 关于 ModuleA::ClassA = ModuleA::ClassB 的问题 at April 03, 2014
    1. 问题是什么?
    2. 什么项目?
  • 有没有对本科生的一些建议? at April 02, 2014

    练习写文章,语句要通畅。

  • 将 HTML 保存到数据库,怎样让页面显示不显示代码,而显示效果 at April 02, 2014

    又来了,《别用 raw 和 html_safe》http://ruby-china.org/topics/16633

  • [北京] 触控科技有限公司招聘 Ruby 服务器开发人员 1 名 at March 31, 2014

    楼主连发 3 贴,觉得合适吗?

  • bundle 报错,大神们求救, at March 31, 2014

    翻墙看看。

  • 做 MySQL 的查询缓存,或者 Model 方法的缓存,有什么好方法? at March 31, 2014

    #3 楼 @ihlayy 没场景讨论不了。应该先把这里看一次 http://guides.rubyonrails.org/caching_with_rails.html

  • 做 MySQL 的查询缓存,或者 Model 方法的缓存,有什么好方法? at March 31, 2014

    要给出场景才知道要用什么缓存机制啊。

    如果是缓存一个查询

    def something_need_to_cache
      Rails.cache.fetch('some_key') do
        where(CONDITIONS).to_a
      end
    end
    
  • slim 应该怎么写这句<input id="fileupload" type="file" name="files []" data-url="<%= manage_images_path %>" multiple /> at March 31, 2014

    http://html2slim.herokuapp.com/

    input#fileupload data-url=manage_images_path multiple="" name="files[]" type="file"
    
  • Linode vs DigitalOcean 稳定性对比 at March 30, 2014

    #6 楼 @moliliang 这是谈主机稳定性还是中国特色的网络稳定性?如果是后者那没个准的。

  • 如果让你推荐 “离开就不能活” 的工具,你会说……?(主要 Mac 下,其他平台也可推荐) at March 29, 2014

    vpn

  • 请教一个关于 link_to 的问题 。 at March 29, 2014

    #4 楼 @monsoon 试过了就回不去了

  • 请教一个关于 link_to 的问题 。 at March 29, 2014

    这段 js 是放在什么位置执行的,估计跟 turbolinks 有关。

  • 更新一下侧边栏 CNode 图片吧 at March 29, 2014

    搞掂。

  • 请教如何对验证的错误提示信息,进行本地化 at March 29, 2014

    http://guides.rubyonrails.org/i18n.html#active-model-methods

    ActiveModel::Errors#full_messages prepends the attribute name to the error message using a separator that will be looked up from errors.format (and which defaults to "%{attribute} %{message}").

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