Skip to content

Instantly share code, notes, and snippets.

@superhighfives
Last active March 2, 2017 18:05
Show Gist options
  • Save superhighfives/329fddffee43ba6561f4c10354356fe5 to your computer and use it in GitHub Desktop.
Save superhighfives/329fddffee43ba6561f4c10354356fe5 to your computer and use it in GitHub Desktop.
Rails 5 API + ActiveAdmin + create-react-app on Heroku
class DrinksController < ApplicationController
def show
render json: {
title: "Sparkling Negroni",
ingredients: [
"⅓ oz. Campari",
"⅓ oz. gin",
"⅓ oz. sweet vermouth",
"Chilled prosecco, or other sparkling wine, for topping",
"Orange peel twist (optional)"
],
steps: "Combine the first three ingredients in an ice-filled cocktail shaker. Shake until cold, then strain the mixture into a glass. Top with prosecco, and garnish with the orange twist.",
description: "The perfect cocktail for sipping after an alfresco dinner on a summer night, Negronis get their red hue and herbaceous beginning from the Italian apéritif Campari, which is mellowed out by floral gin and sweet vermouth. Top off your drink with some bubbly, and enjoy.",
source: "http://www.architecturaldigest.com/gallery/4-easy-entertaining-summer-cocktail-recipes-5-ingredients-or-less"
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment