title: Protecting Content with AuthLogic
body: <p>I know this sounds like a really, really simple use case and I'm hoping that it is, but I swear I've looked all over the place and haven't found any mention of any way - not even the best way - of doing this.</p>
  
  <p>I'm brand-spanking new to Ruby, Rails and everything surrounding either (which may explain a <em>lot</em>). The dummy app that I'm using as my learning tool requires authentication in order to do almost anything meaningful, so I chose to start by solving that problem. I've installed the AuthLogic gem and have it working nicely to the extent that is covered by the intro documentation and Railscast, but now that I can register, login and logout...I need to do something with it.</p>
  
  <p>As an example, I need to create a page where users can upload images. I'm planning to have an <code>ImagesController</code> with an <code>upload</code> action method, but I want that only accessible to logged in users. I suppose that in every restricted action I could add code to redirect if there's no <code>current_user</code>, but that seems really verbose.</p>
  
  <p>Is there a better way of doing this that allows me to define or identify restricted areas and handle the authentication check in one place?</p>