Hello
I need to capture a piece of erb by helper, modify it slighlty and
render it back. Really simplified version below:
def call_tag(tagname, *attrs, &block)
content = capture(&block)
concat render(:inline => process_content(content) :layout =>
false)
end
However if content contains any escaped js, it will be escaped again
and left not working anymore. Is there ANY way to get ERB source and
to already compiled one (through capture helper) ?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en.