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/c98692abcfd3576ee5fcde3910330d1eb39a18a5

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.

How do you solve the problem of using link_to (and rendering html in
general) when you don't have a controller?

Am I missing an obviously better approach?

Thank you,
Seamus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to