Observe_field and radio button... does not work?

I try to catch click event on radio button, but nothing is executed…
Tested with RoR 1.1.2 and 1.1.3. What am I doing wrong?

<%= radio_button_tag(:city, ‘Dublin’) %>

<%= observe_field(:citi, :frequency => 0.5,
:on => ‘click’,
:with => “‘city=’ + $F(‘citi’)”,
:url => { :action => ‘remote_city_choosen’ })
%>

def remote_city_choosen
puts ‘#’ * 60 # nothing is displayed
p params[:citi] # on the console :frowning:
end


Jaroslaw Z.
http://blog.zabiello.com

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