Beast - stack too deep problem

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:inmethod_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:incall’
/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:incapture’
/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:inexecute’
/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:inrender’
/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:inrender_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:inrender_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:inrender_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:inrealtime’
/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:indefault_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:incall_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:incall’
/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:inrun_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:inrun_before_filters’
app/controllers/application.rb:14:in set_context' vendor/plugins/active_record_context/lib/technoweenie/active_record_context.rb:67:inwith_context’
app/controllers/application.rb:13:in `set_context’

Help is very much appreciated, thanks up in front.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs