Answers for "rails call multiple variable format json"

0

rails call multiple variable format json

respond_to do |format|
  format.html
  format.json { 
    render json: {
      all_data: {
        data: @data,
        data1: @data1,
        data2: @data2
      }
    }
  }
end
Posted by: Guest on December-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language