Link_to_function onmousedown

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?

Thanks,
Brad

Bradley M.

link_to_function(“click me”,“foo();return false”)

Sorry, got that wrong.
i guess it could be:

link_to_function(“click”,"",{:onmousedown=>“foo()”})

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs