On 4 August 2014 08:28, Marco Antonio Almeida <
marco...@gmail.com> wrote:
> Hi Ian,
>
> Check out line 20 of you StudentIndisciplinesController: . You're passing a
> parameter that is nil according to your log. Also, if you want to have more
> than one student indiscipline being saved you will need to .save inside the
> .each loop. You're also unable to save because of the validation error
> thrown, since you're instantiating the object without a case.
>
> Also, I would suggest that you do the things at your controller more
> restful. Your students action it looks like a create action and your list a
> index action, unless you have a good reason to do how you're doing.