Show error with ajax

I have two models pack and products.

In the view of new pack I have a button to popup for to create a new
The new product form use a Ajax request for to create the product.

I want use the model validation in product popup.

I want show the error of product object inside popup with ajax request
(render :partial)

How can I do it?

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