Sijo Kg wrote: > Hi > > Have a look at observe_field > > http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001654 > > > > Sijo
Hi, i tried like this, View page: <%= collection_select(:question,:subject_id ,Subject.all, :id, :name ) %> <%= observe_field 'question_subject_id', :url => {:controller=>'question',:action => 'subject_action'}, :with => 'subject_id' %> <div id="div1" > </div> Controller: i tried checking if it comes to the controller.. the controller method is not even called. Please help me to find the mistake def subject_action render :update do |page| page.alert "hello from update items call!!" end end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---