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

[email protected]
深圳
182 Topics / 9130 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
  • Render 一个 List 900ms 是不是很慢? 一般多长时间是可以接受的呢? at June 09, 2015

    只有一行日志,什么环境都不说,关键代码没有,这是想解决问题还是猜谜大会?

    正面回答标题:900ms 超慢,我的应用内容多的页面一般 50 ~ 100 ms。

  • [已解决] Rails 生产模式下 CSS 编译错误问题 at June 09, 2015
    $ RAILS_ENV=production bundle exec rake assets:precompile
    

    http://guides.ruby-china.org/asset_pipeline.html#%E4%BA%8B%E5%85%88%E7%BC%96%E8%AF%91%E5%A5%BD%E9%9D%99%E6%80%81%E8%B5%84%E6%BA%90

  • 写了一段 Ruby 代码,但是运行卡住,循环问题 at June 09, 2015

    先格式化代码 https://ruby-china.org/markdown

  • production script cannot work at June 08, 2015

    coffee 没编译。

  • Ruby on Rails 或者 Sinatra 是否可以开发 P2P 的平台 at June 08, 2015

    什么是 P2P 平台?

  • 怎样与别人的前端代码合并? at June 08, 2015

    #35 楼 @chairy11 会变慢,你看日志 render 用了多少 ms 就慢了多少。但是你说的页面慢我估计是别的问题,因为 10 ms 通常感觉不出差别。看 浏览器调试 分析。

  • 怎样与别人的前端代码合并? at June 08, 2015

    #35 楼 @chairy11 留着现在的不动,但是有 public/index.html 在,外部访问进不了这个 action。

  • 怎样与别人的前端代码合并? at June 08, 2015

    #32 楼 @chairy11 root 一定要设置,但是 root_path 就是 '/',等价 <%= link_to '首页', '/' %>,如果是静态页面的话放在 public/index.html。

  • 怎样与别人的前端代码合并? at June 08, 2015

    #29 楼 @chairy11

    <a href="/pages/somepage.html"></a>
    
  • 怎样与别人的前端代码合并? at June 08, 2015

    加载慢你得具体分析,打开浏览器调试器看哪里慢。

  • 怎样与别人的前端代码合并? at June 08, 2015

    #25 楼 @chairy11 静态页面为什么要 render?

  • 怎样与别人的前端代码合并? at June 08, 2015

    public 建个文件夹专门放静态网页,html/assets 都放里面。

  • 骑士今天赢了! at June 08, 2015

    巴萨三冠王!

  • 求问 windows 环境下比较靠谱的 rails 部署方案 at June 08, 2015

    用 thin 代替 mongrel

  • 如何在 View 里面安全的解析 markdown at June 07, 2015
    <%= sanitize render_markdown(post.description) %>
    

    http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html

  • Ruby post 发送 form-data 数据 at June 07, 2015

    #9 楼 @glorySpring 别自己设置头了,看 7 楼链接。

    RestClient.post '/data', {:foo => 'bar', :multipart => true}
    
  • Ruby post 发送 form-data 数据 at June 07, 2015

    #6 楼 @glorySpring 这个 form 不是 multipart 吗?

    顶楼这里是错误的:

    request.body = {'apiId' => 'username', 'apiKey' => 'key'}.to_json
    

    塞了个 json 进去,对不上 enctype,用浏览器看看 HTML 表单提交的头和 body 是什么。

  • Ruby post 发送 form-data 数据 at June 07, 2015

    #5 楼 @glorySpring 那么用一些包装好的库吧,标准库的 Net::HTTP 不支持 multipart

    https://github.com/rest-client/rest-client#multipart

  • 怎样与别人的前端代码合并? at June 07, 2015

    public 没有问题。

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #41 楼 @hyz0805 👌

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #37 楼 @hyz0805

    http://www.commitstrip.com/en/2014/12/09/obama-a-ecrit-sa-premiere-ligne-de-code/

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #36 楼 @hyz0805 cache 玩坏了,全部重装吧。

    rm vendor/cache/ -rf
    bundle install
    
  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #32 楼 @hyz0805 试试,我不确定。Gemfile.lock 不用动。

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #27 楼 @hyz0805 我觉得 Gemfile.local 或者 plugins 里面某个 Gemfile 引用了 https://rubygems.org/,也要删掉才行。

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #27 楼 @hyz0805 删看看,我不确定。

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    奥,是被 rubygems.org 卡住。

    $ gem sources -r https://rubygems.org/
    $ gem sources -a https://ruby.taobao.org/
    $ gem sources -l
    *** CURRENT SOURCES ***
    
    https://ruby.taobao.org
    # 确保只有 ruby.taobao.org
    

    然后 bundle

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #21 楼 @hyz0805 编辑 Gemfile 开头那里。

  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    Gemfile 的源改成

    source 'https://ruby.taobao.org'
    
  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015
    rm vendor/cache/ruby/2.0.0/gems/eventmachine-1.0.3/ -rf
    rm vendor/cache/ruby/2.0.0/specifications/eventmachine-1.0.3.gemspec
    bundle install
    
  • 急,求助,warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 at June 06, 2015

    #12 楼 @hyz0805 试试。

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