루어 1.9.3p0, 레일 3.1.2 생산 및 아파치와 함께.레일 3 커피 핸들러가 누락되었습니다
ActionView::MissingTemplate (Missing template video/loadVideo, application/loadVideo with
{:handlers=>[:erb, :builder], :formats=>[:js, "application/ecmascript", "application/x-
ecmascript", :html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml,
:multipart_form, :url_encoded_form, :json], :locale=>[:en, :en]}. Searched in
당신이 볼 수 있듯이, 에 대한 핸들러가 없다 : 나는 원격 기능을 만들려고 할 때, 나에게이 오류가 발생 커피을, 그 이유는 파일 비디오/loadVideo을 처리하지 않는 이유 .js.coffee; rake assets :을 사전 컴파일하지만 아무 것도 변경되지 않습니다.
Gemfile 소스 'http://rubygems.org'
gem 'rails', '3.1.2'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'will_paginate', '~> 3.0'
gem "bcrypt-ruby", :require => "bcrypt"
gem 'mysql'
#Problems in Debian, the error was:
#Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs #for a list of available runtimes. (ExecJS::RuntimeUnavailable)
#Solution: http://stackoverflow.com/questions/6282307/rails-3-1-execjs-and-could-not-find-a-javascript-runtime
gem 'execjs'
gem 'therubyracer'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.5.rc.2'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
group :test do
# Pretty printed test output
gem 'turn', '0.8.2', :require => false
end
내부에 커피 레일 젬이있는 것이 커피 핸들러를 제공한다는 의미는 아닙니다. –
템플릿에는 낙타 케이스를 사용하지 마십시오. Rails 규칙은 밑줄을 사용하는 것입니다. 'loadVideo' 템플릿은'load_video'이어야합니다. –