Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def create
card = current_user.credit_cards.create(card_params)
if card.persisted?
render :success
else
render :failure
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment