Keep common js functions in a file to be used throughout application
<p>I have Rails app using Asset Pipeline. There are many js files associated with different parts of the app. To keep it DRY I want to start pulling some of the repetitive code into a file and use those methods throughout the app. What I am attempting right now isn't working.</p>

<p>common.js.coffee</p>

<pre><code>common =
  some_commonly_used_method: -&gt;
    // code
</code></pre>

<p>Some_other_page_speciific_file.js.coffee</p>

<pre><code>common.some_commonly_used_method()
</code></pre>

<p>browser console when I load the page</p>

<blockquote>
  <p>Uncaught ReferenceError: common is not defined</p>
</blockquote>

<p>What do I need to do to have common.whatever available throughout the app?</p>