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 1332

    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...

  • sublime-user-folder 5

    My Sublime Text 4 user folder content

  • openproject 3

    OpenProject is the leading open source project management software.

  • openproject-proto_plugin 1

    Exemplary OpenProject plugin demonstrating different ways to extend OpenProject.

  • homeland 1

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

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 在 bulild nokogiri 阶段,系统提示缺少 libiconv at 2014年08月17日

    #1 楼 @hging 99.9% mac

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

    我也有一个 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 2014年08月10日

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

  • erb 可以继承吗?能制定位置吗? at 2014年08月09日

    类似这样?用 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 2014年08月09日

    换成 if else。。。

  • RubyMine 总是突然退出了 at 2014年08月04日

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

  • 新手学习 ruby 在 win 32 上 gem install json 出现错误! at 2014年07月27日

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

  • 新手学习 ruby 在 win 32 上 gem install json 出现错误! at 2014年07月27日

    将 ruby 和 devkit 全部装在 C 盘,就酱子。。

  • RubyMine external Librarires 设置问题!急! at 2014年07月27日

    File->Settings->Ruby SDK and Gems 选到 2.0 即可。

  • 大家都用什么方式导入项目所需的基本数据? at 2014年07月17日

    #8 楼 @newbie 其实也难说,看情况吧。

  • 大家都用什么方式导入项目所需的基本数据? at 2014年07月10日

    我用 fixture,好处是 test 和 development 的数据可以用同一套,而且 test 跑的速度很快,缺点是维护起来稍麻烦。

    rake db:fixtures:load FIXTURES_PATH='spec/fixtures' RAILS_ENV=development
    
  • 在 RubyMine 中, application.js 中的 require 实时提示称找不到文件. at 2014年07月01日

    版本?降到 Rubymine 6.3.2 试试?

  • rails3 是否可以稳定实现增量编译 Assets Pipeline at 2014年06月27日

    不是大牛,升级到 rails 4。。。

  • Rails 4.1.2 and 4.0.6 released at 2014年06月27日

    升级了,ruby.taobao.org 现在很重要。。

  • Lotus:替代 Rails 的新一代 Web 框架? at 2014年06月25日

    #1 楼 @turingbook 昨天就讨论过了

  • Capistrano 3 部署时 bundle install 时间过长要怎么解决? at 2014年06月21日

    #6 楼 @wcc526 你不是说你在服务器上手动都装好 gems 了么?这个肯定是可以禁掉的,因为这个默认就是禁掉的啊!

  • bootstrap row 之间的竖直方向的距离要怎么调整? at 2014年06月21日

    #9 楼 @billy 同意你的中间路线 😄

  • 求 ruby-installer 的 1.9.2-p180 版本 at 2014年06月20日

    #2 楼 @blacktulip 好吧,我想当然了,我只有 p290 的版本,不知道楼主能不能用了。。 rubyinstaller-1.9.2-p290.exe

  • 求 ruby-installer 的 1.9.2-p180 版本 at 2014年06月20日

    文件对的,只不过需要 FQ

  • bootstrap row 之间的竖直方向的距离要怎么调整? at 2014年06月20日

    #5 楼 @qichunren 我检查了,没有定义,我这个是正解。

  • Capistrano 3 部署时 bundle install 时间过长要怎么解决? at 2014年06月20日

    Capfile 里面,禁掉 bundle 就会跳过这个。

    # require 'capistrano/bundler'
    
  • bootstrap row 之间的竖直方向的距离要怎么调整? at 2014年06月20日
    .row {
      margin-top: 4px;
      margin-bottom: 4px;
    }
    
  • railsinstaller 安装后要配置 rails 环境 at 2014年06月15日

    #4 楼 @DrinE sites 就是你的工作目录,注意工作目录必须在 C 盘,不过你可以用 mklink 做一个其他盘到 C 盘的硬连接。

  • 在 rails 中使用 Bootstrap 风格的 Confirm Box at 2014年06月07日

    bootstrap3应该用这个 gem,更方便。

  • 请问有哪位能讲讲 inverse_of? at 2014年06月04日

    http://stackoverflow.com/questions/9296694/what-does-inverse-of-do-what-sql-does-it-generate 一楼正解。

  • 关于 rails 数据库连接、事务、预编译和批处理的困惑 at 2014年05月27日

    #2 楼 @egg_show 可以是不同连接,或者是相同连接,余下的问题我在实际使用中从不考虑,所以抱歉无法回答。

  • 关于 rails 数据库连接、事务、预编译和批处理的困惑 at 2014年05月26日
    1. find_by_id, find_all_by_name 使用的是同一个数据库连接
    2. 同一事务在绝大多数情况下是保证的(例外情况很复杂,我观察到,不过不知道有啥规律)
    3. Ruby 从来没有预编译这样的阶段,因为是动态语言,不过的确有一个find_each供批量处理数据。
    4. 注意 find_by_id 之类的方法现在在 Rails 4 里面已经全部被find_by替代了,当然,最标准的还是where(从文档详细程度你应该已经能看出倾向性。。)
  • gem so 文件为什么要单独在放一个目录? at 2014年05月25日

    我有关注,不发言不代表没人看。。。楼主问出结果记得填坑。 。。

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