Created
July 15, 2012 13:29
-
-
Save mikespokefire/3116934 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AdminController < ApplicationController | |
layout "admin" | |
http_basic_authenticate_with :name => "user", :password => "password" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::CoastersController < AdminController | |
def index | |
end | |
def show | |
end | |
-- Other restful routes -- | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :admin do | |
resources :coasters # This one will hit Admin::CoastersController | |
end | |
resources :coasters # This one will hit CoastersController (the one you already have) | |
root to: "pages#home" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There we go, fixed.