Oh my bad it should be 
``Rails.application.config.try(:assets).try(:compile)``
instead of true. I am not sure that whether the compile does work in rails 3.2 or 3.1. So if you can take a look on that.