When I am running the project locally and have not got resque running I will get an error message when using enqueue. I understand that totally as the resque server is not running.
Is there a way to catch that error instead so that I can display it as a flash error message instead of halting execution.
What I usually do is do the jobs with resque when
Rails.env == productionorstaging. In development, the jobs are done directly.