// On the page specific file: // ".js", and you import it after the init.js on your application.js // Replace the with the actual name MY_APP. = { init: function() { // Your shared code for the whole controller goes here }, index: function() { // Your code for the index page goes here }, edit: function() { // Your code for the edit page goes here } }