Rails : How to display web page without using scafold?
<p>I have a web application in Rails. When user is log in, user must be able to acccess to a web page where he can see some informations. So i create a link from menu like this : </p>

<pre><code>&lt;li&gt;&lt;a href="/users/ask"&gt;Ask data&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>Here is my routes.rb :</p>

<pre><code>Rails.application.routes.draw do

...  
  as :user do
    get 'users/candidat/sign_up', to: 'user/registrations#new', as: :candidat_registration
    get 'users/recruteur/sign_up', to: 'user/registrations#new', as: :recruteur_registration
  end

  devise_for :users, controllers: { registrations: "user/registrations", sessions: "user/sessions" }

  resources :users, only: [:index, :show, :edit, :update, :destroy] do

    put "recommand", to: "users#recommand"

    get '/users/ask' =&gt; 'users#ask'

  end

  get "/dashboard" =&gt; 'dashboard#index'
  root to: "home#index"

end
</code></pre>

<p>Here is my web page app/views/users/ask.html.erb:</p>

<pre><code>&lt;p&gt;
    Ask Data here
&lt;/p&gt;
</code></pre>

<p>But when i click in the link i cannot access to my web page. </p>

<p><a href="https://i.stack.imgur.com/pvpMn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pvpMn.png" alt="enter image description here"></a></p>

<p>Here are raltives log :</p>

<pre><code>Started GET "/users/ask" for ::1 at 2016-04-13 10:50:49 +0200
Processing by UsersController#show as HTML
  Parameters: {"id"=&gt;"ask"}
  [1m[35mUser Load (0.4ms)[0m  SELECT  `users`.* FROM `users` WHERE `users`.`id` = 0 LIMIT 1
Redirected to http://localhost:3000/
Filter chain halted as :set_user rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
</code></pre>

<p>I don't know really RoR but i think it's about configuration in routes.rb. I always generate page with scalfolding. On this page i don't need CRUD features. What wrong please ? If you could suggest me some resources, blog post to understand the problem i have, thanks.
Am i obliged to pass request in a controller ? User need to be connected to access to my web page.
Is it possible to just configure routes and display ?</p>