app/controllers/ucb_rails/controller_methods.rb
# Before filter that redirects redirects to +login_url+ unless user is logged in
#
# @return [nil]
Before filter that redirects redirects to +login_url+ unless user is logged in
Before filter that redirects redirects to + login_url + unless user is logged in
def ensure_authenticated_user
    unless session.has_key?(:uid)
      session[:original_url] = request.env['REQUEST_URI']
      redirect_to login_url
    end
  end
def ensure_authenticated_user unless session . has_key? ( :uid ) session [ :original_url ] = request . env [ 'REQUEST_URI' ] redirect_to login_url end end
Before filter that redirects redirects to +login_url+ unless user is logged in
Before filter that redirects redirects to + login_url + unless user is logged in
None
nil