Error messages of nested attributes's required field are not displayed

Viewed 9387

In my case, I have a client who has many tasks (which requires :detail and :completion_date fields.). I've been building a nested model form like the following:

= simple_form_for @client do |f|
  = f.simple_fields_for :tasks do |task|
    = task.input :detail
    = task.input :completion_date
  = f.submit

When the form is submitted without either empty 'detail' or 'completion_date' field, the form is re-render but without any error messages displayed.

I've been tried to look for solutions all day. None of those mentioned about failing validation of the nested object's attributes.

Hope anybody can help! Thanks,

1 Answers
Related