 
     # colorpicker
 
-    $('[data-color]').each ->
+    $('form [data-color]').each ->
       that = this
       $(this).ColorPicker
         color: $(that).val()


    # polymorphic-association

    $('[data-polymorphic]').each ->
      type_select = $(this)
      field = type_select.parents('.control-group').first()
      object_select = field.find('select').last()


    # nested-one

    $('form [data-nestedone]').each ->
      field = $(this).parents('.control-group').first()
      nav = field.find("> .controls > .nav")
      content = field.find("> .tab-content")
