title: Rendering an action outside the current view folder
body: <p>I am using Ruby on Rails 3.0.9 and jQuery 1.6.2. I would like to "render an action file" from a folder not in the current view file used\displayed.</p>
  
  <p>In my <code>articles_controller</code> file I have:</p>
  
  <pre><code>respond_to do |format|
    format.html {
      # ...
    }
    format.js {
      render :action =&gt; 'shared/article.js.erb' # Note the 'shared' folder
    }
  end
  </code></pre>
  
  <p>Making an <strong><em>AJAX</strong> HTTP request</em> from the article view (the view is the <code>show.html.erb</code> file and it is located in <code>views/articles</code> folder) I get the following error:</p>
  
  <pre><code>ActionView::MissingTemplate (Missing template articles/article with {:handlers=&gt;[:erb, :rjs, :builder, :rhtml, :rxml], :formats=&gt;[:js, :html], :locale=&gt;[:en, :en]}...
  </code></pre>
  
  <p><strong>How can I solve that?</strong></p>
  
  <p>The log file is the following:</p>
  
  <pre><code>Started GET "/articles/2/article" for 127.0.0.1 at 2011-07-24 13:05:16 +0200
    Processing by ArticlesController#article as JS
  
  ActionView::MissingTemplate (Missing template ActionView::MissingTemplate (Missing template articles/article with {:handlers=&gt;[:erb, :rjs, :builder, :rhtml, :rxml], :formats=&gt;[:js, :html], :locale=&gt;[:en, :en]}...
  </code></pre>