Browse files

Merge branch 'master' of

  • Loading branch information...
jaimeiniesta committed Jul 12, 2010
2 parents cf69a01 + 1a35b62 commit 4209cb97e39c2742410f81d86e7f7c5ad310a251
@@ -31,7 +31,7 @@ module ActionDispatch
# Think of creating routes as drawing a map for your requests. The map tells
# them where to go based on some predefined pattern:
# AppName::Application.routes.draw do |map|
# AppName::Application.routes.draw do
# Pattern 1 tells some request to go to one place
# Pattern 2 tell them to go to another
# ...
@@ -10,7 +10,7 @@ module AtomFeedHelper
# Full usage example:
# config/routes.rb:
# Basecamp::Application.routes.draw do |map|
# Basecamp::Application.routes.draw do
# resources :posts
# root :to => "posts#index"
# end
@@ -325,7 +325,7 @@ We need to do this as Rails will deliver any static file in the +public+ directo
Now, you have to tell Rails where your actual home page is located. Open the file +config/routes.rb+ in your editor. This is your application's _routing file_ which holds entries in a special DSL (domain-specific language) that tells Rails how to connect incoming requests to controllers and actions. This file contains many sample routes on commented lines, and one of them actually shows you how to connect the root of your site to a specific controller and action. Find the line beginning with +:root to+, uncomment it and change it like the following:
Blog::Application.routes.draw do |map|
Blog::Application.routes.draw do
# You can have the root of your site routed with "root"
@@ -287,7 +287,7 @@ You most probably have something like this in one of your applications:
# config/routes.rb
Yourapp::Application.routes.draw do |map|
Yourapp::Application.routes.draw do
root :to => "home#index"

0 comments on commit 4209cb9

Please sign in to comment.