Hello guys
i am a newbie in rails and need your guidance in the design of the app.
i am working on a task of creating a store application. its a bit diiferent as people can register as customer and also as seller (like in ebay) and there is also a superadmin
so the levels are 1.superadmin 2.sellers 3.customers
i am using rails 2.0.2 and was looking at how to create a admin section for such app.
i saw railscast no 19,20,21 by ryan bates for creating admin section he does create any admin folder and hides the links the views on the basis of if admin had logged in
I also saw video by akitaonrails where he creates seperate admin folder and copies the views
specifically in my case the difference in views for products for different levels wud be
1. superadmin : all products by all sellers (all actions) 2. seller : all products added by him only (all actions allowed) 3. customers :all products by all sellers (only view )
pls guide me which approch shud i use
Regards Jagdish Rao