Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
chenge
@chenge
会员
第 4215 位会员 / 2012-10-25

上海
425 篇帖子 / 1790 条回帖
51 关注者
95 正在关注
339 收藏
遇见,Ruby 2005,Elixir 2016, Go、V 2021
GitHub Public Repos
  • simple-ruby-guide-zh 30

    Ruby简明入门和提高

  • NTT 1

    Kenneth E. Iverson, Notation as a Tool of Thought 中文翻译 - 1979 ACM Turing Award Lecture

  • kerkour.com 0

    Code accompanying my blog https://kerkour.com

  • gatsby-starter-blog 0

    Gatsby starter for creating a blog

  • chenge-blog 0

  • cgblog 0

  • now-github-starter 0

    Starter project to demonstrate a project whose pull requests get automatically deployed

  • chenge.github.io 0

  • gatsby-starter-default 0

  • slate 0

    Beautiful static documentation for your API

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • SublimeCodeIntel 好用能提示 ruby,能否提示 rails 代码呢? at 2015年06月12日

    #1 楼 @etnl 我怎么实验不对呢?我看代码里有写 rails 1.1,是不是版本不对?

    不过添加下面几个倒是有效的, "HTML5", "HTML", "JavaScript"。

  • Rails 中能把一些内容写到 properties 文件中,通过相应的 key 拿到值吗? at 2015年06月11日

    用 yaml

  • 笑尿的诡异 bug: POST /assets 405 method not allowed at 2015年06月11日

    什么茶这么好,绍介一下。

  • 淘宝源问题 at 2015年06月10日

    你的贴图是正常的,安装是需要一点时间的。看最后什么结果。

  • 淘宝源问题 at 2015年06月10日

    贴个图吧,清楚点。可能是你环境的问题,别人都没问题。

  • 数组 collect 问题 at 2015年06月09日

    #6 楼 @gu_bonjour 就是说返回 a,而不是 a[0], 明白了吗?a 才是一个单词,对吧。

  • 数组 collect 问题 at 2015年06月09日
    str = "Ruby is an object oriented programming language"
    strd = ""
    str.split.collect {|a| a[0]=a[0].upcase; a}.each{ |item|
      strd += item + " "
    }
    p strd.strip
    

    小改就可以。collect 是以你的表达式为返回结果的,a[0] 当然就是一个字母了。

  • Ruby on Rails 或者 Sinatra 是否可以开发 P2P 的平台 at 2015年06月08日

    用 java 是不是考虑安全的问题,涉及大额度的资金,似乎银行业都不大用 ruby 的。 能否用 ruby 不好说。

  • 请教下写快速后台的经验 at 2015年06月07日

    为何不用插件?插件最快吧,也符合大部分需求。

  • Grape 怎么返回 HTML? at 2015年06月05日

    你是需要 html,那么 format 是不是应该改成 html?

  • Grape 怎么返回 HTML? at 2015年06月05日
    module Twitter
      class API < Grape::API
        version 'v1', using: :header, vendor: 'twitter'
        format :json
        prefix :api
    

    format 有么?

  • Flash 导致 Mac 死机 at 2015年06月03日

    我是 air,chrome+flash 看优酷没问题的。

    应该不是 flash 吧。你只是碰巧了吧。估计还是硬件问题。

  • rake db:migrate 问题,找不到 create_table at 2015年06月02日
    class CreateClassX < ActiveRecord::Migration
      def change
        create_table :abcs do |t|
        end
      end
    end
    
  • 有关组合框的问题 at 2015年05月30日

    把你的代码贴出来会清楚些。

  • Rails s 无法开启 at 2015年05月30日

    /etc/hosts文件里:

    127.0.0.1 localhost 看有没有这一行,如果没有加上它试试看。

  • 大家有什么关于软件工程的书籍推荐吗? at 2015年05月28日

    目前流行 scrum 方法,看百科。

  • 写了一个只有 100 行的 mini 版的 Rails at 2015年05月28日

    值得学习,很不错

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    错误是这样的,参数个数问题。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    #19 楼 @58383788 你试试 2.2.1 吧,我用的 rvm。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    #15 楼 @58383788

    # Show full error reports and disable caching.
    config.consider_all_requests_local       = true
    config.action_controller.perform_caching = false
    

    我这边还有一行,不过似乎那个跟本案无关。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    #12 楼 @58383788 请补充下,ruby 版本。 #14 楼 @cqcn1991 我还遇到过换一下 ruby 新版,就出这个的。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    #12 楼 @58383788 你把 development.rb 贴出来吧。每个人都曾经是新手。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    补充一下,程序员不是神仙,没人能修复 500 错。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    首先建议你把贴出来的 log 删掉。 请你把你的 development.rb 贴出来。有没有按我说的修改?改对了么?那一行本身是有的,一般就是 true/false 开关一下。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    #6 楼 @58383788 很简单。你找到那个文件,照这个修改。然后重启 rails,就会显示错误。

    这个答案价值 1000 元,如果都像你那样检查错误,会累死的。

  • rails 报错"We're sorry, but something went wrong." at 2015年05月23日

    config/environments/development.rb

    # Show full error reports and disable caching.
      config.consider_all_requests_local       = true
    

    这样显示错误。

  • 元编程 进一步理解 metaclass at 2015年05月23日

    原网站上那个两周课程看上去还不错,谢谢分享。

  • ImageMagick 操作 eps 图片问题 at 2015年05月22日

    #3 楼 @suyuhang 是太偏,一般人都不懂的。

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