 <p>to respond with you'll have to do somethiing liek this:</p> <pre><code>format.json do render json: { booking_attr: @booking.attr, booking_second_attr: @booking_second_attr, id: @booking.id } end end </code></pre>