following an angular tutorial for Rails 4