Forum: Ruby on Rails url_for in tests

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
337cdd270761e0e6f4356de45b04d388?d=identicon&s=25 Jonathan Viney (Guest)
on 2006-01-12 04:34
(Received via mailing list)
Hi there,

I've added an extra bunch of testing features for doing in-browser
testing with Selenium, and am having quite a time figuring out how to
use url_for with having a controller object present. I've tried using
ActionController::Base.url_for and
ActionView::Helpers::UrlHelper.url_for but haven't been able to get
something that works.

What I want to be able to do is call url_for(:controller => 'test',
:action => 'index') and have the URL string returned, anyone know how to
do this?

Cheers, Jonathan.
51f10739fd903d3b57561a15e4598954?d=identicon&s=25 M Daggett (Guest)
on 2006-01-12 07:29
(Received via mailing list)
I think that it might be:

:use_full_path => true


On 1/11/06, Jonathan Viney <> wrote:
> ActionController::Base.url_for and ActionView::Helpers::UrlHelper.url_for
> _______________________________________________
> Rails mailing list

This topic is locked and can not be replied to.