title: Connection between controller and view in rails
body: <p>In <strong>users_controller.rb</strong> I've got my method:</p>
  
  <pre><code>def showallusers
   @users = User.all
  
   respond_to do |format|
    format.html  # showallusers.html.erb
    format.json  { render :json =&gt; @users }
   end
  end
  </code></pre>
  
  <p>and in <strong>app/views/users</strong> I've got <strong>showallusers.html.erb</strong> and in it:</p>
  
  <pre><code>&lt;p&gt;test&lt;/p&gt;
  </code></pre>
  
  <p>but when I type </p>
  
  <pre><code> http://localhost:3000/users/showallusers
  </code></pre>
  
  <p>in browser, it shows me <strong>show.html.erb</strong> instead. </p>
  
  <p>My <strong>routes.rb</strong></p>
  
  <pre><code>  resources :users
  
    resources :projects do
      resources :issues  
    end
  
    #resources :issues
  
    resources :projects
  
    resources :sessions
  
  
    root :to =&gt; "users#index"
  
    match "/auth/:provider/callback" =&gt; "sessions#create"
    match "/signout" =&gt; "sessions#destroy", :as =&gt; :signout
  </code></pre>
  
  <p>Do you know, what is wrong and how can I fix it? thanks</p>