title: Rails 3 - request.request_uri in model
body: <p>exist any way to have in my own function in model the <strong>request.request_uri</strong>?</p>
  
  <p>Now I have in model called Func.rb this:</p>
  
  <pre><code>class Func
     def self.url_adr
       request.request_uri
     end
  end
  </code></pre>
  
  <p>But I am getting an error <strong>undefined local variable or method `request' for Func:Class</strong></p>