[Rails-core] Re: link_to in models

2009-01-15 Thread Seamus Abshere
> What's the error that you see, url_for should just return the string > shouldn't it? The error is "can't convert String into Hash." If I understand correctly, it's caused by a namespace collision due to the order of includes: > include ActionView::Helpers::UrlHelper # provides link_to (and

[Rails-core] Re: link_to in models

2009-01-15 Thread Michael Koziarski
> Prior to this commit, you could rely on link_to to return immediately > when it saw a string like > >> link_to "Visit Other Site", "http://www.rubyonrails.org/"; > > which effectively prevented it from passing non-hashes to > ActionController::UrlWriter's url_for. What's the error that you see,