search for: set_number_of_grownups

Displaying 1 result from an estimated 1 matches for "set_number_of_grownups".

2008 May 30
4
How to deal with observe_field in partials?
Hiyas I''m having a little problem with a observe_field in a partial "bokings/room_list": <%= select_tag "room_#{room.id}_grownups", options_for_select([0, 1, 2], room.grownups.length) %> <%= observe_field "room_#{room.id}_grownups", :url => set_number_of_grownups_booking_room_url(:id => room.id), :with => "''number='' + value" %> The set_number_of_grownups action does the job and then updates the partial: render :update do |page| page[''room_list''].replace_html :partial => "bookings/room_list...