xamenrax
xamenrax

Reputation: 1744

Ruby on Rails remote create form with popup show partial

I'm a RoR junior and I'm making online shop app, so:

QUESTION: How to make a popup window with line_item's details information appearing when line item's create form is submitted?

Upvotes: 0

Views: 660

Answers (1)

Dennis Hackethal
Dennis Hackethal

Reputation: 14295

You don't need that line in the controller there - all you need is to trigger the display of a popup inside your create.js.erb. That js file will be rendered by convention after executing the create controller method because it is an asynchronous call.

Upvotes: 1

Related Questions