Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 17th, 2012  |  syntax: Ruby  |  size: 0.17 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class Admin::AdminController < ActionController::Base
  2.  protect_from_forgery
  3.  layout 'admin'
  4.  skip_before_filter :authenticate
  5.  before_filter :authenticate_admin!
  6. end