Permalink
Browse files

Make education be single select. Have location_type pull from yaml

  • Loading branch information...
1 parent b2f2058 commit aadbe9c3f69de2a7681bc59cd51d3d88209ef06c @lapluviosilla lapluviosilla committed Sep 30, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/models/project.rb
  2. +1 −1 app/views/projects_setup/location.html.haml
View
@@ -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
@@ -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;"}

0 comments on commit aadbe9c

Please sign in to comment.