$('#new-<%= @enrollmentable_resource %>-enrollment').html('<%= j render("form") %>').slide(); $('#new-<%= @enrollmentable_resource %>-enrollment-link').hide(); $('.remote-form').enableValidations();