Got my validation working, just another rails / jquery question

I’ve got a form that gets a partial name from another table. When I submit the form, if this partial name was populated (from a condition), I need to update this field.

Now, is it possible just to update this one record (one field) in jquery, or do I have to pass a value to the controller update the record there? What is the preferred method?

Hey @merlin2049er - Can you provide a few more details? It sounds like you’re looking for accepts_nested_attributes_for but hard to say without more information.

Hi , I got this working by hiding a form element that I could use in the controller to respond to the form submit .

1 Like