diff --git a/app/controllers/my_profile_controller.rb b/app/controllers/my_profile_controller.rb index e2a388c..3d62eb6 100644 --- a/app/controllers/my_profile_controller.rb +++ b/app/controllers/my_profile_controller.rb @@ -15,7 +15,7 @@ class MyProfileController < ApplicationController before_filter do |controller| unless controller.send(:profile).kind_of?(some_class) controller.instance_variable_set('@message', _("This action is not available for \"%s\".") % controller.send(:profile).name) - controller.render :file => File.join(RAILS_ROOT, 'app', 'views', 'shared', 'access_denied.rhtml'), :layout => true, :status => 403 + controller.send(:render, :file => File.join(RAILS_ROOT, 'app', 'views', 'shared', 'access_denied.rhtml'), :layout => true, :status => 403) end end end -- libgit2 0.21.2