Rails before action check if admin
<p>I installed devise and I've added to the user table a record or column (I'm not sure how to call it) a admin:boolean and by default it's false</p>

<p>In my routes.rb I have created this /admin link</p>

<pre><code>get 'admin' =&gt; 'admin#index'
</code></pre>

<p>and I'm not sure how to show it only for admin</p>

<pre><code>class AdminController &lt; ApplicationController
  before_action: I have no idea what to write here

  def index
  end

end
</code></pre>