       $("input[data-k-uuid='" + @uuid + "'][data-attr='" + attr + "']").data("val", val)
 
   append_data_model: ->
-    model_div = "<div data-k-uuid=" + @uuid + " data-id=" + @id + " data-class=" + @model.replace("-", "_") + " data-parent-type=" + @parent + " data-parent-id=" + @parent_id + "></div>"
+    model_div = "<div data-k-uuid=" + @uuid + " data-id=" + @id + " data-class=" + @model_name.replace("-", "_") + " data-parent-type=" + @parent + " data-parent-id=" + @parent_id + "></div>"
     $("[data-kindred-model]").append(model_div)


    @append_data_model()

    $("[data-append='" + @model + "']").append($template)

    unless @error?
      error_tag = $("[data-error][data-k-uuid='" + @uuid + "']")

      @update_data_vals()

  destroy: ->
    @route ||= @model_name.replace("-", "_") + "s"
    url = "/" + @route + "/" + @id + ".json"
    method = "DELETE"

