Skip to content

Instantly share code, notes, and snippets.

@marcoow
Created June 17, 2013 12:24
Show Gist options
  • Save marcoow/5796491 to your computer and use it in GitHub Desktop.
Save marcoow/5796491 to your computer and use it in GitHub Desktop.
Rails controller that ensures a user is authenticated
class AuthenticatedController < ApplicationController
ensure_authenticated_user
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment