# Klass is the Class of the model from a controller context?

**URL:** <https://www.ruby-forum.com/t/klass-is-the-class-of-the-model-from-a-controller-context/149964>\
**Category:** Rails\
**Created:** [October 1, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/klass-is-the-class-of-the-model-from-a-controller-context/149964 "2008-10-01T20:00:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@brett](https://www.ruby-forum.com/u/brett)\
**Post date:** [October 1, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/klass-is-the-class-of-the-model-from-a-controller-context/149964/1 "2008-10-01T20:00:19Z")

</div>

I was trying to figure out what klass is and I think I have it, just  
need someone to tell me if I have got it right.

---

<div class="post-metadata">

**Author:** ![brett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@brett](https://www.ruby-forum.com/u/brett)\
**Post date:** [October 1, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/klass-is-the-class-of-the-model-from-a-controller-context/149964/2 "2008-10-01T20:01:30Z")

</div>

On Oct 1, 6:29 pm, Brett [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I was trying to figure out what klass is and I think I have it, just  
> need someone to tell me if I have got it right.

klass has no particular meaning. It’s commonly used for the name of  
variables, methods etc… containing a class (since the obvious choice  
of class is a reserved word).

Fred
