msoulier wrote:> NameError (uninitialized constant
> ActionWebService::Dispatcher::ActionController
> ::UnknownAction):
Apparently the problem is documented in the errata on the website for
the
book. This fixes the problem.
[msoulier@tigger papproach]$ hg diff -r 27 -r 28
diff -r 282a076a19ac -r f1f71757bb90 app/controllers/application.rb
--- a/app/controllers/application.rb Sun Sep 24 16:53:02 2006 -0400
+++ b/app/controllers/application.rb Thu Sep 28 20:27:56 2006 -0400
@@ -11,7 +11,7 @@ class ApplicationController < ActionCont
def rescue_action_in_public(exception)
case exception
- when ActiveRecord::RecordNotFound,
ActionController::UnknownAction
+ when ActiveRecord::RecordNotFound,
::ActionController::UnknownAction
render(:file => "#{RAILS_ROOT}/public/404.html",
:status => "404 Not Found")
else
I don''t understand the fix, but it does work.
I don''t suppose anyone can explain it.
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---