Fix Angular/Rails interaction