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
item = Item.find(params[:id]) item["message"] = "it works" render :json => item.to_json