Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
chenge
@chenge
Member
NO. 4215 / 2012-10-25

上海
425 Topics / 1790 Replies
51 Followers
95 Following
339 Favorites
遇见,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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • SublimeCodeIntel 好用能提示 ruby,能否提示 rails 代码呢? at June 12, 2015

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

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

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

    用 yaml

  • 笑尿的诡异 bug: POST /assets 405 method not allowed at June 11, 2015

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

  • 淘宝源问题 at June 10, 2015

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

  • 淘宝源问题 at June 10, 2015

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

  • 数组 collect 问题 at June 09, 2015

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

  • 数组 collect 问题 at June 09, 2015
    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 June 08, 2015

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

  • 请教下写快速后台的经验 at June 07, 2015

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

  • Grape 怎么返回 HTML? at June 05, 2015

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

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

    format 有么?

  • Flash 导致 Mac 死机 at June 03, 2015

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

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

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

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

  • Rails s 无法开启 at May 30, 2015

    /etc/hosts文件里:

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

  • 大家有什么关于软件工程的书籍推荐吗? at May 28, 2015

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

  • 写了一个只有 100 行的 mini 版的 Rails at May 28, 2015

    值得学习,很不错

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

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

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

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

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

    #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 May 23, 2015

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

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

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

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

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

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

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

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

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

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

  • rails 报错"We're sorry, but something went wrong." at May 23, 2015

    config/environments/development.rb

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

    这样显示错误。

  • 元编程 进一步理解 metaclass at May 23, 2015

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

  • ImageMagick 操作 eps 图片问题 at May 22, 2015

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

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