Skip to content

Instantly share code, notes, and snippets.

@mikekelly
Forked from alexslade/rails_responder.rb
Created June 18, 2014 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikekelly/a7ce2ed97a291917daef to your computer and use it in GitHub Desktop.
Save mikekelly/a7ce2ed97a291917daef to your computer and use it in GitHub Desktop.
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