Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make education be single select. Have location_type pull from yaml

  • Loading branch information...
commit aadbe9c3f69de2a7681bc59cd51d3d88209ef06c 1 parent b2f2058
@lapluviosilla lapluviosilla authored
View
4 app/models/project.rb
@@ -26,11 +26,11 @@ class Project < ActiveRecord::Base
accepts_nested_attributes_for :field_host
accepts_nested_attributes_for :organization
- %w(dining_location internet_distance location_type housing_type safety_level typical_attire).each do |f|
+ %w(dining_location internet_distance location_type housing_type safety_level typical_attire student_educational_requirement).each do |f|
enumerize f, in: I18n.t("enumerize.project.#{f}")
end
- %w(required_languages related_student_passions related_fields_of_study student_educational_requirement).each do |f|
+ %w(required_languages related_student_passions related_fields_of_study).each do |f|
enumerize f, in: I18n.t("enumerize.project." + f), multiple: true
define_method "#{f}_with_deserialize" do
View
2  app/views/projects_setup/location.html.haml
@@ -17,7 +17,7 @@
.location-col1= f.input :internet_distance, label: "How far away is the internet?"
.location-col2
%label Is your location urban, surburban or rural?
- = f.input :location_type, label: false, as: :button_group, collection: Project.location_type.values
+ = f.input :location_type, label: false, as: :button_group
-# = f.input :location_type, label: false, input_html: {style: "display:none;"}
Please sign in to comment.
Something went wrong with that request. Please try again.