The Auth helper can be used for authentication without using a model. This can be useful when working with very basic applications that don't require database access.
If you're looking for a way to do authentication using a model you should take a look at Helper::User instead.
Log a user in based on the :username and :password key in the request hash.
@return [String] The login template in case the user's login data was
incorrect.
# File lib/ramaze/helper/auth.rb, line 33 def login if trait[:auth_post_only] and !request.post? return auth_template end @username, password = request[:username, :password] answer(request.referer) if auth_login(@username, password) return auth_template end
Generated with the Darkfish Rdoc Generator 2.