Beast - stack too deep problem

  • Thread starter Simon Krollpfeifer
  • Start date
S

Simon Krollpfeifer

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: <h5><%= 'Voices'[:voices_title] %></h5>
6: <ul class="flat talking">
7: <% @topic.voices.each do | user | %>
8: <li><%= link_to h(user.display_name), user_path(user) %></li>
9: <% end %>
10: </ul>
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.
 
R

Roger Pack

Simon said:
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: <h5><%= 'Voices'[:voices_title] %></h5>
6: <ul class="flat talking">
7: <% @topic.voices.each do | user | %>
8: <li><%= link_to h(user.display_name), user_path(user) %></li>
9: <% end %>
10: </ul>
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top