Right now I have the following and it works fine...
respond_with :api, :v1, @hotel
however, I would like to be able to throw additional items on there such as...
respond_with :api, :v1, @hotel, success: :true #bad example but you get the idea
What is the syntax to do this, as what I have above does not work.
This works on my #index for an index of all hotels
respond_with ({ success: :true, hotels: @hotels }.as_json)
but for my #create
I have to include :api :v1. Why is that, and what syntax do I need to add additional custom keys/values to my model json output?