Ruby on Rails controller based JavaScript

  • Without having inspected the repo too much I ask myself.. (well, not just myself).. how is this different from requiring an external .js in your view except for a different, nice stylistic choice?