[Rails] Re: Validate behaving strangely in a nested form.

2016-05-21 Thread Chris Vukin
this looks like a very interesting project, I've been having some issues with assigning associations thru a form on an related type of app, getting a form that crates an polymorphic association when a provider creates an order and such. would you be up for an email chat on the topic by chance?

[Rails] Re: Validate behaving strangely in a nested form.

2016-05-15 Thread Luis
> > I fix the problem. > It is very annoying when this types of mistakes do not generate an error. (It is almost as bad as my day of c programming chasing a memory leak. dgb to the rescue.) class PatientsController < ApplicationController def create @patient = Patient.new(patient_params)

[Rails] Re: Validate behaving strangely in a nested form.

2016-05-14 Thread Luis
I forgot to post this line for the Patient class. accepts_nested_attributes_for :elig, reject_if: :all_blank, allow_destroy: false On Saturday, May 14, 2016 at 7:39:18 PM UTC-4, Luis wrote: > > Hi all, > > this form will not display the nested part when it fails validation. > What is really t