my code is pretty straightforward:
class App < Grape::API
resource :pincards do
post '/' do
end
end
end
and i would make a
POST /pincards
but i end up getting HTTP 405 not allowed. Note that if i changed the "post" to:
get '/' do
end
it will work just fine. so i know my stuff is correct i just don't know why im getting that HTTP 405 on POST.
I also wonder if this sample Grape app shows you how you can do a POST:
https://github.com/dblock/grape-on-rack/
but im unable to follow it.