title: Getting "uninitialized constant" in Rails app
body: <p>I'm new to Rails and feeling my way, but this has me stumped.
  I moved some constants to a separate module ie:</p>
  
  <pre><code>module Fns
   Fclick = "function() { alert(\"You clicked the map.\");}\n"
   ...
  end
  </code></pre>
  
  <p>then in my controller added:</p>
  
  <pre><code>require "fns"
  class GeomapController &lt; ApplicationController
    def index
        fstring = Fns::Fclick
    ...
    end
  </code></pre>
  
  <p>but when I run the server I get:</p>
  
  <pre><code>uninitialized constant Fns::Fclick
  </code></pre>
  
  <p>what am I missing?</p>