diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-07-31 17:50:53 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-07-31 17:50:53 -0700 |
commit | ad4553587efb8e758349b3f163e365781e4c6ad1 (patch) | |
tree | 4df95d786a88d4bee8f0bea47a186231d254bf41 | |
parent | 46a458206f1117b87e672bc5aae046eaa832ee00 (diff) | |
download | rails-ad4553587efb8e758349b3f163e365781e4c6ad1.tar.gz rails-ad4553587efb8e758349b3f163e365781e4c6ad1.tar.bz2 rails-ad4553587efb8e758349b3f163e365781e4c6ad1.zip |
List available actions in UnknownAction exception message
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index ac10a956f3..5689a9825e 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1208,7 +1208,7 @@ module ActionController #:nodoc: elsif template_exists? && template_public? default_render else - raise UnknownAction, "No action responded to #{action_name}", caller + raise UnknownAction, "No action responded to #{action_name}. Actions: #{action_methods.to_a.sort.to_sentence}", caller end end |