Forum: Ruby on Rails RE: url_for in tests

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
337cdd270761e0e6f4356de45b04d388?d=identicon&s=25 Jonathan Viney (Guest)
on 2006-01-12 09:04
(Received via mailing list)
Mmmm not really...

include ActionView::Helpers::UrlHelper
url_for(:controller => 'person', :action => 'view', :id => 1)

gives a SystemStackError (too deep), and

ActionController::Base.new.url_for() says that @url isn't defined. Maybe
I need to set up a controller and request/response object in the same
way the functional tests do.

-Jonny.
Cb33b32bd5d675db7be148542976e510?d=identicon&s=25 Sam Joseph (Guest)
on 2006-01-17 18:52
(Received via mailing list)
I think the patch I just sent in might fix this for you:

http://dev.rubyonrails.org/ticket/3517

CHEERS> SAM
This topic is locked and can not be replied to.