search for: userfind

Displaying 1 result from an estimated 1 matches for "userfind".

Did you mean: user_id
2008 Jun 16
2
simple rails login system
...ay by creating a login system, but I''ve run into a glitch. ###user_controller.rb### class UserController < ApplicationController def login @title = "Log In" if request.post? and params[:user] @user = User.new(params[:user]) @userfind = User.find_by_username_and_password(@user.username,@user.password) if @userfind redirect_to :action => "index" else render :text => "Login Failed" end end end...