Go for one initial email and phone number. Let the user add more only if really needed.

This commit is contained in:
Roland 2011-06-22 23:05:57 +02:00
parent 303855be96
commit b1d4e1afeb

View file

@ -8,10 +8,8 @@ class ContactsController < ApplicationController
def new
@contact = Contact.new
3.times do
email = @contact.emails.build
phone = @contact.phones.build
end
email = @contact.emails.build
phone = @contact.phones.build
# list of valid months and days
@months = Array.new