diff --git a/app/controllers/contact_group_controller.rb b/app/controllers/contact_groups_controller.rb similarity index 78% rename from app/controllers/contact_group_controller.rb rename to app/controllers/contact_groups_controller.rb index 8654d45..4bdb75d 100644 --- a/app/controllers/contact_group_controller.rb +++ b/app/controllers/contact_groups_controller.rb @@ -1,17 +1,9 @@ -class Contacts::ContactGroupController < ApplicationController - - uses_component_template_root - - model :contact_group +class ContactGroupsController < ApplicationController layout 'public' def index - redirect_to(:action=>"list") - end - - def list - @contactgroup = ContactGroup.new - @contactgroup.customer_id = logged_user + @contact_group = ContactGroup.new + @contact_group.customer_id = logged_user @contactgroups = ContactGroup.find_by_user(logged_user) end diff --git a/app/views/contact_group/edit.rhtml b/app/views/contact_groups/edit.rhtml similarity index 100% rename from app/views/contact_group/edit.rhtml rename to app/views/contact_groups/edit.rhtml diff --git a/app/views/contact_group/list.rhtml b/app/views/contact_groups/index.html.erb similarity index 94% rename from app/views/contact_group/list.rhtml rename to app/views/contact_groups/index.html.erb index 4043cae..a3dc585 100644 --- a/app/views/contact_group/list.rhtml +++ b/app/views/contact_groups/index.html.erb @@ -1,6 +1,6 @@