# To understand the flow of application in ror

**URL:** <https://www.ruby-forum.com/t/to-understand-the-flow-of-application-in-ror/150719>\
**Category:** Rails\
**Created:** [October 12, 2008, 12:40am UTC](https://www.ruby-forum.com/t/to-understand-the-flow-of-application-in-ror/150719 "2008-10-12T00:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanmay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ccd318/32.png) [@tanmay](https://www.ruby-forum.com/u/tanmay)\
**Post date:** [October 12, 2008, 12:40am UTC](https://www.ruby-forum.com/t/to-understand-the-flow-of-application-in-ror/150719/1 "2008-10-12T00:40:44Z")

</div>

hi every one i am new in this platform and seeking for help . i have  
created a small application which runs quite well but actually i dont  
know how it flows when and where the method calls itself.

i know every request handeled by controller ,i have read agile web  
development and started to build a shopping cart

i know that when i go to browser and provide link to my  
controller(product) then it calls index page then i have clicked on  
new link then controller goes to new action .now i get the form to  
fill my description .now when i click the create button then how it  
works and how the flow goes everywhere ,how the controller calls the  
different actions from here i am not getting.

when i see the source code on browser then i get/products in form  
action so where it goes iam not getting so please reply me.

thanx

---

<div class="post-metadata">

**Author:** ![tanmay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ccd318/32.png) [@tanmay](https://www.ruby-forum.com/u/tanmay)\
**Post date:** [October 12, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/to-understand-the-flow-of-application-in-ror/150719/2 "2008-10-12T18:50:57Z")

</div>

If I understand your question correctly…

Routing seems to be the core of you are asking. In the case of the  
form, when you click ‘submit’, it’s a POST action, which when combined  
with your controller will be directed to the ‘create’ action. When you  
first asked for the form ‘edit’ or ‘new’, then the request is  
controlled by either the ‘edit’ or ‘new’ actions of of your  
controller. To see the routes based on the actions do a:

# rake routes

---

<div class="post-metadata">

**Author:** ![tanmay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ccd318/32.png) [@tanmay](https://www.ruby-forum.com/u/tanmay)\
**Post date:** [October 13, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/to-understand-the-flow-of-application-in-ror/150719/3 "2008-10-13T15:15:06Z")

</div>

Read about Routes. If you’re using Rails 2 then you shoud know  
something about REST too.  
And this is an excelent guide to understand routing in Rails:

> **[rails.info](http://guides.rails.info/routing/routing_outside_in.html)**
>
> Ruby on Rails,Rails Tutorial,Ruby Basics,Rails 4,Bar Rails,Rail
