mattgibson / resque-scheduler-web

Tabs in the Resque Web gem for the Resque Scheduler plugin.
https://rubygems.org/gems/resque-scheduler-web
MIT License
25 stars 24 forks source link

fix:NameError - undefined local variable or method `current_page' #4

Closed davegudge closed 9 years ago

davegudge commented 9 years ago

When pagination is required to display the delayed jobs, an error occurs when attempting to render _next_more.erb as the current_page variable is not defined.

NameError - undefined local variable or method `current_page'

Replacing current_page with request.path

Tested with: resque (1.25.2) resque-scheduler (4.0.0) resque-web (0.0.6)

mattgibson commented 9 years ago

Great stuff! Thanks for the PR :+1: