Skip to content

Instantly share code, notes, and snippets.

@alfie-max
Created September 16, 2016 06:19
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 alfie-max/ce9345e52efbab9a5b9358ed2e9c4335 to your computer and use it in GitHub Desktop.
Save alfie-max/ce9345e52efbab9a5b9358ed2e9c4335 to your computer and use it in GitHub Desktop.
def profile_params
params.require(:user).permit(
:first_name, :last_name,
primary_skill_list: [],
secondary_skill_list: [],
profile_info_attributes: [:id, :profile_pic, :cover_pic, :about,
:work_offsite_alone, :willing_to_relocate, :willing_to_travel, :gender],
address_attributes: [:id, :street_address, :city, :zip, :state_id],
profile_projects_attributes: [:id, :title, :description, :company,
:duration, :completion_date, :position, :through_binkable,
media_attributes: [:id, :url, :media_type]]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment