Go for one initial email and phone number. Let the user add more only if really needed.
This commit is contained in:
parent
303855be96
commit
b1d4e1afeb
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue