Ilya Tsuryev
Ilya Tsuryev

Reputation: 2846

How do all requests end up in routes.rb in Rails?

If I want to set up simple CGI application which would work on any request (say / or /hello/, /bye and so on I would have to set up, for example, .htaccess file which would redirect any request to my script.rb

But how do all requests end up in routes.rb or in another words - where is the starting point of Rails application?

Upvotes: 2

Views: 101

Answers (2)

Alexey
Alexey

Reputation: 9447

This is quite good overview how Rails dispatcher works: http://brainspl.at/request_response.pdf

Upvotes: 1

Mikhail Nikalyukin
Mikhail Nikalyukin

Reputation: 11967

Here is a presentation about request life cycle in Rails http://www.slideshare.net/lachie/the-rails-request-cycle

Upvotes: 4

Related Questions