Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using non-existent method name in attributes_table causes infinite loop #3065

Closed
mattvague opened this issue Apr 10, 2014 · 3 comments
Closed

Comments

@mattvague
Copy link
Contributor

Not sure if this is an Arbre thing or an AA thing, but I accidentally did the following:

ActiveAdmin.register PrintOrder do
  #...
  show do |print_order|
    attributes_table do
      #...
      actions do
        link_to "View PDF", print_order.file_url
      end
    end
  end
end

which causes an insane amount of memory to be used (presumably because there is no such thing as an actions block in attributes_table). Don't have time to look into this more right now but will tomorrow.

@mattvague mattvague changed the title Using non-existent block name in attributes_table causes infinite loop Using non-existent method name in attributes_table causes infinite loop Apr 10, 2014
@seanlinsley
Copy link
Contributor

If you're using better_errors combined with Ruby 2, you're likely running into #2434 / activeadmin/arbre#16

@seanlinsley
Copy link
Contributor

Another recent ticket on this general subject: #3046

@timoschilling
Copy link
Member

I can't reproduce this. I get a undefined methodactions' for #ActiveAdmin::Views::Pages::Show:0x007fa1f266e130` exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants