title: Ruby on Rails link middle click
body: <p>I have multiple links in my project for example:</p>
  
  <p>_index.html.erb:</p>
  
  <pre><code>&lt;%= link_to('New Project', new_project_path, :remote =&gt; true) if Project.create_authorized? %&gt;
  </code></pre>
  
  <p>controller: </p>
  
  <pre><code>def new
    @project = Account.root_account.nil? ? Project.new : Account.root_account.projects.new
  end
  </code></pre>
  
  <p>new.js.erb:</p>
  
  <pre><code>$("#right-panel").html("&lt;%= escape_javascript(render(:partial =&gt; 'projects/form', :locals =&gt; {:project =&gt; @project}) ) -%&gt;");
  </code></pre>
  
  <p>My problem is that when I am doing mouse middle click(I mean, I want to open a new tab) on the link then it raises a error as:</p>
  
  <blockquote>
    <p>Template is missing Missing template projects/new, application/new
    with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder,
    :raw, :ruby, :jbuilder, :coffee, :arb]}. Searched in: *
    "/home/raj/workspace/papayaheaderlabs.banana/app/views" *
    "/home/raj/.rvm/gems/ruby-2.0.0-p598@banana/gems/doorkeeper-2.2.1/app/views"
    * "/home/raj/.rvm/gems/ruby-2.0.0-p598@banana/bundler/gems/activeadmin-655e2be7a351/app/views"
    * "/home/raj/.rvm/gems/ruby-2.0.0-p598@banana/gems/kaminari-0.16.3/app/views"</p>
  </blockquote>
  
  <p>Plese help how to solve this issue</p>