> 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, url_for should just return the string shouldn't it? > How do you solve the problem of using link_to (and rendering html in > general) when you don't have a controller? This is still a little trickier than it could be, that's one of the key things that I hope we can get out of rails3's Action View changes. Yehuda's putting a stack of work into figuring out a nice, stable API for rendering. Hopefully we can give you something you could subclass and have a really easy job for generating HTML outside of controllers and mailers. > Am I missing an obviously better approach? > > Thank you, > Seamus > > > > -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
