title: Rails route not working
body: <p>I created a new route and a corresponding method in a controller and view:</p>
  
  <h2>routes.rb:</h2>
  
  <pre><code>get "pictures/user/:username" =&gt; 'Pictures#user'
  </code></pre>
  
  <h2>pictures_controller.rb:</h2>
  
  <pre><code>def user
    @pictures_user = User.where(username: params[:username]).first
    render 'user.html.erb'
  end
  </code></pre>
  
  <h2>user.html.erb:</h2>
  
  <p>Just some simple html/erb</p>
  
  <p>I get this following error. I know the user method is being entered, seems to be a problem rendering the view?</p>
  
  <pre><code>Routing Error
  
  No route matches {:controller=&gt;"pictures", :action=&gt;"user", :username=&gt;"my_username", :page=&gt;nil}
  </code></pre>
  
  <p>What am I missing?</p>