mirror of https://github.com/rails/rails
Don't pluralize, camelize.
This commit is contained in:
parent
d42bb68430
commit
0e5adbceb7
|
@ -1,7 +1,7 @@
|
|||
<h1>
|
||||
<%=h @exception.class.to_s %>
|
||||
<% if @request.parameters['controller'] %>
|
||||
in <%=h @request.parameters['controller'].classify.pluralize %>Controller<% if @request.parameters['action'] %>#<%=h @request.parameters['action'] %><% end %>
|
||||
in <%=h @request.parameters['controller'].camelize %>Controller<% if @request.parameters['action'] %>#<%=h @request.parameters['action'] %><% end %>
|
||||
<% end %>
|
||||
</h1>
|
||||
<pre><%=h @exception.message %></pre>
|
||||
|
|
|
@ -131,11 +131,11 @@ class ShowExceptionsTest < ActionDispatch::IntegrationTest
|
|||
'action_dispatch.request.parameters' => {
|
||||
'action' => 'show',
|
||||
'id' => 'unknown',
|
||||
'controller' => 'featured_tiles'
|
||||
'controller' => 'featured_tile'
|
||||
}
|
||||
})
|
||||
assert_response 500
|
||||
assert_match(/RuntimeError\n in FeaturedTilesController/, body)
|
||||
assert_match(/RuntimeError\n in FeaturedTileController/, body)
|
||||
end
|
||||
|
||||
test "sets the HTTP charset parameter" do
|
||||
|
|
Loading…
Reference in New Issue