Onclick event in ruby

How could I do this in Ruby. I am a newbie

<%= link_to(‘link name’, ‘#’, :onclick => “new
Effect.SlideDown(‘source’); return false;”) %>


<%= link_to(‘link name’, ‘#’, :onclick => visual_effect(:slide_down,
‘source’)) %>


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