Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
NULL
@return
会员
第 14698 位会员 / 2014-08-26

21 篇帖子 / 47 条回帖
3 关注者
6 正在关注
1 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • rails s 启动过程分析 at 2017年03月19日
    good!
    
  • Ruby 抛出异常后为什么不执行 rescue 中的语句了 at 2017年01月17日

    #12 楼 @piecehealth 是的,就是这个问题,以后写代码要细致了,谢谢大家😁

  • Ruby 抛出异常后为什么不执行 rescue 中的语句了 at 2017年01月15日

    谢谢大家了😀

  • Ruby 抛出异常后为什么不执行 rescue 中的语句了 at 2017年01月15日

    #1 楼 @roccia 谢谢,这样是可以解决问题,但是我不太清楚为什么会抛异常: ArgumentError (wrong number of arguments (0 for 1)): ....

  • Ruby 抛出异常后为什么不执行 rescue 中的语句了 at 2017年01月15日

    #2 楼 @lyfi2003 抛出的异常是:ArgumentError (wrong number of arguments (0 for 1)): 很奇怪

    ArgumentError (wrong number of arguments (0 for 1)):
      app/models/cart.rb:2:in `<class:Cart>'
      app/models/cart.rb:1:in `<top (required)>'
      app/controllers/application_controller.rb:7:in `current_cart'
      app/controllers/line_items_controller.rb:43:in `create'
    

    car.rb 中

    lass Cart < ActiveRecord::Base
      has_many :line_items, :dependent => destroy
      # attr_accessible :title, :body
    end
    
  • Grape 过滤器如何过滤掉 API 方法 (语法不清楚) at 2016年12月21日

    #12 楼 @placeintime 非常感谢,我明白了👍 👍 👍 👍 👍 👍 👍

  • Grape 过滤器如何过滤掉 API 方法 (语法不清楚) at 2016年12月21日

    #10 楼 @chenge 恩恩,是的,我没说清楚,grape 的怎么写呢?求指教

  • Grape 过滤器如何过滤掉 API 方法 (语法不清楚) at 2016年12月21日

    #8 楼 @chenge 是的,是 grape, 有办法实现吗?before { authenticate! :except => [:test]} and before { authenticate! :test} 语法上都有问题😅

  • Grape 过滤器如何过滤掉 API 方法 (语法不清楚) at 2016年12月21日

    #5 楼 @chenge 我知道 :except => [:action] 但是这里的 aciton 是以 get 形式 get ':id/repository/test' 这种情况不太清楚怎么写,能不能解释下,谢谢!

  • Grape 过滤器如何过滤掉 API 方法 (语法不清楚) at 2016年12月21日

    #3 楼 @chenge api 文档中貌似没有这类用法...

  • Grape 过滤器如何过滤掉 API 方法 (语法不清楚) at 2016年12月21日

    @Rei @lgn21st @hooopo @lyfi2003 大家谁有时间帮我看看这个问题,谢谢!

  • Grape 过滤器如何过滤掉 API 方法 (语法不清楚) at 2016年12月21日

    @huacnlee 求教,感谢~

  • 通过 Gitlab 接口 如何打包下载版本库源码 at 2016年12月21日

    已解决

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