title: How do i get request.uri in model in Rails?
body: <pre><code>$request = request
  </code></pre>
  
  <p>When I write this in controller, it will work. But if i need this variable in Model or Application controller, How can i ?</p>