Search This Blog

Tuesday, August 28, 2012

ROR falling deeper , hoping i could climb up

I feel am learning something about Rails continuously. But at the end of the day the clarity is missing. I would now tell one thing which i understood , which i feel everyone must know before learning rails.
The MVC architecture. Rails allows you to build applications that follow MVC architecture.
M--> Model --> contains business logic and database interactions
V--> View --> contains code for front end
C--> Controller --> contains the flow of the application. Links view and models.

So what happens when a HTTP request arrives??
  • First it hits the routes.rb file where we have our routes specified
  • After reaching routes it knows which action of which controller to hit. It hits that action.
  • The controller then interacts with model if necessary and then view corresponding to that action is hit. View is rendered and displayed to the user !
More about rails in future posts !

No comments:

Post a Comment