Make a smooth paste out of onions and redchillies.
Boil 1 cup of water and add the above paste.
Remove from heat and add sufficient amount of salt(prob. a tbsp) and the rice flour(you can grind raw rice into powder).
Cover for few seconds and stir it tight.Now heat a flat pan and flat the dough using fingers(be careful).
Add little amount of oil. Turn it when it gets light brown and roast the other side too.