-
-
Save mikekelly/a7ce2ed97a291917daef to your computer and use it in GitHub Desktop.
Revisions
-
Alex Heeton created this gist
Jun 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ def create card = current_user.credit_cards.create(card_params) if card.persisted? render :success else render :failure end end