edgeguides.rubyonrails.org/engines.html
h1. Installation
gem 'editables' rake editables:install:migrations rake db:migrate add this to ApplicationController.rb class ApplicationController < ActionController::Base helper Editables::Engine.helpers end add this to routes routes.rb mount Editables::Engine, at: "/editables" <!-- add this to the top of your layout file right after the body tag yield :body_top -->
h1. Customization
override default can_edit? methods in ApplicationHelper def can_edit? return false if params[:noedit].present? return true if current_admin false end
h1. New Release
-
git commit -m “update”
-
bundle exec rake version:bump:patch