Forum: Ruby on Rails link_to_function onmousedown

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bradley M. (Guest)
on 2006-04-18 17:31
(Received via mailing list)

Is there some way to produce an anchor that looks like the following
using helpers, or should I just code it in the rhtml like this?

  <a href="#" onmousedown="javascript:foo(); return false">

Bradley M.
Bogdan I. (Guest)
on 2006-04-18 20:22
(Received via mailing list)
link_to_function("click me","foo();return false")
Bogdan I. (Guest)
on 2006-04-18 20:25
(Received via mailing list)
Sorry, got that wrong.
i guess it could be:

This topic is locked and can not be replied to.