Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
0x009
@sec
Member
NO. 27349 / 2016-07-05

上海
23 Topics / 149 Replies
2 Followers
11 Following
68 Favorites
GitHub Public Repos
  • hpuz_test 0

  • test_git 0

  • quilljs-rails 0

    Easy integration of Quill rich editor with most Rails forms.

  • class004 0

    Variables, Methods, Flow control

  • rails_01 0

    My rails test

  • init.d 0

    ⚙️ Batch scripts for Rails production environment install on Ubuntu Server.

  • rails_advanced 0

    Ruby on Rails高级开发课程 http://eggman.tv/c/s-rails-advanced

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [上海][2018年03月20日] Ruby 聚会召集 at March 15, 2018

    报名 +1

  • [北京] 北京盖娅互娱网络科技股份有限公司 GAEA 招聘 Ruby 开发工程师 at February 02, 2018

    炉石传说 +1

  • Rails 里面的 model 都是继承自 ActiveRecord::Base,请问中间的: : 是干什么用的 at December 21, 2017
    class TwelveDaysSong
    end
    
    a = TwelveDaysSong.new
    #I could wrote it like this too
    a = ::TwelveDaysSong.new 
    
    module Twelve
      class TwelveDaysSongs
      end
    end
    
    b = Twelve::TwelveDaysSong.new
    #b is not equal to 
    a = ::TwelveDaysSong.new
    #neither
    a = TwelveDaysSong.new
    

    源链接:https://stackoverflow.com/questions/25829184/what-does-mean-in-ruby-syntax?answertab=oldest#tab-top

  • Rails 5 中 CSS 加载异常 at November 29, 2017

    @zhangzitao @huacnlee 谢谢。

  • 送几本《Ruby on Rails 教程 (第 4 版)》纸质书 at October 31, 2017

    支持

  • Ruby 相关的数据结构和算法 at October 16, 2017

    @jasl 非常感谢你的回复。

  • [深圳][餐动力] Ruby 开发工程师 2 名 at September 26, 2017

    @huacnlee 待遇相关部分存在严重虚假成分,大学室友去年在品米工作整天被迫加班还扣工资,触目惊心。

  • 关于 chosen 插件的 css 样式 at September 19, 2017

    加载的 scaffold.js.coffee,可能和自身的文件名不同 所以没有 css 效果 http://railscasts.com/episodes/258-token-fields-revised

  • [Rails Hackers Training Camp 2] 每周二、四、六 20 点,全年 [999 元] at September 05, 2017

    如何报名😀

  • Ruby 求职失败,扎心哪 at August 17, 2017
    • 上海品米是进入 ruby-china 黑名单的点单宝
    • https://ruby-china.org/topics/29827
  • 哪位大神指导下? at July 25, 2017

    建议都试试,应该有一个顺手的。

  • 出一波书 at July 25, 2017

    书都很新。

  • 去哪里买域名 at July 17, 2017

    之前一些域名没有备案也可以访问,现在就不行了。

  • 去哪里买域名 at July 17, 2017

    为什么最近域名都没法访问

  • 当前设置新手用户不能在 22:00-9:00 发贴 at July 11, 2017

    可能是随机出现的新手禁止发帖的情况。不知道这条是否可以回复成功。

  • rails 中的 table 和 database 是一个概念吗? at July 09, 2017
    ActiveModel  # model interfaces for Rails
    
    ActiveRecord # Object-relational mapping in Rails
    
    ActiveRecord = ActiveModel + Database Support 
    
    
  • Rails 查询去重问题 at July 07, 2017
    #sql语言可以这样
    select distinct(event_time) from table_name where ...
    
    使用rails方式就不清楚了
    
  • 如何成为快乐高产的程序员 at July 07, 2017

    👍

  • 我觉的 Ruby China 对新手不太友好 at July 07, 2017

    RubyChina 氛围真好,看上去这么尖锐的论坛建议,下面评论者却依然是和和气气的讨论解决方案而不是剑拔弩张的回避问题。

  • Udemy 上面好些课程只要 10$.有在上面学习的过得么?讲讲经验 at July 07, 2017

    曾在上面买过课程,目前还没有怎么看。

  • [杭州][9.16 - 17] RubyConf China 2017 正式宣布!征集赞助、主题分享 at July 06, 2017

    @wawayu 现在不是还没有开放售票吗?

  • Ruby 中 each.do 集合遍历问题 at July 03, 2017
    hash = Hash.new
    %w(cat dog wombat).each_with_index do |item, index|
      hash[item] = index
    end
    hash   #=> {"cat"=>0, "dog"=>1, "wombat"=>2}
    
  • Sidekiq 发送邮件始终出现错误 at July 03, 2017

    @leiz_me @Lancelot 谢谢,问题已解决。

    #主要是rails中声明的虚拟字段 reset_token,sidekiq无法读取
    class User < ApplicationRecord
      attr_accessor :remember_token, :activation_token, :reset_token
    end
    
    #然后报错 ID为nil, 由于@user.reset_token=nil不存在,然后缺少url参数sidekiq报错,将@user.reset_token修改。
    <h1>重置密码</h1>
    
    <%= link_to "重置密码", edit_password_reset_url(@user.reset_token, email: @user.email) %>
    
  • Sidekiq 发送邮件始终出现错误 at July 03, 2017

    缺少 ID 的话,为什么同步发送都正常,异步却不行? 正常的跳转 url 也是没有 ID 的:http://localhost:3000/password_resets/QLFbY9AF9fAKniiU0YQLWQ/edit?email=hwec%40gmail.com

  • Sidekiq 发送邮件始终出现错误 at July 03, 2017

    @ForrestDouble @yfractal 谢谢。目前直接同步发送都正常,但是异步在后台 sidekiq 执行发送和 View 没有什么关系吧。只是让 sidekiq 悄悄的发送邮件,也不需要跳转界面。

    class User < ApplicationRecord
      # 发送重置密码邮件正常
      def send_password_reset_email
        UserMailer.password_reset(self).deliver_now
      end
    end
    
    #路由 
    resources :password_resets
    
  • 论坛里面写文章 该怎么区分 这个文章属于那个分类 at June 30, 2017

    group /new 页面写文章 ,字段应该有:所属分类 node

  • 调查一下论坛上用 Linux 的桌面环境 at June 29, 2017

    ubuntu server 16.04(物理机)

  • 关于模型问个特别小白的问题 at June 29, 2017

    怎么感觉这样也行。

    def a
      self.name
    end
    
  • Ruby 脚本总是使 CPU 占用率 100% at June 27, 2017

    隐藏彩蛋。。这都可以

  • Ruby 脚本总是使 CPU 占用率 100% at June 27, 2017

    https://ruby-china.org/topics/25959 建议试试 ruby-prof,查看一下 CPU 消耗在哪些地方。

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