how to use options in radio botton

You don't need the "options=". That is just in the method definition to let you know that the final argument is defaulted to an empty hash.

radio_button('community','default',0,{:checked,:onClick=>"javascript:set_default(this);"})

Selvaraj Subbaian wrote:

One more thing I noticed. You need to supply a value for the :checked key like :checked => true

radio_button('community','default',0,{:checked => true,:onClick => })

William Pratt wrote: