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
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
- superadmin : all products by all sellers (all actions)
- seller : all products added by him only (all actions
- customers :all products by all sellers (only view )
pls guide me which approch shud i use