Heat a pan and add finely chopped onions and fry till the onions become light brown. Add ginger, garlic and coconut and saute for 2 more minutes. Now add grated tomatoes and add garam masala powder, turmeric powder, and red chilli powder and saute them well till the curry is cooked and starts seperating ghee.