app/controllers/institutions_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 institution_params
    params.require(:institution).permit(
      :name, :organisation_id, :description, :work_area, :in_search,
      applying: %i(by_phone by_mail by_email documents),
      housing: %i(provided costs),
      contact: %i(person email phone fax mobile homepage),
      address: %i(street zip city)
    )
  end
def institution_params params . require ( :institution ) . permit ( :name , :organisation_id , :description , :work_area , :in_search , applying : %i( by_phone by_mail by_email documents ) , housing : %i( provided costs ) , 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 .
# params.require(:institution).permit(:organisation_id, :name, :description, :work_area, :start_date, :end_date, :positions_count, :address, :contact, :applying, :housing)