@ishivakumar there are a few code walkthroughs I recommend you check out:

Find out exactly what Rails is doing under the hood when it renders a view template for a response. What object context handles the template? How does the lookup process work? That and more covered in this code walkthrough.