Created
November 5, 2010 17:21
-
-
Save adonaldson/664480 to your computer and use it in GitHub Desktop.
This file contains 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 AdvertsController < ActionController::Base | |
protect_from_forgery | |
# Non-adminny controller, delete the adverts.html.erb from app/view/layouts, it'll default to using | |
# application.html.erb | |
end | |
class AdminController < ActionController::Base | |
protect_from_forgery | |
before_filter :login_required | |
before_filter :admin_required | |
layout 'admin' | |
end | |
class Admin::UsersController < AdminController | |
# Lovely and empty now! | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment