NoMethodError in after callback inside Grape::Middleware::Formatter
まだ誰も着手していません。
評価
調査の方向性
Start with Grape::Middleware::Formatter and reproduce the NoMethodError using the status(200) response shown in the issue. Trace the failing after callback and establish the expected response behavior; done means the reported error is reproduced, its cause is identified, and the behavior is covered by an appropriate regression test.
索引モデルが issue の本文から書いたものです。
説明
I am getting Grape::Middleware::Formatter : undefined method `collect' for #<Stream:0x00007f685ce13270>
My code works fine, I have tested each line by my hand but if I run the whole API this error appears.
My code is as follow
@stream = Stream.new(stream_params)
@stream.location_id = get_location
@stream.user_id = @streamer.id
@stream.university = @university
@stream.category = @category
@stream.save!
status(200){
'message': 'successfully created the stream request'
}
- 主要言語
- Ruby
- スター
- 10k
- フォーク
- 1.2k
- 平均マージ
- 13時間 13分
- マージ済み PR(30日)
- 115
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby-grape/grape のほかの issue
-
feature request you can help
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
ruby-grape/grape#2487 · コメント 2 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
ruby-grape/grape#3003 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ruby-grape/grape#2979 · コメント 1 件 ·
-
chore
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
ruby-grape/grape#2562 · コメント 4 件 ·
-
feature request
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ruby-grape/grape#2522 · コメント 3 件 ·
ruby-grape/grape の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
hanami/hanami-cli#449 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
resque/resque-scheduler#826 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100