diff options
-rw-r--r-- | actionpack/lib/action_view/template.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index 7decec24ab..b9d5b4e70f 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -119,7 +119,7 @@ module ActionView @formats = Array.wrap(format).map(&:to_sym) @virtual_path = details[:virtual_path] - @virtual_path.sub!(".#{format}", "") if @virtual_path + @virtual_path.sub(".#{format}", "") if @virtual_path end def render(view, locals, &block) |