module Devise::Controllers::ScopedViews

def render_with_scope(action, path=self.controller_path)

Accepts just :controller as option.
Render a view for the specified scope. Turned off by default.
def render_with_scope(action, path=self.controller_path)
  if self.class.scoped_views?
    begin
      render :template => "#{devise_mapping.scoped_path}/#{path.split("/").last}/#{action}"
    rescue ActionView::MissingTemplate
      render :template => "#{path}/#{action}"
    end
  else
    render :template => "#{path}/#{action}"
  end
end