# Define the meaning of this error

**URL:** <https://www.ruby-forum.com/t/define-the-meaning-of-this-error/59781>\
**Category:** Rails\
**Created:** [May 6, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/define-the-meaning-of-this-error/59781 "2006-05-06T14:30:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@bash](https://www.ruby-forum.com/u/bash)\
**Post date:** [May 6, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/define-the-meaning-of-this-error/59781/1 "2006-05-06T14:30:14Z")

</div>

hi,  
i just have this error, can anyone tell me what it means and how i can  
fix it thanks.

NameError in HomeController#index  
uninitialized constant Student  
RAILS\_ROOT: ./script/…/config/…

Application Trace | Framework Trace | Full Trace

This error occured while loading the following files:  
student.rb  
Request  
Parameters: None

Show session dump

* * *

user: !ruby/object:User  
attributes:  
id: “13”  
password: 2afdef3e1ba036aa45b6a63421a075aabdbdef19  
login: alaa\_z  
flash: !map:ActionController::Flash::FlashHash {}

Response  
Headers: {“cookie”=\>[], “Cache-Control”=\>“no-cache”}

---

<div class="post-metadata">

**Author:** ![bash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@bash](https://www.ruby-forum.com/u/bash)\
**Post date:** [May 6, 2006, 8:12pm UTC](https://www.ruby-forum.com/t/define-the-meaning-of-this-error/59781/2 "2006-05-06T20:12:11Z")

</div>

Can you supply some more info. What do your user and student models look  
like?

---

<div class="post-metadata">

**Author:** ![bash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@bash](https://www.ruby-forum.com/u/bash)\
**Post date:** [May 7, 2006, 12:05am UTC](https://www.ruby-forum.com/t/define-the-meaning-of-this-error/59781/3 "2006-05-07T00:05:55Z")

</div>

Chris T wrote:

> Can you supply some more info. What do your user and student models look  
> like?

user model is just for login which does encryption for the password  
before save it in the database. student model is empty:is just contains:  
class Student \< ActiveRecord::Base  
end  
i juust tried to get the id of the user to use it to deisplay the  
information about the specific student

---

<div class="post-metadata">

**Author:** ![bash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@bash](https://www.ruby-forum.com/u/bash)\
**Post date:** [May 7, 2006, 12:42am UTC](https://www.ruby-forum.com/t/define-the-meaning-of-this-error/59781/4 "2006-05-07T00:42:33Z")

</div>

bash wrote:

> Chris T wrote:
> 
> > Can you supply some more info. What do your user and student models look  
> > like?
> 
> user model is just for login which does encryption for the password  
> before save it in the database. student model is empty:is just contains:  
> class Student \< ActiveRecord::Base  
> end  
> i juust tried to get the id of the user to use it to deisplay the  
> information about the specific student

Ruby cant find any class named “Student”. As long as student.rb is in  
app/models you should be golden.
