Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#6790

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.

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

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.