search for: get_available_slots

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

2006 Jan 13
0
AJAX and select form help
...on the _form.rhtml (for ''new'') like so: <%= select(:schedule, :start_date, @dates) %> When that date changes, I need it to pass the selected value to the get_dates controller function (of the Schedule class), that looks like so: def get_slots(date) @slots = Schedule.get_available_slots(date) end Then I need another select box updated on the same (_form.rhtml) page: <div id="slots"> <%= select(:schedule, :slot_number, @slots) %> </div> This can be in a partial if necessary. How do I do this with with AJAX? I''ve tried following the exam...