https://github.com/railsjazz/lazy_value Load values on your pages using Ajax. Literally with one line of code: <%= lazy_value_tag { User.active.count } %>