common angular js rails pitfalls