# Stack level too deep

**URL:** <https://www.ruby-forum.com/t/stack-level-too-deep/125929>\
**Category:** Rails\
**Created:** [January 13, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep/125929 "2008-01-13T22:19:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![extempore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6bbea6/32.png) [@extempore](https://www.ruby-forum.com/u/extempore)\
**Post date:** [January 13, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep/125929/1 "2008-01-13T22:19:39Z")

</div>

I have a problem  
why do I get a stack level too deep error when I just add  
def new  
@speler = Speler.new  
end

I try to figure it out but I’m after 2 days of searching out off  
options  
I run ruby 1.8.6  
and rails 2.0.2  
this is the error message in full  
SystemStackError in SpelersController#new

stack level too deep

RAILS\_ROOT: D:/Documenten/NetBeansProjects/Speler

C:/paul/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/  
active\_record/locking/optimistic.rb:55:in  
`attributes_from_column_definition_without_lock' C:/paul/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ active_record/locking/optimistic.rb:55:in`attributes\_from\_column\_definition’  
C:/paul/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/  
active\_record/base.rb:1922:in `initialize' app/controllers/spelers_controller.rb:31:in`new’  
app/controllers/spelers\_controller.rb:31:in `new’

thanks for your much appreciate help and reaction

Paul

---

<div class="post-metadata">

**Author:** ![extempore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6bbea6/32.png) [@extempore](https://www.ruby-forum.com/u/extempore)\
**Post date:** [January 13, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep/125929/2 "2008-01-13T23:44:55Z")

</div>

Have you named your controller Speler?

On Jan 14, 2008 7:48 AM, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> and rails 2.0.2  
> `attributes\_from\_column\_definition\_without\_lock’
> 
> Paul
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![extempore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6bbea6/32.png) [@extempore](https://www.ruby-forum.com/u/extempore)\
**Post date:** [January 14, 2008, 12:33am UTC](https://www.ruby-forum.com/t/stack-level-too-deep/125929/3 "2008-01-14T00:33:34Z")

</div>

no the nme of the controller is Spelers

---

<div class="post-metadata">

**Author:** ![extempore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6bbea6/32.png) [@extempore](https://www.ruby-forum.com/u/extempore)\
**Post date:** [January 14, 2008, 1:16am UTC](https://www.ruby-forum.com/t/stack-level-too-deep/125929/4 "2008-01-14T01:16:49Z")

</div>

Spelers or SpelersController? It needs to be the latter.

On Jan 14, 2008 10:02 AM, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > > I run ruby 1.8.6  
> > > `attributes\_from\_column\_definition\_without\_lock’  
> > > Paul
> > 
> > –  
> > Ryan B.[http://www.frozenplague.net](http://www.frozenplague.net)  
> > Feel free to add me to MSN and/or GTalk as this email.

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.
