Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
宅编程
@huhongda
会员
第 9041 位会员 / 2013-09-06

Thoughtworks
成都
3 篇帖子 / 125 条回帖
4 关注者
2 正在关注
61 收藏
我坚信付出多少就能获得多少
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • mini_magic 在进行处理远程二维码图片的路径问题 at 2014年08月07日

    image.write(image_url) 这个有问题!这里应该写本地文件的路径,然后再上传到远程端!

  • [成都]2014年8月23日,Ruby 社区聚会! at 2014年08月07日

    支持

  • [成都][高新区] 瑞小博科技有限公司招聘 web 后端开发工程师一名(高薪好待遇) at 2014年07月25日

    同城再顶~

  • [Wellington] New Zealand Company needs 5 Ruby On Rails Developers (Still valid) at 2014年07月17日

    good job !

  • Selenium 快速入门 -- ruby 程序员篇 at 2014年07月09日

    支持

  • 如何实现 GitLab 与个人应用的帐号互通登录? at 2014年06月18日

    一般如果是公司内部自己用得账户(LADP),gitlab 是支持 LADP 登录的!

  • Terminal 里面 Vim 如何多行复制粘贴代码 at 2014年06月08日

    ctrl + v, v && 光标移动

  • 庆祝可以发贴了, Ruby China 的 Emacser 们, 你们在哪里? at 2014年03月18日

    vimer 顶起

  • 万能的 Ruby-China,求 gitolite 迁移到 Gitlab 中目录多层结构解决办法? at 2014年03月17日

    @pynix 这个知道,gitlab 不支持 / 多路径的结构,只能换成类型 aaa.bbb.git / aaa_bbb.git 这样的形式了。

  • 各位都是用 rvm 在安装 ruby 吗,rvm 安装不成功,请指点 at 2014年03月11日

    应该是网速的问题!

  • 万能的 ruby-china,trackpad 电池装反了,一节卡在里面出不来了有什么办法能弄出来吗? at 2014年03月11日

    @leopku 去 google 一下,很多教程教你如何拆~ 但是能不能装回去就不知道了!呵呵~

  • 万能的 ruby-china,trackpad 电池装反了,一节卡在里面出不来了有什么办法能弄出来吗? at 2014年03月11日

    直接拆了重装!

  • carriewave 根据一个 url 来保存图片 at 2014年03月11日

    @Martin91 ,对哈!我那个程序将异常捕获改成 rescue => e 捕获的就是 StandardError 异常,默认是 StandardError @wildwind , 可以优化一下!

  • carriewave 根据一个 url 来保存图片 at 2014年03月11日

    @Martin91 @ruby_sky 最好加上异常 retry

    try = 0
    begin
       user.remote_avatar_url = 'http://domain/a.jpg'
    rescue Exception => e
       try += 1
       retry if try < 3
    end
    
  • git 只忽略本地的文件应该怎么办 at 2014年03月10日

    建议:最好不要把 Gemfile、Gemfile.lock 从 git 版本库中移除,要不然多人开发的时候会有问题,如果想要配置不一样的,可以把对应的文件加入.gitignore 中,比如数据库文件 config/database.yml, 一般我们会将这个文件加入 .gitignore 中,然后备份一个 config/database.yml.example文件,其他的同理

  • rails api strip_tags and strip_links method 怎么不可以用求解释!!! at 2014年03月10日

    在 controller 中使用 view_content.strip_tags
    console 中需要 include ActionView::Helpers::SanitizeHelper strip_tags("Strip these tags!")

    或者:3 楼说的: helper.strip_tags("Strip <i>these</i> tags!")

  • get 请求参数带有?,怎么处理 at 2014年03月10日

    转一下码是一下:CGI::escape('your url')

  • 大家正在用或曾经用过哪些 Mac? at 2014年03月10日

    6

  • 国内有什么基于 Rails 开发的开源 OA 系统? at 2014年03月10日

    可以用用 redmine!

  • 关于 Rails reload code at 2014年02月21日

    同上

  • 关于 Rails reload code at 2014年02月21日

    你的文件命名这些都没有准训规范呢!

    # 加上命名空间
    module Modules
        module UserMethods
            extend ActiveSupport::Concern
    
            def abc
               puts 'abc'
            end
        end
    end
    
    class User < ActiveRecord::Base
      include Modules::UserMethods
    end
    
    

    建议把文件放到 concern 中

  • 关于 Rails reload code at 2014年02月20日

    @hiveer 系统目录开发模式下会 reload, 但是你新建的目录 比如 app/workers/xxx 需要加入配置 config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/workers/) 才能 reload!注意一下你的系统时间!跟系统时间也有关系呢!

  • 关于 Rails reload code at 2014年02月20日

    开发模式下: config/environments/development.rb config.cache_classes = true 改为config.cache_classes = false

    具体实现:railties-3.2.14/lib/rails/application/finisher.rb +73~+96

  • rbenv install 2.0.0-p247 在 centos 上安装失败。 at 2014年02月20日

    CentOS 试试yum install -y pcre-devel openssl openssl-devel

  • ruby 有没有方法把取出来的东西去掉所有 html 元素? at 2014年02月20日

    可以用 sanitize 来做标签白名单 http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize

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