Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Eric-Guo
@ericguo
VIP
NO. 1665 / 2012-03-31

[email protected]
天华建筑设计
上海
47 Topics / 1393 Replies
181 Followers
245 Following
75 Favorites
Codex PR & commit submitter, specialist on Rails and React.
GitHub Public Repos
  • wechat 1334

    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.

  • homeland 1

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

  • rails 1

    Ruby on Rails

  • ruby 1

    The Ruby Programming Language [mirror]

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 用 Discourse 搭了个 React 中文社区 at June 28, 2015

    React 用 Ember.js 写的 Discourse 当论坛真的好么。。

  • RAILS API TO BE PART OF RAILS 5 at June 28, 2015

    ActiveCable, Turbolink 3, Rails API,明显 Web Application SPA 化是趋势,Rails 5 就是为 SPA 准备的。

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

    #25 楼 @pzgz 还是看队伍情况,我们这边由于要经常写 ASP.NET/Windows Service/Form程序,所以必然是Windows做主力开发机,所以队伍清一色是rubyinstaller在windows下的方案。

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

    #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 June 27, 2015

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

  • 想改变 Rails 生成的表的默认主键的数据类型怎么弄 at June 26, 2015

    这样申明即可。

    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 June 26, 2015

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

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

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

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

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

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

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

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

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

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

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

  • Rails 有 easyUI 的 gem 吗? at June 24, 2015

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

  • 如何让 RubyMine 支持中文文件名? at June 23, 2015

    别用中文名。。

  • ruby.taobao.org 为什么不好用了? at June 21, 2015

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

  • ruby.taobao.org 为什么不好用了? at June 21, 2015

    好像不用 https 还稳定一点。

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

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

  • oracle_enhanced 错误,有见过类似的么? at June 15, 2015

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

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

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

  • oracle_enhanced 错误,有见过类似的么? at June 14, 2015

    #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 June 13, 2015

    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 May 26, 2015

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

  • Rust 1.0 发布!新增 Rust 节点。 at May 16, 2015

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

  • 怎么用正则表达式分解 URI? at May 12, 2015

    其实也可以用addressable

  • Bundler 的作用及原理 at May 12, 2015

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

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

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

  • Rails 中自动布署工具 mina 的经验谈 at May 12, 2015

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

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