Are you sure you were creating flexible criterias ? And not rubric
criterias ?

I've got this error in my terminal when creating flexible criterias :
ActionView::Template::Error
(/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:7:
syntax error, unexpected tSYMBEG, expecting ')'
  :partial => 'flexible_criterion',
   ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:7:
syntax error, unexpected ',', expecting ')'
  :partial => 'flexible_criterion',
                                   ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:8:
syntax error, unexpected ')', expecting keyword_end
...cation => :middle}).html_safe );@output_buffer.safe_concat('...
...                               ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:18:
syntax error, unexpected tSYMBEG, expecting ')'
  :partial => 'flexible_criterion',
   ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:18:
syntax error, unexpected ',', expecting ')'
  :partial => 'flexible_criterion',
                                   ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:19:
syntax error, unexpected ')', expecting keyword_end
...ocation => :first}).html_safe );@output_buffer.safe_concat('...
...                               ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:31:
syntax error, unexpected tSYMBEG, expecting ')'
  :partial => 'criterion_editor',
   ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:31:
syntax error, unexpected ',', expecting ')'
  :partial => 'criterion_editor',
                                 ^
/home/benjamin/MarkUs/Markus/app/views/flexible_criteria/create_and_edit.js.erb:32:
syntax error, unexpected ')', expecting keyword_end
...ion => @criterion}).html_safe );@output_buffer.safe_concat('...
...                               ^):
    4:   @criterion, :location => :last }}").html_safe %>");
    5:
    6:   jQuery('#criterion_#{@criteria[-2].id}').replaceWith("<%=
escape_javascript(render
    7:   :partial => 'flexible_criterion',
    8:   :locals => {:criterion => @criteria[-2], :location =>
:middle}).html_safe %>");
    9:     }
    10:
  app/controllers/flexible_criteria_controller.rb:52:in `create'


Le 16/12/2013 18:21, gusht a écrit :
>
> In app/views/flexible_criteria/create_and_edit.js.erb:
>
> > @@ -0,0 +1,38 @@
> > +if (@criteria.count > 2) {
>
> It's working fine for me. I've created 3 differents criterias, tried
> to update them in different ways and delete them, it's ok.
> Looking at your screenshot, are you sure your bug was not about your
> assignement due date?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/MarkUsProject/Markus/pull/1232/files#r8373584>.
>


-- 
Benjamin Vialle
+33 (0)6 63 66 40 68
benjamin@vialle.io