But here due to escape character #{url} not give actual value it
treated as a string. how to solve this ?
if i do
“<a href=”#{CONFIG[‘URLS’][‘xyz’]}\#{url}"#{tag_options}>#{name ||
url}"
then #{url} gives me proper value but link is wron constructed?
But here due to escape character #{url} not give actual value it
treated as a string. how to solve this ?
if i do
“<a href=”#{CONFIG[‘URLS’][‘xyz’]}\#{url}"#{tag_options}>#{name ||
url}"
then #{url} gives me proper value but link is wron constructed?
please suggest me solution.
Not sure, but there is an “h(…)” function available to ‘escape’ code
the enclosed content. Have you tried it?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.