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

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -