Hi all,
I''m developing an application with Rails 3.0.9 and I have a checkbox
and I want to call a function when it is checked/uchecked.
I''m trying with:
<%= check_box_tag "mylabel" t.to_s, false, { :onchange =>
remote_function( :url => { :action => ''update_preview'',
:id =>
t.to_s })} %>
in the "show" view and this in the controller
def update_preview
puts "-> hey!!!"
end
But the update_preview isn''t called
Someone can help me to understand?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.