Rails empty methods in controllers
<p>I would like to ask if i should keep the empty methods in my controller (Its a question about code style):</p>

<pre><code>before_action :set_project, only: [:show,:new]

  def show
  end

  def new
  end
</code></pre>

<p>Should i keep it like this or simpy remove show and new action</p>

<pre><code>class ProjectController &lt; ApplicationController
before_action :set_project

def index
#indexaction
end

def create
#createaction
end
</code></pre>

<p>is it more Railish way? Rails Styleguide doesnt indicate any sollution to it, only that:</p>

<pre><code>def show
end
</code></pre>

<p>is better than</p>

<pre><code>def show; end
</code></pre>