<%= @website_page.description.replace(“what”, :partial => “punam”) %>
Bob S. wrote:
<%= @website_page.description.replace(“what”, :partial => “punam”) %>
Accidentally hit the return. My apologies! Please disregard the above.
If I wanted to replace the tag “” with the partial named
_contact_form.rhtml (:contact_form), how would I do so?
I thought it could work something like this:
<%= @website_page.description.gsub("", :partial =>
“contact_form”) %>
but then I got some errors with trying to replace a string with a hash.
Any ideas?