- assocs(assoc_type).each_pair do |assoc_name, assoc| - remote_ctrl = associated_model_controller(assoc[:remote_model]) - remote_url = remote_ctrl.route(:reverse_assoc, self.class, assoc_type, assoc_name, item_id) .tab-pane id="editor-tabs-#{assoc_name}" javascript: $(function(){ new Rear.Assoc('#{remote_url}', '##{assoc[:dom_id]}').load(); }); div id=(assoc[:dom_id]) div id=(assoc[:dom_id] + '_detached')