I am a beginner at rails development and moved from cakephp.
In cakephp there's something you can do in the layout to automatically include any javascript files that are named the same as either the controller or the action.
For instance in www.website.com/post/add
both post.js and post/add.js will automatically be loaded if they exist.
Is there a way to do this in rails? I tried doing a google but didn't know what to search for and didn't turn up much.
(Same thing with css)