I have a select_tag attribute within a ruby application. However, the default value obtains information from a database - Often that information is changed via an Ajax call and I was just wondering how one would be able to update a default value within a select_tag widget. Here is the following code:
= select_tag 'setup_form_popup', options_for_select([ ["No Setup Time","0"],["15 Minute", "15"], ["30 Minute", "30"], ["45 Minute", "45"], ["60 Minute", "60"], ["75 Minute", "75"], ["90 Minute","90"], ["105 Minute", "105"],["120 Minute","120"]], @event.setup_time), {:prompt => 'Setup Time'}
where @event.setup_time is the default when the page is run ... however when there is an Ajax request, it is not updated as the view is not reloaded. Any and all help is appreciated. Cheers~