rails new <projectname> Your models are all off, especially if using STI. The user model should cover all users. Use a column to differentiate between admin, Employee...etc. Product is another model with a purchased flag and documents is a third model.
Use Devise and Cancan for logging in an permissions And there you have it!! Good luck man, this sounds like a paid assignment more than anything else. Knock 'em dead. On Jul 19, 7:05 am, Dhaval Mehta <[email protected]> wrote: > There is Company which builds products(Consider this company a > software company). > - These Products can have some Documents (PDF or HTML format uploaded > some where online you can store links to these documents in database, > you don't have to create any upload functionality). > - The users to this project are the Employees itself few of them can > be Admin inside so that they can Create new Users inside the system > (Actually User is STI and Admin, Employee, Client are the types of > User). > - Only Admin has rights to Add or Edit Users and Purchase > details(Creation of users can like Creating a Admin or a Employee or a > Client And by Purchase details I mean Making Entry of Purchases made > by Client and other purchase details). > - The Admin and Employee has rights to Add or Edit Product and > Document > - A Client can login in to the system to view Documents or download > products that he had already purchased. > - And finally generate following reports for Admin > - Showing Details of products inside the system. > - Showing Client names and the products that they have > purchased > - Showing Details of Product Documents (Product name and few > document details) > > Following are the models that you can create:- > > User > Admin > Employee > Client > Product > Purchase > PurchasedProduct > Document > ProductDocument -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

