Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Eric-Guo
@ericguo
高级会员
第 1665 位会员 / 2012-03-31

[email protected]
天华建筑设计
上海
47 篇帖子 / 1390 条回帖
181 关注者
245 正在关注
75 收藏
Codex PR & commit submitter, specialist on Rails and React.
GitHub Public Repos
  • wechat 1333

    API, command and message handling for WeChat in Rails

  • wechat-starter 351

    WeChat web app with wx_pay in rails

  • tailwindcss-jit-stimulus 19

    A template with Rails 7.1, Shakapacker 7.2, TailwindCSS 3 and Stimulus 3.0

  • pgac_demo 15

    Rails 7.2 Action Cable chat room using AnyCable as backend

  • coreui4-rails-starter 12

    The CoreUI 4 Rails starter

  • product_hunt 5

    Demonstrate new Rails 5.1 feature: Assets on Yarn, System tests with Capybara and unified form_wi...

  • openproject 3

    OpenProject is the leading open source project management software.

  • ruby 1

    The Ruby Programming Language [mirror]

  • homeland 1

    :circus_tent: An open source forum/community system based on Rails, developed based on Ruby China.

  • rails 1

    Ruby on Rails

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Rails 在 Windows 下的完整开发环境压缩包 (Ruby 2.1.7 和 2.2.4) at 2015年06月27日

    #23 楼 @yangyuqian 虚拟机效率不高,另外一个好的软件的必备条件是三平台兼容,Rails/Rust/Node.js 其实都是支持 Windows 的,其中的一些不兼容的东西,从另外一个角度来说,就是还不够好,还不够友善,开发者的诚意还不够。最明显的例子是 less vs sass,less 一直没有做 windows 的兼容,于是,bootstrap 4 用 sass 重写了,所以 Mac/Linux 的同学们如果面对两个相似的都是开源的软件不知道如何选择,不妨用这个三平台原则看看。

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

    #19 楼 @jimrokliu # gem 'redis-rails' 包括了,忘提了。。

  • 想改变 Rails 生成的表的默认主键的数据类型怎么弄 at 2015年06月26日

    这样申明即可。

    Migration:

    create_table :reject_codes, id: false, primary_key: 'reject_code' do |t|
      t.string  :reject_code, null: false
      t.string  :reject_type
      t.string  :sap_location
    end
    

    Model

    class RejectCode < ActiveRecord::Base
      self.primary_key = 'reject_code'
      validates :reject_code, presence: true, uniqueness: true
    end
    

    另外如果只是想单纯改变 ID 的类型,我觉得绝对是不推荐的,没试过,楼主想试可以试试,不过 Rails 开发要顺势而为,逆框架而运功的话。。。你就是高级开发人员啦^_^

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

    #7 楼 @lgn21st 还不如说是叛逃到 Linux 或者 Mac 的灯塔,单纯说 linux 或者 mac 对 Rails 开发好是作用有限的,要让 Windows 开发人员先用 Rails 开发一段时间,下了时间成本,动了感情了,才有动力转啊!

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

    #12 楼 @kingc 有,用了,可以用,企业内部项目,目前 SQL Server 在 Windows 需要使用 ODBC 桥接,但 Linux 通过 FreeTDS 连 SQL Server 却很稳定。

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

    #3 楼 @rei 总要从某个平台开始,我这个压缩包也是完全从 RubyInstaller 开始的,我也承认 Rails 是鼓励 Mac/Linux 上开发的,但是很多人也许只是想试试 Rails,难道还要求他们必须先买 Mac 么?

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

    #2 楼 @lgn21st 加!支持 IE8 的都是好人啦。。

  • 进来吐个槽。RoR 这边的版本兼容性实在是煎熬人性 activerecord-oracle_enhanced-adapter at 2015年06月25日

    等了两天,看到楼主不提,那我就不客气啦。PR642

  • 进来吐个槽。RoR 这边的版本兼容性实在是煎熬人性 activerecord-oracle_enhanced-adapter at 2015年06月24日

    #6 楼 @jasl yahonda 其实真的很严谨了,所有的 change 都是 PR,看看History.md也是满满的诚意,我倒是觉得用 gem,出了问题不上 github 上看一眼这样很不严谨。。

  • Rails 有 easyUI 的 gem 吗? at 2015年06月24日

    貌似没有,不过可以写一个啊!

  • 如何让 RubyMine 支持中文文件名? at 2015年06月23日

    别用中文名。。

  • ruby.taobao.org 为什么不好用了? at 2015年06月21日

    #2 楼 @yan32768 当然是没问题的啦😄

  • ruby.taobao.org 为什么不好用了? at 2015年06月21日

    好像不用 https 还稳定一点。

    c:\git>gem sources -l
    *** CURRENT SOURCES ***
    
    http://ruby.taobao.org/
    
  • Rails 支持多数据源吗? at 2015年06月17日

    可以看看我这个两年前的帖

  • oracle_enhanced 错误,有见过类似的么? at 2015年06月15日

    #5 楼 @pythinchina 换 Rails,哈哈。。

  • Ember Examples with CLI,Github 上入门 Ember 的一堆小例子集合 at 2015年06月15日

    #1 楼 @wppurking 会持续升级的,但是现在还是会使用 1.12.1,计划 1.13.2 的 Patch 小版本出了再说,Glimmer 毕竟还是大改动,碰到诡异的 bug 目测现在我的 Ember 水平还搞不定。。

  • oracle_enhanced 错误,有见过类似的么? at 2015年06月14日

    #2 楼 @pythinchina 如果只读的话,可以这样声明模型:

    class Binslimitsdetail < ActiveRecord::Base
      self.table_name = 'a_binslimitsdetails'
      self.primary_key = 'binslimitsdetailsid'
      establish_connection :mesods
      def readonly?
        true
      end
      belongs_to :binslimit, primary_key: 'binslimitsid', foreign_key: 'binslimitsid'
    end
    
    class Binslimit < ActiveRecord::Base
      self.table_name = 'a_binslimits'
      self.primary_key = 'binslimitsid'
      establish_connection :mesods
      def readonly?
        true
      end
      belongs_to :yieldlimit, class_name: 'Yieldlimit', primary_key: 'yieldlimitsid', foreign_key: 'yieldlimitsid'
      has_many :binslimitsdetails, primary_key: 'binslimitsid', foreign_key: 'binslimitsid'
    end
    
  • oracle_enhanced 错误,有见过类似的么? at 2015年06月13日

    Gemfile

    # Oracle adapter
    gem 'ruby-oci8', '~> 2.1.8'
    gem 'activerecord-oracle_enhanced-adapter', git: 'https://github.com/rsim/oracle-enhanced.git', branch: 'rails42'
    gem 'ruby-plsql'
    
  • 写了一个只有 100 行的 mini 版的 Rails at 2015年05月26日

    想起来一年前 @yangchenyun 在上海 Ruby Tuesday 上分享的tiny_rails_mvc 项目,时间过得好快。。

  • Rust 1.0 发布!新增 Rust 节点。 at 2015年05月16日

    #1 楼 @springwq 因为这是一门没有 GC 但是能实现自动内存管理的语言。

  • 怎么用正则表达式分解 URI? at 2015年05月12日

    其实也可以用addressable

  • Bundler 的作用及原理 at 2015年05月12日

    #6 楼 @yuhaidonghd #4 楼 @yakczh config/intializers里面都会在启动时加载,但是只是在model/controller/helper里面require的话,还是在第一次用的时候加载

  • 准备入 Ruby on Rails 坑了,你们有什么要说的吗? at 2015年05月12日

    #18 楼 @googya #22 楼 @chairy11 我也顶 18 楼,这年头开始学 Rails,还不如学炙手可热的 Playframework,把 Scala 玩好,在加上 Spark,成长性更好啊!

  • Rails 中自动布署工具 mina 的经验谈 at 2015年05月12日

    #16 楼 @lgn21st 我比你还懒,一直用 passenger 和 cap,都没考虑换过。passenger 的开源版本最不好的地方是不支持 zero downtime deploy,不过我也不在乎这点时间。。

  • 一个小问题,基于 Ruby China 改的代码,在这次 Ruby China 更新之后,可以跟着更新吗? at 2015年05月08日

    #2 楼 @cqcn1991 应该 rebase ruby-china 的 master,否则 merge 后始终变成两条开发线,会看的很不舒服。

  • 2015年3月29日 Rubyist 上海 2015 Q1 聚会 at 2015年05月08日

    #42 楼 @lips 更合适 Rails 程序员而已

  • 真是用了 Ruby 就没法再用其他语言了 at 2015年05月05日

    #4 楼 @Martin91 还是要看,很多时候省掉一次数据库查询可以节省 10ms,完完全全足够内存运算很久很久很久很久了。

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