Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6684935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:59:51+00:00 2026-05-26T04:59:51+00:00

I have a create action that handles an AJAX request. On my development machine,

  • 0

I have a create action that handles an AJAX request. On my development machine, a template named create.js.coffee is successfully processed to generate a javascript response. However, when I deploy to Heroku, the application complains that it can’t find the template.

ActionView::MissingTemplate (Missing template /expenses/create with {:handlers=>[:erb, :builder], :formats=>[:js, :html], :locale=>[:en, :en]}. Searched in:
* "/app/app/views"
* "/app"
* "/"
):

It’s clear that the coffee handler is not there to preprocess *.js.coffee template.

Can any one suggest how I can configure Heroku to recognize and process these templates?

Note: Heroku is successfully preprocessing my CoffeeScript files that are present in the asset pipeline.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:59:52+00:00Added an answer on May 26, 2026 at 4:59 am

    I’m a bit late to the party, but here is my solution, as posted on Github.


    I just ran into a problem where my create.js.coffee file was working in development but stopped working in production (on Heroku). The logs show that Rails isn’t even looking for a coffee handler:

    2011-10-14T08:26:29+00:00 app[web.1]: ActionView::MissingTemplate (Missing template page_blocks/create, application/create with {:handlers=>[:erb, :builder, :haml], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=>[:nl, :nl]}. Searched in:
    2011-10-14T08:26:29+00:00 app[web.1]:   * "/app/app/views"
    2011-10-14T08:26:29+00:00 app[web.1]: ):
    

    This is the (important) part of my Gemfile:

    group :assets do
      gem "sass-rails", "~> 3.1.0"
      gem "coffee-rails", "~> 3.1.0"
      gem "uglifier"
      gem "compass", "~> 0.12.alpha"
    end
    
    # asset templates
    gem "jquery-rails"
    gem "haml"
    

    Only after I moved coffee-rails outside of the :assets group, things started working. Perhaps it would be a good idea to somehow make this clear in the readme, and perhaps even ship Rails with the coffee-rails plugin being placed outside the assets group.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a create action for a form that potentially generates errors (i.e. first
If i have a controller action Create that returns a view with the following
I have a View that handles the Edit action for editing a weekly update
I have a create action in one of my controllers which responds to ajax
I have an Action method in an ASP.NET MVC Controller class that handles form
I have a controller action in ASP.NET MVC that handles uploaded files. However, it
I have a custom installer action that updates the PATH environment, and creates an
I have a list of actions on various controllers that are 'Admin' functions (create,
I have managed to create a custom action in C# using MakeSfxCA which is
I have an SQL table written in MSSQL: create table [action] ( action_id bigint

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.