# ActionView::TemplateError (stack level too deep)

**URL:** <https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/139668>\
**Category:** Rails\
**Created:** [June 5, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/139668 "2008-06-05T22:19:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [June 5, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/139668/1 "2008-06-05T22:19:46Z")

</div>

ActionView::TemplateError (stack level too deep) on line #1 of  
storefront/\_producer\_summary.html.erb:  
1:

Producer: \<%= link\_to “tee and cakes”,  
store\_url(store) %\>

I can’t seem to figure out what might be causing this error. From  
googling, it looks like this is an error when the template file is  
compiled and is limited by the system stack. What could I do to  
decrease the stack level? I imagine this is a db design issue, but  
that’s kind of a stab in the dark.

Thanks,  
Nik

---

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [June 5, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/139668/2 "2008-06-05T22:25:07Z")

</div>

> ActionView::TemplateError (stack level too deep) on line #1 of  
> storefront/\_producer\_summary.html.erb:  
> 1:
> 
> Producer: \<%= link\_to “tee and cakes”,  
> store\_url(store) %\>
> 
> I can’t seem to figure out what might be causing this error. From  
> googling, it looks like this is an error when the template file is  
> compiled and is limited by the system stack. What could I do to  
> decrease the stack level? I imagine this is a db design issue, but  
> that’s kind of a stab in the dark.

What’s your partial look like? Any chance your partial is accidently  
including itself?

---

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [June 5, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/139668/3 "2008-06-05T22:34:33Z")

</div>

> What’s your partial look like? Any chance your partial is accidently  
> including itself?

It’s a nested partial, but from what I can tell it doesn’t include  
itself.

[http://pastie.org/209742](http://pastie.org/209742)

includes: [http://pastie.org/209744](http://pastie.org/209744)
