Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
韩冰
@algo31031
Member
NO. 6341 / 2013-03-26

[email protected]
大连
11 Topics / 82 Replies
4 Followers
0 Following
1 Favorites
GitHub Public Repos
  • Farmland_Demo 1

    Learning Gamemaker Studio 2

  • My-first-game 0

    A Simple Brick Game Which Has Only One Level And Some Other Stuff Within It

  • My-Second-Game 0

  • homeland 0

    :circus_tent: Open source discussion website.

  • A-simple-brick-game 0

    A simple brick game with only one level built with Gamemaker Studio 2

  • jiandanxinli.github.io 0

  • blog 0

    blog.banban.me

  • qd 0

  • 19wu 0

    19屋 - 专注于技术社区的活动平台, Based on Rails, AngularJS and Bootstrap

  • wechat-rails 0

    API and message handling for wechat in rails environment

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • rake db:migrate 报错 at November 16, 2013

    试试: $ rvm @global $ gem uninstall bundler. 参考http://stackoverflow.com/questions/19849978/any-rails-command-gives-noexec-rb75in-setup-undefined-method-name 英语不给里,主要是搜 stackoverflow 会比较头疼

  • Magic Mouse 实在用不下去了,求推荐鼠标 at August 27, 2013

    微软舒适蓝影鼠标 6000,http://product.pconline.com.cn/mouse/microsoft/467700.html。 手感很好,握着很舒服,缺点略轻。

  • paperclip 转换图片失败 at July 04, 2013

    我也遇到了类似问题,运行$ which convert 得到的路径是/usr/local/bin/convert,但是实际的位置在/usr/bin/convert,把 Paperclip.options[:command_path] 改成/usr/bin/convert/之后,问题解决.

  • 尝试 delayed_job 使用独立数据库之后,script/delayed_job start 无反应,并且报错提示找不到对象 at June 24, 2013

    #1 楼 @uudui 很有可能,但我只把 Delayed::Job 指定了单独的数据库,其他 model 没用 establish_connection 呢。而且新添加的 job 一创建完就会抛找不到对象的错误。

  • 在线密码管理,有需求就有实现 at June 23, 2013

    #11 楼 @loveky 于是突然就不敢用了...

  • [福利] 七牛新后台上线 携手 Ruby China 放送现金券 at June 07, 2013

    [email protected]

  • 短信接口编码格式 at April 28, 2013

    之前也遇到过类似问题,后来查资料说要在编码格式后面加//IGNORE Iconv.iconv("GB2312//IGNORE","UTF-8//IGNORE",message).join('')

    #coding: utf-8
    class ShortMessage < ActiveRecord::Base
      require 'iconv'
    
      def send_token!(message)
        raise "系统已向您的手机发送过验证码,请勿频繁重复操作。" if self.invalid_date?
    
        if self.can_send?
          msg = Iconv.iconv("GB2312//IGNORE","UTF-8//IGNORE",message).join('')
          res = `curl "http://sms.mobset.com/SDK/Sms_Send.asp?CorpID=#{SMS_ID}&LoginName=#{SMS_NAME}&passwd=#{SMS_PWD}&send_no=#{self.phone}&msg=#{msg}"`
          status = res.first.to_i
          raise "发送失败,请检查您输入的手机号是否正确。" if status <= 0
          self.sent_at = Time.current
          self.message = message
          self.save!
        end
      end
    end
    
  • 求易用的 bootstrap 模板? at April 25, 2013

    https://jetstrap.com/

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