Skip to content

Instantly share code, notes, and snippets.

/foo.rb Secret

Created September 16, 2016 06:33
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 anonymous/11979ff5d064487f8f00cd2ecc7b82c2 to your computer and use it in GitHub Desktop.
Save anonymous/11979ff5d064487f8f00cd2ecc7b82c2 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