0
我正在一個博客應用程序,所以我想實施水銀軌道寶石進入它,我試過了,我得到它的工具欄,但我無法編輯我的顯示頁面上的任何內容問題與水銀軌道寶石
即使一切後,我與基礎前端框架
<p><span id="page_content class="mercury-region" data-type="editable">
<%=raw @article.content %></span></p>
<h5><span data-type="editable"><%= @article.title %></span></h5>
使用,這是我的寶石文件
# 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'
gem 'zurb-foundation'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :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 'debugger'
gem 'simple_form'
gem 'friendly_id'
gem 'devise'
gem "rmagick"
gem "carrierwave"
gem "mercury-rails"
但這仍然無法保存 –
你在問爲什麼你不能編輯元素。我的答覆是否回答這個問題如果是這樣,請接受它:)關於使用汞保存,您需要自定義它的保存網址,並確保您正確保存數據。互聯網上有很多來源。尋找「Mercury editor rails saving」或類似的東西。 – Tim