bryonfinke/Academy_News — comment on commit 1600d0affa880b936b775dd00cd0a3fb35cf3da8
File: app/controllers/application_controller.rb line 5
By trevorturk:

You should set up a current_user thing for this -- I thought we did that at the coffee shop the other day?

Then, you could do current_user.admin?

Check out the Railscast about authentication for a guide about how to do that.