On Jun 22, 2008, at 4:33 PM, Scott Kulik wrote:> 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-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---