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
  • created_at 不自动保存原因 at November 29, 2016

    创建后默认的都为自动保存.. @hastings 这个数据库供不同语言,不同项目组使用,这个应该不是原因吧?

    class CreateUsers < ActiveRecord::Migration
      def change
        create_table :users do |t|
          t.string :name
          t.timestamps
        end
      end
    end
    
  • ActiveRecord 多态关联的疑问 at November 24, 2016

    #4 楼 @angelfan 通俗易懂,谢谢

  • ActiveRecord 多态关联的疑问 at November 23, 2016

    #1 楼 @nowherekai 再添加 model 的话,继续增加外键...请问是不是外键多的话,严重影响数据库效率?

    def change
       add_column :pictures, :xxx_id, :integer
       add_column :pictures, :xxx_id, :integer
    end
    
  • Rails 新手,请教一个关于时间格式化问题 at November 23, 2016

    @atlas 在前端转换可能会更好,显示效果一样.

    datetime.strftime('%Y-%m-%d') # date
     => "2014-09-12"
    datetime.strftime('%H:%M:%S') # time
     => "16:53:18"
    datetime.strftime('%Y-%m-%d %H:%M:%S') # datetime
    => "2014-09-12 16:53:18"
    
  • 在 Model 中声明关系后,是否有必要数据表中创建将该字段设置为外键? at November 23, 2016

    #1 楼 @huacnlee 谢谢,我以后尽量用模型层的关联方法,数据库层关联有点复杂。

  • 微信开发_服务器接口配置 at November 09, 2016

    #5 楼 @jiazhen 刚刚尝试注册微信,第一步便是输入手机号,倒是银行卡没有必须绑定的要求.

  • 微信开发_服务器接口配置 at November 09, 2016

    #6 楼 @bianjp 谢谢,后来我试着通过修改/etc/ngix/nginx.conf 配置反向代理,暂时可以通过域名打开 rails 页面..不过竟然没有用到 passenger,好奇怪.

    http {
        .....
       server {
          listen 80 default;
          server_name xxxx.com;
          location / {
          proxy_pass http://localhost:3000;
         }
      }
    }
    
    
  • 微信开发_服务器接口配置 at November 08, 2016

    #1 楼 @flowerwrong 请问使用 Nginx + Passenger + Rails 部署的话,nginx 默认为 80,通过 passenger 修改 3000 指向 80?还是 nginx.cof 直接修改端口。

  • 微信开发_服务器接口配置 at November 07, 2016

    #1 楼 @flowerwrong 谢谢

  • 怎么才能写好路由 at November 01, 2016

    一般的复杂路由练习中很少用到,所以感觉没有什么效果.如果在项目中遇到,但是又没有思路,成功写过一遍便记忆深刻.

  • 如何将数据库表中状态字段,在界面上中文显示. at October 30, 2016

    #2 楼 @hging 谢谢

  • 如何将数据库表中状态字段,在界面上中文显示. at October 30, 2016

    #1 楼 @easonlovewan 谢谢

  • Ruby China 2016 纪念拉链帽衫 at October 26, 2016

    😄

  • Ruby China 2016 纪念拉链帽衫 at October 25, 2016

    买买买,楼主连发3个购买链接,太给力了..😎

  • [上海][2016年11月1日] Ruby 聚会召集 at October 24, 2016

    👍 上海又有 Ruby 聚会了..

  • 现在想学习 Ruby,但是没有一点编程的知识?从哪里开始? at October 21, 2016

    @wangsamson 我也是网工转 ruby

    • 入门可以考虑:
      • Ruby on Rails 教程(建议购买正版) http://www.ituring.com.cn/book/1875
      • Ruby on Rails 指南 https://guides.ruby-china.org/ (建议阅读英文版http://guides.rubyonrails.org/)
      • Rei 大大曾说过 (https://ruby-china.org/topics/269#reply5):看完 agile web development 写一个实用的网站(比如博客) 《Rails 高级编程》 重构你的网站;参与 ruby-china 的开发 http://github.com/ruby-china/ruby-china 《Metaprogramming Ruby》 考虑新点子,做个实用工具类网站;在 ruby-china 中参与更多的开发 在自己网站中使用更多时髦的技术;扩展 UI/UE 方面的视野 用 github 帐号作为简历,找到第一份 ruby 工作 在 ruby-china 社区指导 ruby 新手 开发一个广为流传的工具;为著名开源项目贡献代码 编程 10000 小时
  • 如何查看 gem 'bootstrap-sass'中 bootstrap 代码 at October 18, 2016

    #1 楼 @flowerwrong 谢谢!

    问题:请问为什么在 bootstrap 版本中有如下图的样式源码,而 bootstrop-sass 版本却没有样式源码..

  • [杭州][2016年10月20日] Ruby 线下活动召集 at October 17, 2016

    Rubyist 都可以参加吗?好想去听听,涨涨见识

  • [经验之谈] 转行做程序员的 8 个月 at October 12, 2016

    刚刚入行 ruby,现在在创业公司每天加班到 11 点,虽然基础不太好,但是没有一些空闲时间充电...

  • [上海] 寻找有工匠精神的大牛加入技术强队 - Ruby - Rails at September 19, 2016

    這算是我見過最帥的招聘信息。。

  • 讨论下周五或者周六 (9月23/24日) RubyConf China 散会后去哪 High... at September 18, 2016

    +1

  • 学习 Ruby 的一些感慨,身虽远离,但心未存走远。 at August 24, 2016

    刚刚学习 ruby on rails,感觉功能强大,公司里都是各种 Gem 插件,确实头痛。但是发现 ruby 语法好像挺“简单”,但是 rails 却变化万千。

  • [上海][2016年8月16日] Ruby 聚会召集 at August 16, 2016

  • 2016 年后 Web 开发趋势是什么 at August 16, 2016

    技术更新太快,公司一直在用 AngularJS 和 ROR

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