can we def some ruby function (other than javascript) in onclick event for radio button in rails..
for example <%= radio_button(count, voting.vote_count, :onclick => "if voting.nominees.eql?(selected.nominees) voting.update_attribute('vote_count',voting.vote_count+1 )") can i use like this..