2012-08-08 18 views
2

我創建了一個新的應用程序jQuery的用Rails 3.1.1總是給人拋出:DOMException

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 

config/routes.rb是:

如果我運行它,然後點擊頁面上的任何地方,我得到的調試錯誤:

enter image description here

這發生在每一個應用程序我運行。

這裏是默認的Gemfile:

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' 
+0

也許你應該嘗試升級到Rails 3.1.7? (如果Rails 3.2.x不在圖片中,那就是) – 2012-08-09 03:42:18

+0

@BenjaminTan在花費了整整一天的時間研究rvm之後,問題仍然存在於Rails 3.1.7 – highBandWidth 2012-08-09 20:35:15

回答

相關問題