A method for preparing a grain or legume cake by cooking the whole grains orlegumes is a rotary cooker andsub-sequently puffing the cooked whole grain or legume into a rice cake form.The whole grain or legume cakes produced by thismethod have a natural, appealing appearance and produce a more durable grainor legume cake.