app/controllers/organisations_controller.rb
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def organisation_params
    params.require(:organisation).permit(
      :name, :comments, :cooperation, :coop_notes,
      contact: %i(person email phone fax mobile homepage),
      address: %i(street zip city)
    )
  end
def organisation_params params . require ( :organisation ) . permit ( :name , :comments , :cooperation , :coop_notes , contact : %i( person email phone fax mobile homepage ) , address : %i( street zip city ) ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .