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;”) %>

Or

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

http://api.rubyonrails.com/classes/ActionView/Helpers/ScriptaculousHelper.html#M000408

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