/editables

Easy Editing with Rails

Primary LanguageRubyMIT LicenseMIT

http://edgeguides.rubyonrails.org/engines.html

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 —>

Customization

override default can_edit? methods in ApplicationHelper

def can_edit?
return false if params[:noedit].present?
return true if current_admin
false
end

New Release

  • git commit -m “update”
  • bundle exec rake version:bump:patch