Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Marble Wu<活靶子.NET>
@huobazi
高级会员
第 15 位会员 / 2011-10-31

西安
110 篇帖子 / 1709 条回帖
51 关注者
97 正在关注
128 收藏
请叫我靶子哥哥. :D
GitHub Public Repos
  • carrierwave-qiniu 177

    Qiniu Storage support for CarrierWave

  • ajax-upload-with-carri... 42

    使用 AjaxUpload 和 Carrierwave 在 Rails && Mongoid 中批量上传图片

  • dackup 23

    Dackup is a free, open source, backup client for your files and database to Cloud

  • vuejs-with-rails-api-a... 11

    Vue.js example with rails-api and JWT

  • carrierwave-qiniu-example 9

    This a example project for carrierwave-qiniu

  • vimrc 6

    my vim settings

  • huobazi.github.com 2

    huobazi.github.com

  • dotfiles 2

    My dotfiles

  • indicator_button 2

    A Flutter button with indicates progress on iOS and Android

  • ruby-china 1

    ruby-china.org website source code.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [12 台减至 3 台] 用 Golang 重写 Sidekiq 的 worker at 2015年08月06日

    #21 楼 @shawnyu 明白些了,谢谢。

  • [12 台减至 3 台] 用 Golang 重写 Sidekiq 的 worker at 2015年08月06日

    #3 楼 @msg7086 同问

  • 用过七牛的来说说你们的安全策略吧 at 2015年07月28日

    1,不直传

    2,直传用业务控制:图片先传入私有 bucket 待审核后,搬到公开的 bucket 后才可外部访问,定期删除未审核的数据。

  • [北京] 创业公司招聘 Ruby 大牛 at 2015年07月26日

    #2 楼 @martin91 我在幻想一个交友 app 要求员工热爱工作多于做爱,这是什么节奏…

  • 如何看待周末 + 晚上都加班的公司? at 2015年07月25日

    #15 楼 @blacktulip 你是想我死么?

  • 遇到一个棘手问题 at 2015年07月23日

    try

    def login_required
        #验证用户是否登录
      if current_user_login?
          options[:notice] = '请先登录'
          options[:redirect] =  '你的登录页面'
          handle_unverified_user options
      end
    end
    
    def handle_unverified_user(options)
      respond_to do |format|
        format.any(:html, :mobile) do
          flash[:notice] = options[:notice]
          redirect_to options[:redirect]
        end
        format.json { render json: options[:notice], status: 401 }
        format.xml { render xml: options[:notice], status: 401 }
        format.js { _perform_js_response "window.alert('需要登录才能发帖');//和其他 js"}
      end
    end
    
    def _perform_js_response(body)
      response.status = 200
      response.body = body
      response.content_type = Mime::JS
    end
    
  • 如何看待周末 + 晚上都加班的公司? at 2015年07月23日

    #11 楼 @MrPasserby 顶第三条! :plus1:

  • 七牛融合 CDN 管理服务上线,携手 Ruby China 社区送券福利升级! at 2015年07月20日

    me

    [email protected]

  • 做一个管理系统,用 mongodb 还是 pg? at 2015年07月19日

    用你最熟滴。

  • 有人承包了 谢谢大家 截贴 at 2015年07月09日

    #35 楼 @xifengzhu 写 ruby!

  • Rails 4 怎样 create without call back? at 2015年07月08日

    自己在 get_share 里判断

  • Rails 在 Windows 下的完整开发环境压缩包 (Ruby 2.1.7 和 2.2.4) at 2015年07月08日

    #30 楼 @greatbody 你同学说滴不对,让他说少啥了? win 下 vagrant 才是正确的姿势 https://ruby-china.org/topics/26367

  • Rust 1.1 stable & 1.2 beta 发布,承诺的六周发布兑现了 at 2015年07月08日

    能做一个像 rails 一样滴东东么?

  • 有人承包了 谢谢大家 截贴 at 2015年07月08日

    @男猪脚 你还不出来???

  • Windows 下开发 rails 的一种姿势 at 2015年07月07日

    #1 楼 @blacktulip 算在 Windows 下开发吧,严格的说是在 Windows 下编码,run 在 Linux 下

  • 线上修改 Rails 项目如何生效 at 2015年07月06日

    PRD 上直接改代码? 重启应用服务器 unicorn、puma、passenger 等等

  • 在 DaoCloud 上部署 Rails App at 2015年07月03日

    DaoCloud 最近在送 T 恤哦,昨天刚收到一件。

  • 无需更改 Gemfile,让 bundle 使用淘宝源 at 2015年07月03日

    我是搞个环境变量

    # coding: utf-8
    if ENV['USE_TAOBAO_GEM_SOURCE']
      source 'https://ruby.taobao.org'
    else
      source 'https://rubygems.org'
    end
    
  • 参与开发的 ruby gems 的下载量破五百万了... at 2015年07月03日

    👏 :plus1:

  • [上海] 哔哩哔哩-诚邀 Ruby 工程师-还在继续! at 2015年07月02日

    求西安分公司! 😄

  • 是不是像石家庄这种的小城市都没有公司用 ruby 呢 at 2015年06月29日

    中国最大的庄子

  • carrierwave-qiniu 上传头像问题 at 2015年06月25日

    #2 楼 @mok

    config.qiniucan_overwrite = true
    

    -->

    config.qiniu_can_overwrite= true
    

    另外,你贴的那个代码比较老了,现在的是这样的

    def store(file, key)
      overwrite_file = nil
      overwrite_file = key if @qiniu_can_overwrite
    
      put_policy = ::Qiniu::Auth::PutPolicy.new(
        @qiniu_bucket,
        overwrite_file,
        @qiniu_expires_in,
        nil
      )
      put_policy.persistent_ops = @qiniu_async_ops
    
      code, result, response_headers = ::Qiniu::Storage.upload_with_put_policy(
        put_policy,
        file.path,
        key
      )
    
    
  • 说出你最喜欢的开源项目,七牛和你一起去支持! at 2015年06月25日

    http://github.com/ruby-china

  • 用 ror 开发了一个网站并且已经上线,现在需要加个需求,就是需要有会员积分系统。各位大神有什么好的意见。 at 2015年06月24日

    我觉得 https://www.v2ex.com/balance 好

  • [杭州] 阿里巴巴招聘 Ruby 工程师 2 名 at 2015年06月17日

    #12 楼 @huacnlee 支付宝 在大面积用 node 么?

  • Web 框架层出不穷,然而 RoR 早已看透了一切 at 2015年06月16日

    还是那句话,没有 ruby 的身段,怎么效颦还是没什么卵用。

  • Web 框架层出不穷,然而 RoR 早已看透了一切 at 2015年06月16日

    #7 楼 @wushexu Rails 抗议过不少 XX on Rails

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