Closed shenoudab closed 14 years ago
I cannot reproduce. Have you used responders:install generator? Is lib/application_responder.rb created? Have you explicitly required the responder?
ya ..
i used responders:install which created file lib/application_responder.rb
and also required the responder as follow :
require "application_responder" class ApplicationController < ActionController::Base self.responder = ApplicationResponder respond_to :html
Regards, Shenouda Bertel
Strange. And what is the content of lib/application_responder.rb?
class ApplicationResponder < ActionController::Responder include Responders::FlashResponder include Responders::HttpCacheResponder
end
I got the same error using edge rails in development mode, the lib dir is not added to the autoload path anymore (https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5018). Add config.autoload_paths += %W( #{config.root}/lib )
to application.rb to fix your issue.
Fixed on Rails master, thanks!
Dears,
i got the below when running Responders master with rails3 master:
uninitialized constant ApplicationController::ApplicationResponder
Regards, Shenouda Bertel