Does anyone know how I can load a Ruby on Rails partial into a jquery dialog? I want to do something like this
$('#advancedExerciseSearchLink').click(function() {
$('#advancedSearch').load('/path/to/advancedsearchform_partial').dialog('show');
}
I could pre-load the partial on the parent page and just show it when the advanced search button is clicked, but I'd rather dynamically load it because it keeps the initial page load lighter. I saw some suggestions for using a custom controller action, but I'd like to keep my controller RESTful if possible.