Forum: Ruby on Rails link_to_function onmousedown

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

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">

Thanks,
  Brad
--
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:

link_to_function("click","",{:onmousedown=>"foo()"})
This topic is locked and can not be replied to.