Reputation: 2846
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
Reputation: 9447
This is quite good overview how Rails dispatcher works: http://brainspl.at/request_response.pdf
Upvotes: 1
Reputation: 11967
Here is a presentation about request life cycle in Rails http://www.slideshare.net/lachie/the-rails-request-cycle
Upvotes: 4