NoMethodError in after callback inside Grape::Middleware::Formatter
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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'
}
- Ngôn ngữ chính
- Ruby
- Star
- 10k
- Fork
- 1.2k
- Merge trung bình
- 14 giờ 9 phút
- Pull request đã merge (30 ngày)
- 96
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ruby-grape/grape
-
feature request you can help
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
ruby-grape/grape#2487 · 2 bình luận · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ruby-grape/grape#2979 · 1 bình luận ·
-
chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
ruby-grape/grape#2562 · 4 bình luận ·
-
feature request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ruby-grape/grape#2522 · 3 bình luận ·
-
bug?
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ruby-grape/grape#2473 · 6 bình luận · 1 reaction ·
Tất cả issue của ruby-grape/grape
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
simp/pupmod-simp-simp#395 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
simp/pupmod-simp-rsyslog#219 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
simp/pupmod-simp-pupmod#256 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
simp/pupmod-simp-sudo#150 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100