From e1c206d14dcfe62ec648aa964b156c83ef522358 Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Mon, 5 Oct 2015 14:12:05 +0200 Subject: [PATCH] added city --- app/models/supporter.rb | 1 + app/views/supporters/_form.slim | 1 + spec/features/support_spec.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/app/models/supporter.rb b/app/models/supporter.rb index 50fa02b..af80d25 100644 --- a/app/models/supporter.rb +++ b/app/models/supporter.rb @@ -5,6 +5,7 @@ class Supporter field :last_name, type: String field :street, type: String field :zip, type: Integer + field :city, type: String field :email, type: String field :support, type: String # Indicates the type of support field :age_category, type: String diff --git a/app/views/supporters/_form.slim b/app/views/supporters/_form.slim index 0f7c928..c9162c2 100644 --- a/app/views/supporters/_form.slim +++ b/app/views/supporters/_form.slim @@ -4,6 +4,7 @@ h1 = title t('.title') = f.input :last_name = f.input :street = f.input :zip + = f.input :city = f.input :email = f.input :support, as: :radio_buttons, collection: t('support_type'), label_method: :last, value_method: :first = f.input :age_category, as: :radio_buttons, collection: t('age_category'), label_method: :last, value_method: :first diff --git a/spec/features/support_spec.rb b/spec/features/support_spec.rb index e979f2a..71c258f 100644 --- a/spec/features/support_spec.rb +++ b/spec/features/support_spec.rb @@ -8,6 +8,7 @@ feature 'Support announcement' do fill_in 'Nachname', with: 'Blocher' fill_in 'Strasse/Nr.', with: 'Wängirain 53' fill_in 'Postleitzahl', with: '8704' + fill_in 'Ort', with: 'Hinterm Mond' fill_in 'E-Mail', with: 'blocher@blocher.ch' fill_in 'E-Mail', with: 'blocher@blocher.ch'