Add Another Component Identity in Another Table in index section
Each do loop lagayenge::::: in the addresses controller
all_addresses = []
addresses.each do |address|
all_addresses << [address, address.user]
return render json: {status: 200, data: {addresses: all_addresses}, message: "all addresses list"}
in the frontend
::: will use debugger and find the
adddresses.addresses[0][]
<td>{address[1].name}</td> ::: will use it in the front end
array [1] will use because data will come in the form of array one by one so.
Comments
Post a Comment