Closed hurtta1 closed 10 years ago
I noticed that in your database migrations you have name, nickname, email, and gravatar all starting with capital letters, perhaps that's the issue. I have mine named identically, except all lowercase, and find_by_email works fine for me.
I thought I tried that already,I'll give it another shot.
Guess I missed changing something, that ended up solving that problem, thanks!
Now i'm stuck on this. def create student = Student.find_by_email(params[:email]) if student && student.authenticate(params[:password]) session[:student_id] = student.id redirect_to show_student_path, :notice => "Welcome to your profile"