Skip to content

Instantly share code, notes, and snippets.

@rattlion
Created October 7, 2014 03:44
Show Gist options
  • Save rattlion/4eb432158c105fb0b387 to your computer and use it in GitHub Desktop.
Save rattlion/4eb432158c105fb0b387 to your computer and use it in GitHub Desktop.
def donation_params
params.require(:donation).permit(
:first_name,
:last_name,
:address_1,
:address_2,
:city,
:state,
:zip,
:country,
:email,
:phone,
:amount,
:other_amount,
:frequency,
:cc_brand,
:cc_name,
:cc_number,
:cc_expiration,
:cc_verification,
:designation,
:subscription,
:origin,
:tribute_attributes => [
:tribute_option,
:kind,
:full_name,
:delivery,
:recipient_name,
:recipient_email,
:recipient_address_1,
:recipient_address_2,
:city,
:state,
:zip,
:country
]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment