« first day (1 day earlier)    last day (14 days later) » 

8:30 AM
I've also tried at the beginning of the create method:
if stakeholders_attributes.empty?
@organisation.errors.add(:stakeholders, 'User not provided')
@organization.stakeholders.build
render 'new' and return
end
Submitting the form without user info, still does not generate an error message "User not provided". So I'm thinking that `if stakeholders_attributes.any?` does not work.
 
 
9 hours later…
5:28 PM
I don't know if you still see chat, but I think I've been able to improve and clean up the code. I posted a new question with the new code and last issue: stackoverflow.com/q/31072646/4499505
 

« first day (1 day earlier)    last day (14 days later) »