Say i have this short code:
item = Item.find(params[:id]) render :json => item.to_json
but i needed to insert/push extra information to
Have you tried this ?
item = Item.find(params[:id]) item <<{ :status => "Success" } render :json => item.to_json