开发者

resque-web authlogic error when trying to start rails server [closed]

开发者 https://www.devze.com 2023-03-19 10:21 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Impr开发者_如何学Cove this question

I am trying to get resque-web server to mount as a rack application as per railscast reque tutorial adding this to routes file :

mount Resque::Server, :at => "/resque"

when i start up rails server i get this error message :

/Users/rick/.rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-a087ad0cba3c/lib/authlogic/controller_adapters/sinatra_adapter.rb:50:in `included': undefined method `before' for Sinatra::Request:Class (NoMethodError)

Looks like something to do with authlogic?

Does anyone know what this is and how to fix it?


I've faced the same issue with authlogic and sinatra. If Sinatra declared, authlogic mixes Implementaion module (see lib/authlogic/controller_adapters/sinatra_adapter.rb). When implementation included it tries to call private method :before on Sinatra::Request class. :before method somehow added using Sinatra::Delegator.

Long story short - issue has gone after I removed old authlogic gem (2.1.6) So the answer is to use the most recent authlogic version.

0

精彩评论

暂无评论...
验证码 换一张
取 消