title: Rails: Template is missing when AJAX and .js.rjs files
body: <p>I am trying to execute an AJAX routine with rails
  the code runs normally but the response doesnt.. </p>
  
  <p>I get this error</p>
  
  <p>Template is missing</p>
  
  <pre><code>Missing template line_items/create, application/create with {:locale=&gt;[:en], :formats=&gt;[:js, :html], :handlers=&gt;[:erb, :builder, :coffee]}. Searched in: * "D:/ruby/depot/app/views" 
  </code></pre>
  
  <p>I created the create.js.rjs inside line_items directory like the book Agile Web Development says it is to be, but the error insists..</p>
  
  <pre><code>#file line_items_controller.rb
  
  def create
      @cart = current_cart
      product = Product.find(params[:product_id])
      @line_item = add_product(@cart, product.id)
  
      respond_to do |format|
         if @line_item.save
          format.html { redirect_to store_url }
          format.js 
          format.json { render json: @line_item, status: :created, location: @line_item }
          #...
        end
      end
    end
  </code></pre>
  
  <p>and inside my create.js.rjs I got this</p>
  
  <pre><code>page.replace_html('cart', render(@cart))
  </code></pre>