// Show renders the page where users can see a specific card func (c Cards) Show(id int64) revel.Result { if card, err := json.Marshal(models.GetCardByID(id)); err == nil { jsonCard := string(card[:]) return c.Render(jsonCard) } return c.Render() }
// Show returns the json for a specific card func (c CardsAPI) Show(id int64) revel.Result { return c.RenderJson(models.GetCardByID(id)) }