Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def activate
- @giftcard = Giftcard.find(params[:id])
- if @giftcard.activate
- redirect_confirm "Giftcard has been successfully activated!", admin_giftcards_url
- else
- redirect_error @giftcards.errors.full_messages.join(' '), :back, admin_giftcards_url
- end
- end
Add Comment
Please, Sign In to add comment