I'm using embedded Ruby in HTML and am trying to create a new variable; however, this seems to be modifying the HTML formatting over the code even though I am just trying to create a new variable and modify it. It seems like when I manipulate newfood, I am also changing the value stored in "food" (almost in a pass-by-reference way). How can I pass it by value (if possible)?
<% newfood = food%>
<% newfood.gsub!('a','b')%>