This app is to reproduce activeadmin/activeadmin#697.
git clone git@github.com:activeadmin/activeadmin_helper_reload_bug.git
bundle install
rake db:migrate
rails server
- go to http://localhost:3000/admin or what ever your host / port is
- you should see
23
as value - edit
app/helpers/application_helper.rb
and change23
to42
- reload the dashboard in the browser and you still see
23
and not the expected42
- go to http://localhost:3000/admin or what ever your host / port is
- you should see
23
as value - edit
app/admin/dashboard.rb
and renamea_static_value
toa_other_static_value
- edit
app/helpers/application_helper.rb
and renamea_static_value
toa_other_static_value
- reload the dashboard in the browser and you get this error:
undefined local variable or method `a_other_static_value' for #<ActiveAdmin::Views::Pages::Page:0x007fab52f82ac8>