Open sebastiandeutsch opened 3 years ago
@sebastiandeutsch that's unexpected! I'll see if I can reproduce this error.
This is the offending link_to
that seems to be erroring: https://github.com/bensheldon/good_job/blob/e769a520f4a0903df989f6b8a81a49acfa4c8c98/engine/app/views/good_job/dashboards/index.html.erb#L46-L48
I did some light googling and I wonder if this maybe applies somewhere in your application? https://stackoverflow.com/a/20817541/241735
I'm unable to reproduce this error 😞
Closing this because of inactivity. Please comment if you are still seeing this.
Encountering something similar when I visit my good_job index!
This stackoverflow issue solved my problems!
I had a model with include Rails.application.routes.url_helpers
. Removing that fixed things. Seems like a legitimate bug in good_job, now with a reproducible way to trigger the issue.
oooooh! @adenta thanks for sharing that! I'll try to reproduce that case and see if I can fix it 🙌🏻
@adenta Does this describe what you discovered in your codebase?
There was an
include Rails.application.routes.url_helpers
at the start of a file for a [model] instead of being inside the class
yes. All I had to do was remove the include Rails.application.routes.url_helpers
and everything was fixed
On Wed, Jan 10, 2024 at 10:29 AM bensheldon @.***> wrote:
@adenta https://github.com/adenta Does this describe what you discovered in your codebase?
There was an include Rails.application.routes.url_helpers at the start of a file for a [model] instead of being inside the class
— Reply to this email directly, view it on GitHub https://github.com/bensheldon/good_job/issues/313#issuecomment-1885068229, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGUU5WAPJ4Y6CHTJOARQCDYN2XUVAVCNFSM5BBBSAJ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGUYDMOBSGI4Q . You are receiving this because you were mentioned.Message ID: @.***>
Hi,
I have a simple email job and when perform it the dashboard will throw the following error while the job is queued (the job actual works):
arguments passed to url_for can't be handled. Please require routes or provide your own implementation
Showing /home/app/server/staging/shared/bundle/ruby/2.7.0/gems/good_job-1.11.3/engine/app/views/good_job/dashboards/index.html.erb where line #46 raised:
StackTrace:
any idea where that comes from?