Skip to content

Commit c8668d3

Browse files
authored
Merge pull request rails#44614 from voracious/add-renderable-to-render-error-message
Add :renderable to the list of rendering keys supported by ActionView::Renderer#render
2 parents aa0952d + 9b39d18 commit c8668d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionview/lib/action_view/renderer/template_renderer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def determine_template(options)
4949
@lookup_context.find_template(options[:template], options[:prefixes], false, keys, @details)
5050
end
5151
else
52-
raise ArgumentError, "You invoked render but did not give any of :partial, :template, :inline, :file, :plain, :html or :body option."
52+
raise ArgumentError, "You invoked render but did not give any of :body, :file, :html, :inline, :partial, :plain, :renderable, or :template option."
5353
end
5454
end
5555

0 commit comments

Comments
 (0)