riles01
2007-Aug-27 17:19 UTC
Want to Move RestfulAuthentication''s UsersController to Admin::UsersController
I''m trying to move RestfulAuthentication''s UsersController to an Admin module--Admin::UsersController--as I''m also adding roles and permissions for an app I''m building. I would like this all to be within a single user interface with a standard security level required for all these pieces as defined in Admin::BaseController. So far, I''ve been able to view the /admin/users/new form and a list of users I built at /admin/users/ or /admin/users/list, but if I try to submit the /admin/users/new form, I get an error saying that the UsersController cannot be found. Also, if I set login_required in the Admin::BaseController, I get an error that appears to state that SessionsController cannot be found in the /admin directory, which is true. I think the problem lies in lib/authenticated_session.rb, but I''m not sure where to begin. Has anyone else tried this? I see very few references, all questions, using Admin::UsersController, but no answers. Thanks, and sorry for not posting exact errors. I''ll post tonight when I get home if no one has responded. - Ryan --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Possibly Parallel Threads
- "class Admin::UsersController < ApplicationController". What does the double colon do here?
- RestClient::ResourceNotFound in UsersController#index
- NoMethodError in UsersController#show
- uninitialized constant UsersController::User
- ActiveRecord::AssociationTypeMismatch in UsersController#update