Project

editables

0.0
No commit activity in last 3 years
No release in over 3 years
Easy wysiwyg editing of website content and images
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8.4
~> 3.12
 Project Readme

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