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

[email protected]
深圳
198 Topics / 9208 Replies
732 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
GitHub Public Repos
  • writings 940

    [Closed] Source code of writings.io

  • alipay 728

    Unofficial alipay ruby gem

  • code_campo 288

    [Closed] Source code of http://codecampo.com

  • asciidoctor-pdf-cjk-ka... 102

    **no longer maintained**

  • geeknote 39

  • material-ui 17

  • htmlrenderer 12

  • rich-text-editor 12

  • llmrpg 8

  • rails-chatgpt-demo 8

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 实例变量跨控制器无法保留吗? at October 28, 2016

    #3 楼 @zix 那么需要在数据库里加一个字段作持久化,每次 .find 都是新对象。

  • 实例变量跨控制器无法保留吗? at October 28, 2016

    1. 访问的变量不一样

      @bomb_array # 这是类实例变量
    def g_bomb
        @bomb_array = 1 # 这是实例变量
    end
    

    要在实例方法里修改类层面的变量,要用类变量 @@bomb_array

    2. 如果在生产环境用类变量储存状态,会遇到不同的请求竞争一个变量,不要这么做。

  • RubyConf China 2016 视频 at October 28, 2016

    有 ppt 不同步的可以配合原版 ppt 看 https://ruby-china.org/topics/31164

    我的这页 http://chloerei.com/rubyconfchina2016/#/4/4 如果不看动图是没有效果的。

    下届务必用录屏方式。

  • RubyConf China 2016 会有录像吗? at October 28, 2016

    #31 楼 @jasl 不录屏不合理啊,如果讲师要跑代码演示呢。Mac 内置的 QuickTime 就能录了。

  • Ruby class mixin 一个模块能否有些函数成为类函数,有些函数成为实例方法 at October 28, 2016

    Ruby Pattern: Extend through Include

    http://www.dan-manges.com/blog/27

  • RubyConf China 2016 会有录像吗? at October 27, 2016

    上一年的百度网盘好像不是管理员传的,YouTube 是正式发布地址。

  • RubyConf China 2016 会有录像吗? at October 25, 2016

    #6 楼 @easonlovewan 百度网盘也会存一份。不过你不看世界其他地区的 RubyConf 视频么?

  • Vue / React on Rails without JSON API at October 25, 2016

    我也看好组件化,不过是原生实现。

    Custom Elements v1: Reusable Web Components

    https://developers.google.com/web/fundamentals/getting-started/primers/customelements

  • Ubuntu 14.04 上使用 Nginx + Passenger 部署 Ruby on Rails 错误, cannot load such file -- bundler/setup at October 23, 2016

    没遇到过这错误,删掉环境跟着 gorails 教程一步一步做一遍吧。

  • 现在想学习 Ruby,但是没有一点编程的知识?从哪里开始? at October 23, 2016

    学 Ruby 不一定要学 Rails,从基础开始应用到自己的领域也很好。

    最近引进了新书可以看看 https://ruby-china.org/topics/31395

  • Ubuntu 14.04 上使用 Nginx + Passenger 部署 Ruby on Rails 错误, cannot load such file -- bundler/setup at October 23, 2016

    似乎 nginx 没有配置 ruby 的路径,passenger 找到的系统 ruby 也许不是你要的那个。

    https://gorails.com/deploy/ubuntu/16.04

    搜 passenger_ruby 这一段

  • 创建 Rails 新项目遇见问题 at October 23, 2016

    先 cd 到项目目录,再 bundle install --path vendor/bundle。

  • Rails 为何不允许 resources 中的 new, create 等 map 到自定义的 action? at October 22, 2016

    #14 楼 @IChou 按楼主需求,View 和权限都不同,最好分开两个 Controller。

  • Rails 为何不允许 resources 中的 new, create 等 map 到自定义的 action? at October 22, 2016

    #12 楼 @mizuhashi http://guides.rubyonrails.org/routing.html#specifying-a-controller-to-use

  • Rails 为何不允许 resources 中的 new, create 等 map 到自定义的 action? at October 22, 2016

    #9 楼 @mizuhashi 我看不懂你想做什么,我说我会怎么做好了。

    Controllers:

    |- orders/reviews_controller.rb
    |- products/reviews_controller.rb
    |- orders_controller.rb
    \- products_controller.rb
    

    Routes:

    resources :orders do
      resources :reviews, controller: 'orders/reviews'
    end
    
    resources :products do
      resources :reviews, controller: 'products/reviews'
    end
    
  • The Well-Grounded Rubyist 中文版《Ruby 程序员修炼之道》已经印刷完毕,今天开始发货了。 at October 22, 2016

    等电子版。

  • 阿里云 Ubuntu 服务器的 Ruby 安装 rbenv 很慢解决办法 at October 22, 2016

    推荐这个 https://www.brightbox.com/docs/ruby/ubuntu/

  • Rails 为何不允许 resources 中的 new, create 等 map 到自定义的 action? at October 22, 2016

    #5 楼 @mizuhashi Duck Typing 推论:如果长得不像鸭子,叫得不像鸭子,那么就不是鸭子。

  • Playbook 中文版 -- 在移动设备上原生至关重要 at October 22, 2016

    中文版网站和原版样式有差距,建议克隆原模版做个静态站。

  • 这一段 slim 代码有办法优化吗? at October 21, 2016

    贴代码同时要描述你想做什么。

  • Playbook 中文版 -- 在移动设备上原生至关重要 at October 21, 2016

    #1 楼 @nong 你行你上。

  • Twitter 上的 ruby_china/lists/ruby-developers 不能访问了? at October 20, 2016

    #4 楼 @lgn21st 好奇是怎么触发的,之前有自动发推的行为吗?

  • 这样写居然会报错是为什么? at October 19, 2016

    #3 楼 @sevk b +1,+1 被解析为 b 方法的参数。

  • Agile Web Development with Rails 5 这本书如何? at October 19, 2016

    英文版是最好的 Rails 入门教程。

  • Ruby 3 Guilds 并发模型 at October 17, 2016

    #3 楼 @lilijreey 你的用词对讨论有害,如果不修改用词我会 block 账号。

  • 不写测试代码 at October 16, 2016

    技术债会在以后还。

  • 请问一下 我的 rails g 一系列生成命令为什么没有反应 at October 16, 2016

    #9 楼 @yirolhao 要网

  • 请问一下 我的 rails g 一系列生成命令为什么没有反应 at October 16, 2016

    #6 楼 @yirolhao 翻墙

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