I would also like to know where to best keep the needed
You can also use:
If you only need some functions for one view, put the following into the view's erb file:
�� <% content_for(:head) do -%>������������������������������
�� <% end -%>������������������������������������������������������������������
you can also create any file you like, and simply replace 'application' with the name of your new file sans ".js"