I am using Grape GEM in my rails app, How can I customize response if record not found or request params are in valid
@video = Video.where(id: permitted_params[:id]).first!
for example there is no record for any id
I am using Grape GEM in my rails app, How can I customize response if record not found or request params are in valid
@video = Video.where(id: permitted_params[:id]).first!
for example there is no record for any id
You can do like this: