http://edgeguides.rubyonrails.org/engines.html
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 —>
override default can_edit? methods in ApplicationHelper
def can_edit?
return false if params[:noedit].present?
return true if current_admin
false
end
- git commit -m “update”
- bundle exec rake version:bump:patch