I ran into a problem with my shiny new RESTful controller.
One of it’s partial templates is using a custom member action’s
url helper created by map.resources, e.g. “something_model_url(id)”.
This works perfectly when I try it in my webbrowser, but my functional
test fails when it gets to “display” the mentioned partial, telling
Exception: undefined method “something_model_url” for #<#<Class…>
On line #22 of (…)
Obviously the helper does not get defined. I already know that the
routing is not being processed in functional tests due to performance
reasons, but there must be a way to still access my partials?! So
I guess I am searching for the magic “bring me some url-helpers” trigger
in my functional tests. Any suggestions will be greatly appreciated!
I still can’t figure out what the problem could be. It seems it’s
only the singular_url helpers that are missing, the plural_url helpers
do not lead to test failure. Did really no one else run into something
Christoph O. schrieb:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.