Copy and paste from skype is not as good as it sounds. Removing invisible/odd/strange characters which make Devise fail with Ruby 1.9.

This commit is contained in:
José Valim
2009-12-19 20:32:15 +01:00
parent 90c33a4e05
commit a3e7ea59ae

View File

@@ -99,7 +99,7 @@ module Devise
# Render a view for the specified scope. Turned off by default.
# Accepts just :controller as option.
def render_with_scope(action, options={})
 controller_name = options.delete(:controller) || self.controller_name
controller_name = options.delete(:controller) || self.controller_name
if Devise.scoped_views
begin
render :template => "#{controller_name}/#{devise_mapping.as}/#{action}"