I just realized I can do:
helper_method :render_to_string
Which is a fairly low pain threshold, but I still think it could just
be default behavior.
On Oct 11, 4:04 pm, dasil003 <gabrie...@gmail.com>
wrote:> I have a strong use case for render_to_string in views.
>
> This is in the context of a facebook app, but I can imagine a lot of
> scenarios where this might occur:
>
> Consider:
>
> <fb:request-form content="<%= h render_to_string :partial =>
> ''invite_text'' %>">
>
> The invite text is full of HTML that needs to have entities encoded so
> it can be stored in an attribute.
>
> It seems to me this ought to be supported out of the box, but what do
> people think. Plugin?
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---