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

[email protected]
深圳
182 Topics / 9132 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
  • 新手求助,关于 has_secure_password at March 06, 2015

    贴错误日志。

  • 如何限制文章的评论个数? at March 06, 2015
    1. 校验应该写成 validation 而不是 callback
    2. 跨模型的逻辑我倾向写在 Controller。
  • [调查] 2015年 你会选 Angular.js 还是 Ember.js 呢? at March 06, 2015

    还没遇到必须用前端框架的需求,隔岸观火中。

  • Ruby support in Firefox Developer Edition 38 at March 06, 2015

    #5 楼 @Martin91 日文比较需要。

  • rails 中类变量的问题 at March 05, 2015

    @@ACCESS_TOKEN 和 @@JS_API_TICKET 哪里来的,明显要看这两个东西怎么设置的啊。

  • rails 中类变量的问题 at March 05, 2015

    一个问题别开两贴。

  • 如何解决测试代码重复的问题? at March 05, 2015

    #9 楼 @cuterxy 如果是 Test::Unit 的话不用,这两个是同一作用域的实例方法。Rspec 我不熟悉。

  • 利用 GFW 屏蔽网站 at March 05, 2015

    跟掩耳盗铃同理。

  • 如何解决测试代码重复的问题? at March 05, 2015

    在 Test::Unit 可以这样提取常用断言:

    def assert_foobar(options)
      do_something options
      yield # if use block
      assert condition_one
      assert condition_two
    end
    
    test "case" do
      assert_foobar(options) do
        # code here
      end
    end
    

    Rspec 好像叫 Custom Matchers 吧,我觉得没有 Test::Unit plain Ruby 语法直观。

  • 如何解决测试代码重复的问题? at March 05, 2015

    #5 楼 @cuterxy 写到 after 行不行?

    这两句太简单我觉得不用简化。

  • [Teaser] #145: DHH on Rails as an API Server in Rails 5 at March 05, 2015

    现在就可以做 API Server 啊。

  • input 居然跑到 form 外面去了?为什么?请前辈们指点迷津! at March 04, 2015

    这种情况逐步删代码,确定是哪一部分出问题。

  • rails 中类变量的问题 at March 04, 2015

    #13 楼 @macknight

    终端 A 和终端 B 是两个进程。

    rails s 是一个进程。

    你试试 rails s -p 3000 和 rails s -p 4000,3000 和 4000 端口的两个网页是不是同一个值?

  • Scaffold 产生的 Controller 怎么跟模板不一样? at March 04, 2015

    master 分支已经往 5.0 去了。

  • Scaffold 产生的 Controller 怎么跟模板不一样? at March 04, 2015

    #2 楼 @peter 4.2 和 4.1 是不一样的,和 4.1!

  • Scaffold 产生的 Controller 怎么跟模板不一样? at March 04, 2015

    rails -v

  • rails 中类变量的问题 at March 04, 2015

    #4 楼 @macknight 开了几个进程?代码呢?

  • slideshare 大概的实现原理是怎么样的 at March 04, 2015

    #4 楼 @luffycn 你在 slideshare 的网页上对着幻灯片右键,审查元素,看看是不是图片。

  • slideshare 大概的实现原理是怎么样的 at March 04, 2015

    https://www.ruby-toolbox.com/categories/rails_file_uploads http://www.binarytides.com/convert-pdf-image-imagemagick-commandline/

  • rails 中类变量的问题 at March 04, 2015

    持久性递增的方案:

    1. Rails.cache
    2. Redis
    3. Database
  • slideshare 大概的实现原理是怎么样的 at March 04, 2015

    HTML/CSS/JS

  • rails 中类变量的问题 at March 04, 2015

    你还有什么补充吗?

  • 生产环境上传文件目录最佳实践 at March 04, 2015

    deploy:link_shared_paths

    http://mina-deploy.github.io/mina/tasks/deploy_link_shared_paths.html

  • 如何解决测试代码重复的问题? at March 04, 2015

    没有例子讨论不了。

  • 希望懂 Grape 构建 API 的朋友进来聊一下 at March 03, 2015

    #11 楼 @bluesky0318 云储存就有 API 啊,还有各种语言的 SDK。

  • 希望懂 Grape 构建 API 的朋友进来聊一下 at March 03, 2015

    其实你们会不会用云储存更好?

  • 希望懂 Grape 构建 API 的朋友进来聊一下 at March 03, 2015

    Rails 不适合做文件服务器,Rails 发送文件为了效率也是用前端静态服务器的 send_file 功能发送的,或者用 S3 等云储存服务。

  • 自定义 yml 文件里读取<%= ENV ['XX'] %>的问题 at March 01, 2015

    页内搜 config_for

    http://guides.rubyonrails.org/4_2_release_notes.html

  • 安卓手机,电脑同步阅读 epub 电子书,并能同步笔记,有这样的手机应用么? at March 01, 2015

    Google Books

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