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

[email protected]
天华建筑设计
上海
46 Topics / 1382 Replies
181 Followers
245 Following
74 Favorites
选Ruby是符合我爱钱爱金爱宝石气质的…
GitHub Public Repos
  • wechat 1331

    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 13

    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 2

    OpenProject is the leading open source project management software.

  • dify-ruby-sdk 2

  • homeland 1

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

  • ruby 1

    The Ruby Programming Language [mirror]

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Rails db agnostic at September 27, 2014

    可以,多数据库,多连接支持,而且是无缝的 ActiveRecord 支持。

  • [上海][2014年9月16日] 2014 年 9 月 周中聚会 at September 14, 2014

    #9 楼 @cqcn1991 妹子还是现在的同济多,过去,唉。。。

  • 现在都在用什么版本的 rails at September 11, 2014

    全部升级到 Rails 4 了,还有,这贴真水。。

  • 关于 vim ,还有一些不满意的地方 at September 09, 2014

    一年前我对 Rubymine 也和楼主一样的感觉,但现在多数情况下都用 sublime,只有大规模重构,提取的时候才用 Rubymine,原因是 sublime 响应速度快。。。

  • 小贴士: 面条头发惊讶脸运算符 at September 09, 2014

    #8 楼 @xzgyb 多谢,我知道了,这里还有一篇 blog讨论这个问题。

  • 小贴士: 面条头发惊讶脸运算符 at September 09, 2014

    #4 楼 @luikore 还是没懂,能详细说一下么?

  • cap 报错【NoMethodError: undefined method `map' for :roles:Symbol】 at September 06, 2014

    deploy.rb 一般应该是这样的语法吧?

    namespace :deploy do
    
      desc 'Restart application'
      task :restart do
        on roles(:app), in: :sequence, wait: 5 do
          # Your restart mechanism here, for example:
          execute :touch, release_path.join('tmp/restart.txt')
          execute :curl, '-s -D - apc.sandisk.com -o /dev/null'
        end
      end
    
      after :publishing, :restart
    
      after :restart, :clear_cache do
        on roles(:web), in: :groups, limit: 3, wait: 10 do
          # Here we can do anything such as:
          # within release_path do
          #   execute :rake, 'cache:clear'
          # end
        end
      end
    
    end
    
  • 咨询:高手都是如何高效便捷的处理 Windows 下的中文路径编码问题 at September 04, 2014

    还有 windows 下目录名不要带空格,还有不要用 D 盘(或者在 C 盘上用 mklink /j 连到 D 盘。。)

  • 求在 windows 下安装编译 libv8 经验 at September 04, 2014

    我也用了很久 Windows 下的 rails 了,装一个 nodejs,用 sass 就好,therubyracer 基本很难在 Windows 下跑起来的。

  • Web Development Trends For 2015 And Beyond at September 03, 2014

    @shijuvar He specializes in Cloud Computing and Mobility solutions. He writes apps in C#, Go and Node.js.

    最讨厌不懂 ruby/python 就乱黑的人了,我可是有十年.Net 经验后才黑.Net 的。

  • 网站出现 This website is under heavy load 怎么破 at August 30, 2014

    配置passenger_min_instances为一个比较合理的值(默认 1 太小了),比如 7。

  • Fork 开源项目之后 at August 27, 2014

    #9 楼 @tiseheaini 那就应该严格区分应该递交到 upstream 的修改和自己的定制,自己的定制尽量少,然后及时拉 upsteam 的 master,然后 rebase 自己的修改 branch 到 master

  • 阿里云服务最低配置 512 M 内存跑 Unicorn Rails 老报内存不足 at August 27, 2014

    换 passenger 试试?一体化设计加上没有 zero down time 的重启,可能内存就足够了

  • Fork 开源项目之后 at August 27, 2014

    关键的关键是 upsteam 改动要及时拉下来,origin 改动要及时 PR,补丁或者 cherrypick 只是官方不接受你的 PR 的补充。

  • Win32ole 多线程问题 at August 25, 2014

    升到 2.0.0 呗,现在 2.0.0-p481 在 windows 下面很稳定的说,还有管理 windows 的话,可以考虑从wmi-lite开始,而不是直接使用 win32ole。

  • 好消息 Toad for Mac 免费 at August 24, 2014

    #25 楼 @saillee 还好吧,也就图个轻量

  • [已解决] Rails 应用设计 UML,大家都使用什么软件? at August 22, 2014

    基本上 rails 用不上 UML,ActiveRecord 定义好后 Rubymine 可以直接导出 E-R 图的。

  • Rails 如何直接返回 json 数据 at August 21, 2014

    应该用 jbuilder gem,这样才是 rails 的推荐做法。

  • ruby china 咋好多天都出不来一两个好帖子,要没落的节奏啊 at August 19, 2014

    #1 楼 @iBachue Ruby 2.0 Timeout 的内部实现确实不错,差点错过! #3 楼 @hz_qiuyuanxin 妆略浓。 楼主 @hmilym 要没落所以不安全,所以需要发在安全节点?。。。

  • 使用 mechanize 模拟登陆 ruby-china 成功,但是使用 curl 失败了。 at August 19, 2014

    #3 楼 @saiga 多谢,我也学了一招,顺便分享一下如何在 Windows 环境下安装 curb

  • 今天我去面试, 受打击了 at August 19, 2014

    学.NET 的默默路过。。

  • 在 bulild nokogiri 阶段,系统提示缺少 libiconv at August 17, 2014

    #1 楼 @hging 99.9% mac

  • 开发环境如何限制不要自动重载一些目录下面的文件? at August 14, 2014

    我也有一个 400+ Model 的 rails 项目,不过没有遇到 @linjunhalida 的问题啊?你检查一下是否引用了 googlde 字体吧?一般应该是这个导致页面加载缓慢,换成 360 的 web 字体就好了。

    <link href='http://fonts.googleapis.com/css?family=Russo+One' rel='stylesheet' type='text/css'>
    <link href='http://fonts.useso.com/css?family=Russo+One' rel='stylesheet' type='text/css'>
    
  • 新项目追求稳定,rails 版本用 3.2.16 好,还是用 4.1.0?求坑少 at August 10, 2014

    果断 4.1.4,另外 3.2 的小版本号已经是 3.2.19 了。。

  • erb 可以继承吗?能制定位置吗? at August 09, 2014

    类似这样?用 content_for 和 yield,甚至 render 也行。

    app/views/lots/dp.html.erb

    <% if @lot.lotattributes.stdmrgebatch.present? -%>
    <% title = "#{@lot.lotattributes.stdmrgebatch} #{@product.packagecategory.packagecategoryname} #{@product.densitycode} DP"
       content_for :title, title %>
    <% else -%>
    <% title = "#{@product.packagecategory.packagecategoryname} #{@product.densitycode} #{@lot.containername} DP"
       content_for :title, title %>
    <% end -%>
    <%= render :partial => 'navbar', :locals => {:title => title, :print_template => 'dp' } %>
    

    app/views/layouts/application.html.erb

    <!doctype html>
    <html>
    <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
      <title><%= (yield(:title) + " - " unless yield(:title).blank?).to_s + "MES View" %></title>
      <%= stylesheet_link_tag    "application", media: "all" %>
      <%= javascript_include_tag "application" %>
      <%= csrf_meta_tags %>
    </head>
    <body data-spy="scroll" data-target=".navbar">
    <% if notice.present? -%>
        <div class="alert alert-info"><%= notice %></div>
    <% end %>
    <%= yield %>
    </body>
    </html>
    
  • Ruby 如何避免使用 case...when 代码 at August 09, 2014

    换成 if else。。。

  • RubyMine 总是突然退出了 at August 04, 2014

    换 java 7 的 runtime 试试,官方 Rubymine 应该还不支持 java 8 的 runtime。

  • 新手学习 ruby 在 win 32 上 gem install json 出现错误! at July 27, 2014

    要不你试试我的 Ruby200p481,直接解压缩到 C:\即可。

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