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

Helper reloading Problem #3452

Closed
timoschilling opened this issue Sep 24, 2014 · 1 comment
Closed

Helper reloading Problem #3452

timoschilling opened this issue Sep 24, 2014 · 1 comment

Comments

@timoschilling
Copy link
Member

Senario:

ActiveAdmin.register User do
  index do
    column :name do |user|
      double user.name
    end
  end
end

module ApplicationHelper
  def double string
    string * 2
  end
end

If I add the name column after the server ist started, I got this error:

undefined method `double' for                   <div class="index_as_table"></div>
:ActiveAdmin::Views::IndexAsTable

If I restart the server, it works.

If I now change the method (like string * 3), AA shows the result of the old implementation until I restart the Server.

@seanlinsley
Copy link
Contributor

This is a duplicate of #697

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

2 participants