[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] link_to in models

2009-01-13 Thread Seamus Abshere
Hi, When I moved from Rails 2.1 to edge, I found that the old trick of putting > include ActionView::Helpers::UrlHelper # provides link_to > include ActionController::UrlWriter # provides url_for into models didn't work as well as it used to because of > http://github.com/rails/rails/commit/