diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-03-24 23:24:47 +0100 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-24 19:43:48 -0300 |
commit | 5170d210e84ab38fa93a1346ebe32b12e75d72bc (patch) | |
tree | 4195f706789899ae6e4cd0372ad4487d934fb80f /actionpack/lib/action_dispatch/middleware/templates | |
parent | 5214e73850916de3c9127d35a4ecee0424d364a3 (diff) | |
download | rails-5170d210e84ab38fa93a1346ebe32b12e75d72bc.tar.gz rails-5170d210e84ab38fa93a1346ebe32b12e75d72bc.tar.bz2 rails-5170d210e84ab38fa93a1346ebe32b12e75d72bc.zip |
correction to the outputted controller name in the diagnostics error template, test included
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb index 50d8ca9484..2099fd069a 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb @@ -1,7 +1,7 @@ <h1> <%=h @exception.class.to_s %> <% if @request.parameters['controller'] %> - in <%=h @request.parameters['controller'].humanize %>Controller<% if @request.parameters['action'] %>#<%=h @request.parameters['action'] %><% end %> + in <%=h @request.parameters['controller'].classify.pluralize %>Controller<% if @request.parameters['action'] %>#<%=h @request.parameters['action'] %><% end %> <% end %> </h1> <pre><%=h @exception.message %></pre> |