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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.