Error_messages_for

I’ve got a controller A, that is calling an action on Controller B. In
controller B if the record that is getting added to the database
doesn’t validate, I would like to be able to display the
error_messages_for :model_B in Controller A.

I’m not exactly sure how to do this, any ideas?

Thanks,