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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to