I''ve been using device for quite some times now. I was wondering a good
practice to design the application with scope. Usually I choose to separate
the admin part and the user part. so there is two model Admin and User.
Admin functionality are scoped with Admin , And user functionality are just
like the usual rails covention.
for instance in the controller there might be something like this
admin/documents_controller.rb
application_controller.rb
documents_controller.rb
so for example the the DocumentsController < ApplicationController
while ApplicationController < ActionController::Base
now let say I want the ApplicationController "like" for admin. What is
the
best way to implement this ?
maybe like Admin::DocumentsController < Admin::AdminController, and
Admin::AdminController < ActionController::Base maybe ?
this part get confusing if I perceive Admin as a resource, like managing
the admins. so it would be another controller like Admin::AdminsController ?
have you been into this sort of scenario ? and how would you tackle the
problem ?
Thanks
Ahmy Y
--
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.