add new field

This commit is contained in:
Sunandar
2017-02-09 18:01:50 +06:30
parent 9dc6fd3cbe
commit 07477f1a06
7 changed files with 132 additions and 91 deletions

View File

@@ -8,7 +8,7 @@ class Api::ClientsController < ApplicationController
clients =Client.all
arr_client=Array.new
clients.each do |client|
str={:id => client.id,:name => client.name,:email => client.email,:phone => client.phone,:address => client.address,:product_type => client.product_type}
str={:id => client.id,:name => client.name,:email => client.email,:phone => client.phone,:address => client.address}
arr_client.push(str)
end
@out=true,arr_client