Consolidating error_messages_for for multiple objects

Hi there

I have a form that saves a user and an address, which are seperate
objects.

A user has_many addresses.

How to display error messages for the adddress object which gets saved
via the same html form?

I’m getting all my validation errors for the user object, but no
detailed messages for the address object despite putting
error_messages_for :address in my view.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs