adding new contact

This commit is contained in:
Eugene Korbut 2009-02-09 01:11:49 +10:00
parent 155c766a29
commit 8f0577bf56
4 changed files with 8 additions and 15 deletions

View file

@ -46,7 +46,7 @@ class ContactsController < ApplicationController
render :action => "list"
end
def add
def new
@contact = Contact.new
@contact.customer_id = logged_user
@ -288,7 +288,7 @@ class ContactsController < ApplicationController
end
# Insert or update
def save
def create
logger.info("BEGIN")
if params["contact"]["id"] == ""
# New contact
@ -337,7 +337,7 @@ class ContactsController < ApplicationController
@groups[g.id] = 0
end
}
render :action => "add"
redirect_to contacts_path
end
end