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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Michael Pavling
2011-Jul-19 15:32 UTC
Re: please help me to complete this task.. how i start?
On 19 July 2011 12:05, Dhaval Mehta <2010dhaval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> There is Company which builds products(Consider this company a > software company). >This reads suspiciously like a homework/assignment question... -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
bertly_the_coder
2011-Jul-19 16:09 UTC
Re: please help me to complete this task.. how i start?
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 <2010dha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Michael Pavling wrote in post #1011668:> On 19 July 2011 12:05, Dhaval Mehta <2010dhaval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> There is Company which builds products(Consider this company a >> software company). >> > > > This reads suspiciously like a homework/assignment question...Yes its task for me.. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
bertly_the_coder wrote in post #1011681:> 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.No its not paid assignment.. its jst a task.. can u please tell me step by step from where i should start.. Thankx.. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Michael Pavling
2011-Jul-22 11:26 UTC
Re: Re: please help me to complete this task how i start?
On 22 July 2011 10:52, Dhaval M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> No its not paid assignment.. its jst a task.. > can u please tell me step by step from where i should start.. > Thankx.. > >I suggest you revise all the course material you have been given, and read all your notes. Then start working on the problem. If you have any specific question (as opposed to generic "how can I do this homework?"), ask them... -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dhaval Mehta
2011-Jul-22 11:34 UTC
Re: Re: please help me to complete this task how i start?
ok thank you... On Fri, Jul 22, 2011 at 4:56 PM, Michael Pavling <pavling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 22 July 2011 10:52, Dhaval M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> No its not paid assignment.. its jst a task.. >> can u please tell me step by step from where i should start.. >> Thankx.. >> >> > I suggest you revise all the course material you have been given, and read > all your notes. Then start working on the problem. > If you have any specific question (as opposed to generic "how can I do this > homework?"), ask them... > > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- *Regards, Dhaval Mehta* -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.