# ActionView::TemplateError (stack level too deep)

**URL:** <https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/128892>\
**Category:** Rails\
**Created:** [February 12, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/128892 "2008-02-12T13:19:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratnavel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6f9a4e/32.png) [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Post date:** [February 12, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/128892/1 "2008-02-12T13:19:34Z")

</div>

Hi,

I am getting the following exception while calling a helper method.

ActionView::TemplateError (stack level too deep)

Do anyone have the idea why its happening?

- Ratna

---

<div class="post-metadata">

**Author:** ![ratnavel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6f9a4e/32.png) [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Post date:** [February 12, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/128892/2 "2008-02-12T13:25:00Z")

</div>

On 12 Feb 2008, at 12:19, Ratnavel S. wrote:

> Hi,
> 
> I am getting the following exception while calling a helper method.
> 
> ActionView::TemplateError (stack level too deep)
> 
> Do anyone have the idea why its happening?

Sounds like you’ve hit some some of infinite recursion. Hard to tell  
without seeing any code

---

<div class="post-metadata">

**Author:** ![ratnavel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6f9a4e/32.png) [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Post date:** [February 12, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/128892/3 "2008-02-12T13:45:43Z")

</div>

> Sounds like you’ve hit some some of infinite recursion. Hard to tell  
> without seeing any code

I am getting the options array for a drop down(with text and value). Its  
working well for the first time after restarting the server. Then it is  
showing the error.

---

<div class="post-metadata">

**Author:** ![ratnavel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6f9a4e/32.png) [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Post date:** [February 12, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/128892/4 "2008-02-12T14:25:25Z")

</div>

On 12 Feb 2008, at 12:45, Ratnavel S. wrote:

> > Sounds like you’ve hit some some of infinite recursion. Hard to tell  
> > without seeing any code
> 
> I am getting the options array for a drop down(with text and value).  
> Its  
> working well for the first time after restarting the server. Then it  
> is  
> showing the error.

It’s still going to be hard for someone to help you without seeing  
exactly what you are doing.

---

<div class="post-metadata">

**Author:** ![ratnavel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6f9a4e/32.png) [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Post date:** [February 12, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/128892/5 "2008-02-12T16:08:28Z")

</div>

HI Thanks for yr efforts…

There was a mismatch in the database entry and that file was not  
included using require .

Its working perfect now…
