app/views/carnival/shared/form/new.html.haml in carnival-0.0.26 vs app/views/carnival/shared/form/new.html.haml in carnival-0.0.33
- old
+ new
@@ -2,6 +2,6 @@
.gray_border.with_margin_bottom
%h1= t("#{@model_presenter.model_name}.editar.novo")
.action_back
- # TODO add buttons to the form in presenter
= link_to t('back'), index_path, class: 'back_link' if @model_presenter
-= render '/carnival/shared/form/form', button: t('create'), model_object: @model, action: :new
+= render '/carnival/shared/form/form', button: t('create'), model_object: @model, :url => @model_presenter.model_path(:create), :action => :new