The solution to assets management in Rails