Rails / Devise: Namespaced RegistrationsController fetching non-namespaced views -
i have rails 4 / devise 3 app. have base set of routes , view files pretty standard. have namespaced portals
set of views , routes hit when user access site through subdomain.
how tell me namespaced portals::registrationscontroller
devise views app/views/portals/devise
rather app/views/devise
?
here controller:
class portals::registrationscontroller < registrationscontroller layout 'portals/layouts/application' append_view_path 'portals' def create @portal = portal.friendly.find(request.subdomain) super end def edit @portal = portal.friendly.find(request.subdomain) super end def update end end
i tried using append_view_path 'portals'
seemed have no effect. other non-devise controllers grab right view files default.
Comments
Post a Comment