Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method 'poll' #76

Closed
flynfish opened this issue Feb 4, 2015 · 10 comments
Closed

undefined method 'poll' #76

flynfish opened this issue Feb 4, 2015 · 10 comments

Comments

@flynfish
Copy link

flynfish commented Feb 4, 2015

I get this error very frequently just going to localhost:3000/resque and I have to restart the app. Once it is restarted, that webpage works again.

Showing /usr/local/rvm/gems/ruby-2.1.2@cfs-web/gems/resque-web-0.0.6/app/views/resque_web/overview/show.html.erb where line #4 raised:

undefined method `poll' for #<#<Class:0x000000077cf6d0>:0x000000077ce208>
Extracted source (around line #4):

1: <%= render 'resque_web/queues/queues' %>
2: <hr>
3: <%= render 'resque_web/working/working' %>
4: <%= poll(polling) %>
@ugacode
Copy link

ugacode commented Feb 23, 2015

I've also come across this issue with the following setup: Rails 4.2.0, Puma 2.8.2, Resque 1.25.0

@jdatti
Copy link

jdatti commented Feb 26, 2015

This happened while we mounted resque-web in our application.

Its happening because all the controllers in resque-web are extending 'ApplicationController' instead of 'ResqueWeb::ApplicationController'.

Because of this, helpers are not being included and thats causing this issue.

@mvlwn
Copy link

mvlwn commented Feb 27, 2015

I "fixed" this by putting ResqueWeb::Engine.eager_load! in my routes.rb.

bucchere added a commit to bucchere/questionr that referenced this issue Apr 11, 2015
@bucchere
Copy link

@mvlwn +1 for the eager_load! work around; I can vouch for it working locally and in heroku.

@seanlinsley
Copy link

eager_load! also worked for me

@azelenets
Copy link

@mvlwn +1

@Coren
Copy link

Coren commented Oct 6, 2015

Thanks @mvlwn !

@hakunin
Copy link

hakunin commented Nov 5, 2015

Same here, will this get fixed or at least worked around if its Rails specific?

@rarruda
Copy link

rarruda commented Nov 10, 2015

@hakunin : this is fixed in this PR: #79 (by @jdatti ) and a work around is to put ResqueWeb::Engine.eager_load! into your routes.rb ( as mentioned by @mvlwn )

Once there is a new version of the Gem released, then the fix should come with it!

@mcfiredrill
Copy link

I released a new version of the Gem, which I believe should fix this issue. Please upgrade and feel free to reopen this issue if its still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests