# Beast - stack too deep problem

**URL:** <https://www.ruby-forum.com/t/beast-stack-too-deep-problem/142567>\
**Category:** Ruby\
**Created:** [July 9, 2008, 9:30am UTC](https://www.ruby-forum.com/t/beast-stack-too-deep-problem/142567 "2008-07-09T09:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skroll](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@skroll](https://www.ruby-forum.com/u/skroll)\
**Post date:** [July 9, 2008, 9:30am UTC](https://www.ruby-forum.com/t/beast-stack-too-deep-problem/142567/1 "2008-07-09T09:30:00Z")

</div>

rails version: 2.1.0  
ruby version: 1.8.5

Hi

I have the following problem:  
After trying to read a new created topic in beast, my side creates an  
error an the following lines are added in the .log

ActionView::TemplateError (stack level too deep) on line #8 of  
topics/show.html.erb:  
5:

##### \<%= ‘Voices’[:voices\_title] %\>
  
6: 
  
7: \<% @topic.voices.each do | user | %\>  
8: - \<%= link\_to h(user.display\_name), user\_path(user) %\>
  
9: \<% end %\>  
10: 
  
11:

```
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:87:in

```

`method_missing_without_paginate' vendor/plugins/will_paginate/lib/will_paginate/finder.rb:87:in`method\_missing’  
app/views/topics/show.html.erb:8:in  
`_run_erb_47app47views47topics47show46html46erb' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:141:in`call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_view/helpers/capture\_helper.rb:141:in  
`capture_erb_with_buffer' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:44:in`capture’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_view/helpers/capture\_helper.rb:125:in  
`content_for' app/views/topics/show.html.erb:4:in`\_run\_erb\_47app47views47topics47show46html46erb’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_view/base.rb:338:in  
`send' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in`execute’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_view/template\_handlers/compilable.rb:29:in  
`send' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in`render’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_view/template.rb:35:in  
`render' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in`render\_template’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_view/base.rb:245:in  
`render_file' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1108:in`render\_for\_file’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/base.rb:841:in  
`render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/layout.rb:251:in`render\_without\_benchmark’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/benchmarking.rb:51:in  
`render' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in`realtime’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/benchmarking.rb:51:in  
`render' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1157:in`default\_render’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/base.rb:1163:in  
`perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in`call\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/filters.rb:601:in  
`run_before_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:398:in`call’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/filters.rb:398:in  
`call' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:598:in`run\_before\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/filters.rb:578:in  
`call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:601:in`run\_before\_filters’  
app/controllers/application.rb:14:in `set_context' vendor/plugins/active_record_context/lib/technoweenie/active_record_context.rb:67:in`with\_context’  
app/controllers/application.rb:13:in `set\_context’

Help is very much appreciated, thanks up in front.

---

<div class="post-metadata">

**Author:** ![skroll](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@skroll](https://www.ruby-forum.com/u/skroll)\
**Post date:** [July 10, 2008, 1:40am UTC](https://www.ruby-forum.com/t/beast-stack-too-deep-problem/142567/2 "2008-07-10T01:40:45Z")

</div>

Simon Krollpfeifer wrote:

> rails version: 2.1.0  
> ruby version: 1.8.5
> 
> Hi
> 
> I have the following problem:  
> After trying to read a new created topic in beast, my side creates an  
> error an the following lines are added in the .log
> 
> ActionView::TemplateError (stack level too deep) on line #8 of  
> topics/show.html.erb:  
> 5:
> 
> ##### \<%= ‘Voices’[:voices\_title] %\>
>   
> 6: 
>   
> 7: \<% @topic.voices.each do | user | %\>  
> 8: - \<%= link\_to h(user.display\_name), user\_path(user) %\>
>   
> 9: \<% end %\>  
> 10: 
>   
> 11:
> 
> ```
> vendor/plugins/will_paginate/lib/will_paginate/finder.rb:87:in
> 
> ```
> 
> `method\_missing\_without\_paginate’

some thots: split the line up in two, see which one is causing the  
problem, [is it link\_to–is it h?] and also post the exact line of code  
that is causing the problem.

I know I had a problem once when I redefined to\_str  
class Integer  
def to\_str  
to\_s  
end  
end  
‘’ == 3

Which for some odd reason causes stack level too deep.  
-R
