Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
木卯君
@saxer
会员
第 17399 位会员 / 2015-02-28

北京
6 篇帖子 / 17 条回帖
0 关注者
0 正在关注
0 收藏
Slowly,Slowly
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 关于 Nokogiri 的安装依赖 libxml2-2.9.4 报错的问题 at 2017年03月24日

    问题解决,多谢

  • 请教一个关于如何在 ActiveRecord 中怎样自定义属性的问题 at 2015年07月21日

    #5 楼 @rei ok

  • 请教一个关于如何在 ActiveRecord 中怎样自定义属性的问题 at 2015年07月21日

    #3 楼 @rei 好的,谢谢

  • 请教一个关于如何在 ActiveRecord 中怎样自定义属性的问题 at 2015年07月21日

    #1 楼 @rei 恩 这样也能计算出订单的总花费,但是有个问题,每次我调用 order.order_total 时,代码会重复执行sale_sum+freight_charges 请问下如果我想使用 order[:order_total] 应该怎样实现啊?我的目的是在 ActiveRecord 中保存一份临时数据,下次其他代码调用此变量时不会重复计算

  • Ruby char ASCII 相互转换 at 2015年05月26日

    #1 楼 @Shy07 👌

  • Ruby char ASCII 相互转换 at 2015年05月26日

    #2 楼 @gihnius 这个好!!

  • 分享给同是新手的 Rubyists,简单说明了些 Ruby 基础知识 at 2015年05月13日
    lambda 
    

    good

  • 10 个 Ruby 技巧提升你的代码 at 2015年03月31日

    #7 楼 @chiangdi 很好

  • Mix-in 和 Extend 终于有点清晰了 at 2015年03月28日

    #1 楼 @chiangdi 好 谢谢

  • 用 AngularJS 重构了整个 Raysnote 笔记本前端, v2.0 上线 at 2015年03月27日

    确认邮件报 500 错误了。。。。

  • Ruby 怎样判断一个数字是整数还是小数? at 2015年02月28日

    怎样发帖啊

  • 如何使用 Rails 建立可跨域访问的 API? at 2015年02月28日

    #11 楼 @hammer it's me 下面是我的 application.css 的内容,rake assets:precompile 之后 只有.right { float: right; },没有别的,是怎么回事?另外怎么发帖啊?

    /*
     * This is a manifest file that'll be compiled into application.css, which will include all the files
     * listed below.
     *
     * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
     * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
     *
     * You're free to add application-wide styles to this file and they'll appear at the top of the
     * compiled file, but it's generally better to create a new file per style scope.
     *
     *= require_self
     *= require bootstrap_and_overrides
     *= require nested_sortable
     *= require tag_it
     *= require jquery.lightbox-0.5
     *= require morris
     *= require jquery.ui.datepicker
     *= require articles
     *= require messages
     *= require workorder
     *= require community
     *= require homepage
     */
    
    /* require_tree . */
    .right { float: right; }
    
  • 闭包的写法应该用哪种 at 2015年02月28日

    第二种,更直观

  • '#' + '@' 会自动多一个 '\' at 2015年02月28日

    搜噶

  • 关于 block 的问题 at 2015年02月28日

    capture 是啥意思?

  • 如何使用 Rails 建立可跨域访问的 API? at 2015年02月28日

    我是新手,没看懂。。。。cors_preflight_check 能解决跨域访问的问题吗?

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