title: How to define a custom path in rails?
body: <p>I have a User model. If I do:</p>
  
  <pre><code>def my_action
    @user = User.new
  end
  </code></pre>
  
  <p>then</p>
  
  <pre><code>  &lt;% form_for(@user) do |f| %&gt;
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>undefined method `users_path' for #&lt;ActionView::Base:0x1b4b878&gt;
  </code></pre>
  
  <p>Which make sense because I haven't mapped it going <code>map.resources :users.</code>.. but I don't want to do it this way because I don't need all the resources.</p>
  
  <p>How can I just define this <code>user_path</code> method in my routes?</p>