Macit
0
Q:

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
0

New to Communities?

Join the community