Javascript Rails 3.1.1中的jquery总是给出DomeException
我创建了一个新的应用程序Javascript Rails 3.1.1中的jquery总是给出DomeException,javascript,jquery,ruby-on-rails,ruby-on-rails-3,debugging,Javascript,Jquery,Ruby On Rails,Ruby On Rails 3,Debugging,我创建了一个新的应用程序 rails new toy cd toy bundle install rails generate controller start rm public/index.html app/views/start/index.html.erb包含: Hi app/controllers/start_controller.rb包含: class StartController < ApplicationController def index end end
rails new toy
cd toy
bundle install
rails generate controller start
rm public/index.html
app/views/start/index.html.erb包含:
Hi
app/controllers/start_controller.rb包含:
class StartController < ApplicationController
def index
end
end
如果运行它并单击页面上的任意位置,则调试器中会出现错误:
我运行的每个应用程序都会出现这种情况
以下是默认文件:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platform => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
我能够复制这个。在中修复了它。我能够复制它。已修复。也许您应该尝试升级到Rails 3.1.7?如果Rails 3.2.x不存在,那么is@BenjaminTan,在花了一整天的时间处理rvm之后,问题仍然存在于Rails 3.1.7中,您是否应该尝试升级到Rails 3.1.7?如果Rails 3.2.x不存在,那么is@BenjaminTan,在花了一整天的时间处理rvm之后,问题仍然存在于Rails 3.1.7中
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platform => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'