# Admin/Customers Login

**URL:** <https://www.ruby-forum.com/t/admin-customers-login/115065>\
**Category:** Rails\
**Created:** [September 20, 2007, 9:55am UTC](https://www.ruby-forum.com/t/admin-customers-login/115065 "2007-09-20T09:55:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ccd318/32.png) [@elle](https://www.ruby-forum.com/u/elle)\
**Post date:** [September 20, 2007, 9:55am UTC](https://www.ruby-forum.com/t/admin-customers-login/115065/1 "2007-09-20T09:55:27Z")

</div>

Hi,

I am developing a shop and I already created an admin login using  
act\_as\_authenticated.  
I now want to create the following:

1. Admin can create a new customer and assign her a discount level
2. Admin can basically administer add/delete/edit/list customers
3. Customer need to login in order to place an order
4. Optional: When customers log in, they could see a history of  
previous orders they placed

I have been thinking about this for a few days and my logic says I  
need to create a new ‘Customer’ object (and table in my db).  
What I am having trouble with is how to implement the customers’ login/  
administrating?

I’ve been trying to find a tutorial or howto anywhere, but they only  
show how to place an order without logging in.

Any help will be much appreciated.

Elle
