help converting this <a href> tag to rails

I have this working html tag but am not sure how to convert it rails.
i'm getting compile errors.

original html:

<a href="http://webquestpro.com" onmouseover="drc('Enter into the world
of professional web marketing.','PlanMagic WebQuest Pro'); return true;"
onmouseout="nd(); return
true;">WebQuestPro.com</a>

i have tried the following:

<% link_to("WebQuestPro.com", "http://webquestpro.com", :onmouseover =>
"drc('Enter into the world of professional web marketing.','PlanMagic
WebQuest Pro'); return true;" onmouseout="nd(); return
true;") %>

any ideas?

I have this working html tag but am not sure how to convert it rails.
i'm getting compile errors.

original html:

<a href="http://webquestpro.com" onmouseover="drc('Enter into the world
of professional web marketing.','PlanMagic WebQuest Pro'); return true;"
onmouseout="nd(); return
true;">WebQuestPro.com</a>

Which is also fine in Rails.

i have tried the following:

<% link_to("WebQuestPro.com", "http://webquestpro.com", :onmouseover =>
"drc('Enter into the world of professional web marketing.','PlanMagic
WebQuest Pro'); return true;" onmouseout="nd(); return
true;") %>

Use <%= (with the equals sign) if you want to put the result of the link_to() into the page output.

any ideas?

If you aren't generating the links, then there's no need to convert HTML to erb with Rails helpers.

-Rob

Rob Biedenharn http://agileconsultingllc.com
Rob@AgileConsultingLLC.com