onclick event in ruby

<%= 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