This project is archived and is in readonly mode.

#6790 new
scott (at keepflippin)

<action>.js.coffee not being found automatically in views

Reported by scott (at keepflippin) | May 19th, 2011 @ 01:01 PM

The controller:

class HoursController < ApplicationController
  
  respond_to :html
  respond_to :js, :only => [:id]
  
  def index
  end
  
  def id
  end
end

In app/views/hours there's a file called id.js.coffee and the following error is produced:


Template is missing

Missing template hours/id, application/id with {:locale=>[:en, :en], :formats=>[:js, "application/ecmascript", "application/x-ecmascript", "*/*"], :handlers=>[:builder, :erb]}. Searched in: * "hours/app/views"

Normal coffeescript files work fine in app/assets/javascripts. This is using coffee-script 2.2.0.

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages