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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • controller 中,update 和 edit 的区别是啥?(已经大概理解了,只是没有完全理解) at 2013年01月17日

    edit 就是出一个 form,update 就是执行更新吧。

  • google-bootstrap 如何在 rails 中使用 at 2013年01月16日

    我试验 t-bootstrap,似乎很简单,拷贝到 app/assets 下就可以了,不需要写 require。

    测试例子,只发现下拉菜单有问题,其他似乎都可用的。

  • google-bootstrap 如何在 rails 中使用 at 2013年01月16日

    #2 楼 @40hood 不就是 css,js 么,为什么需要 gem 呢?直接拷贝到 assets 目录不行么?

  • google-bootstrap 如何在 rails 中使用 at 2013年01月16日

    与 twitter bootstrap 没什么区别吧。

  • 有开源的基于 Rails 的项目管理工具吗? at 2013年01月14日

    tower 可以看看,不是开源的。

  • 两个 nginx ? at 2013年01月13日

    拿不准的话,把脚本贴出来,看怎么改。

  • 两个 nginx ? at 2013年01月13日

    run 'which nginx'

    也可以看一下 etc 下的 nginx 内容,是一个脚本吧。

  • 自己做个备忘,rack 的老文章 at 2013年01月12日

    不错,rack 原来是行李架。

  • rails 的五级学习模型 at 2013年01月12日

    #4 楼 @sandybeauty 不必太在意这个定义。怎么提高水平才是重要的。 我是考虑到现在有很多业余爱好者,所以从零起点开始的。

  • 推荐一个在线学习 Rails 的网站 www.codelearn.org at 2013年01月10日

    功能很强。可惜 bundle install 就错了。

  • 推荐一个在线学习 Rails 的网站 www.codelearn.org at 2013年01月10日

    谢谢,看上去不错。

  • How Sinatra Works at 2013年01月10日

    上面那段代码理解起来有些难度。

  • 10 行令你朋友惊讶的 ruby 代码 at 2013年01月10日

    埃拉托斯特尼筛法

    埃拉托斯特尼筛法,简称埃氏筛或爱氏筛,是一种公元前 250 年由古希腊数学家埃拉托斯特尼所提出的一种简单检定素数的算法。

    #参考wikipedia,求120以内的素数
    n=120
    primes = Array.new
    for i in 0..n-2
     primes[i] = i+2
    end   
    index = 0 
    while primes[index]**2 <= primes.last
          prime = primes[index]
          primes = primes.select { |x| x == prime || x % prime != 0 }
          index += 1
    end
    p primes   
    
  • 学到什么程度可以看 ruby-china 的源码? at 2013年01月10日

    #13 楼 @chairy11 这个是调用 field 方法吧。要确认下是什么 api。

    没什么,大胆问。ruby 社区以友好出名的。

  • 学到什么程度可以看 ruby-china 的源码? at 2013年01月10日

    #8 楼 @chairy11 我 05 年接触 ruby 和 rails,你算算我多少年了,自认还是个初中级水平。当然我没有全职做 rails 开发。

    不用气馁,Matz 也不会 rails 的,似乎他也不大感兴趣。

    建议你把想看懂的列出来,看码友们能否帮你。

  • 学到什么程度可以看 ruby-china 的源码? at 2013年01月10日

    #6 楼 @chairy11 主要知识点:ruby 常识,route,mvc,还有就是 gem。 不知道你是困惑于哪一个部分。我感觉 route 部分可能容易迷惑。

    我目前也是个初级水平,目前的项目还相对简单。暂时没有用 devise 这些东东。 我在看 rabel 的源码,感觉也不好懂,准确地说是浏览下。

  • How Sinatra Works at 2013年01月10日

    学习下。sinatra 是个好东东。

  • 学到什么程度可以看 ruby-china 的源码? at 2013年01月10日

    感觉学习这个靠两个字,逼和泡。有个项目逼着,有点压力,带着问题。泡就是投入时间,天天看。

    rails 就像一个迷宫,知识多而散,还有点烦。急不得,没有一两年的功夫是学不好的。

  • gem 安装出错呀 at 2013年01月09日

    试试原来的 rubygems.org

  • 弱弱的说一句:这个地方也是学习 RUBY 的好地方。 at 2013年01月09日

    http://www.ruby-lang.org/en/about/, 这个是对 ruby 的很好的概述。ruby 表面简单,实际 very 复杂。

    The Ideals of Ruby’s Creator

    Ruby is a language of careful balance. Its creator, Yukihiro “matz” Matsumoto, blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.

    He has often said that he is “trying to make Ruby natural, not simple,” in a way that mirrors life.

    Building on this, he adds:

    Ruby is simple in appearance, but is very complex inside, just like our human body.

  • MBPro 风扇一直响,如何切换双显卡?(解决) at 2013年01月08日

    #4 楼 @mobiwolf 谢谢,解决了,不用麻烦。

  • 数据库表无法生成 at 2013年01月07日

    建议换 linux 吧,windows 听说不太 OK。

  • 数据库表无法生成 at 2013年01月07日

    命令行上执行:rake db:migrate

  • 数据库表无法生成 at 2013年01月07日

    还是命令行吧,ide 出问题很难搞的。

  • ruby 条件区间的问题 at 2013年01月07日

    不会吧。实验是一样的。

  • 能否配置成 url 直接自动映射到 action (解决了) at 2013年01月05日

    #4 楼 @suupic 谢谢,明白了。

  • 能否配置成 url 直接自动映射到 action (解决了) at 2013年01月05日

    #2 楼 @suupic 谢谢,就是这个。(.:format) 是什么意思啊?

  • 2012年12月21日以后的数据丢失了 at 2013年01月05日

    历史一次次证明,没有备份是不行的。在服务器上测试是不严肃的。

    还好不是银行存款。

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