Skip to content

Instantly share code, notes, and snippets.

@gunn
Forked from anonymous/gist:779401
Created January 14, 2011 09:30

Revisions

  1. gunn renamed this gist Jan 14, 2011. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions gistfile1.rb → routes.rb
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,9 @@
    Blog::Application.routes.draw do
    resources :posts do
    resources :comments

    end

    # You can have the root of your site routed with "root"
    # just remember to delete public/index.html.
    root :to => "home#index"

    end
    end
  2. @invalid-email-address Anonymous created this gist Jan 14, 2011.
    10 changes: 10 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    Blog::Application.routes.draw do
    resources :posts do
    resources :comments

    # You can have the root of your site routed with "root"
    # just remember to delete public/index.html.
    root :to => "home#index"

    end
    end