title: How can I make @current_user available in form.html.eex?
body: <p>I'd like to add logic into <strong>web/templates/user/form.html.eex</strong> which gets rendered in <code>user#new</code> and <code>user#edit</code> depending on <code>@current_user</code>. But if I do the following code I get an <code>assign @current_user not available in eex template</code> error.</p>
  
  <pre><code>&lt;%= if @current_user do %&gt;
    &lt;h1&gt;Example&lt;/h1&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>How can I make <code>@current_user</code> available in the <code>form.html.eex</code>?</p>