我不能为我的生活弄清楚为什么这不起作用!
我正在通过有关水银的railscast,我无法显示可编辑区域.
的Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.13'
gem 'mercury-rails', git: 'https://github.com/jejacks0n/mercury.git'
gem 'sqlite3'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
Run Code Online (Sandbox Code Playgroud)
路线
MercuryRelational::Application.routes.draw do
mount Mercury::Engine => '/'
root to: "pages#show"
Run Code Online (Sandbox Code Playgroud)
显示页面
<h1>Show Page</h1>
<div id="page_content" class="mercury-region" data-type="editable"><%= raw(@page.content) %></div>
Run Code Online (Sandbox Code Playgroud)
显示页面的网址是
http://localhost:4002/editor
文本周围仍然没有可编辑的蓝框.
然而!虽然"未捕获的TypeError:无法读取未定义的属性'konqueror',但我在javascript终端中收到错误"
请帮忙!