Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 911 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 911 Bytes

Gem Version

jazzy-to

Jazzy ##Jazzing content into your rails app. Jazzy To is a content manager to add & edit live copy(content) on your rails app. You can use the built in helpers to get the content and edit it in place. This allows you to not need to re deploy each time wording needs to be changed.

Add to your gem file gem 'jazzy_to'

install rails g jazzy_to:install

configure in config/initializers/jazzy_to.rb

JazzyTo.configure do |config|
  config.autotag[:namespace, :controller, :action, :name]
  # I reccomend using at least name
  config.editor_check = "User.find(session[:user_id]).admin?"
  # You can also do config.editor_check = "true" if you dont care about who can edit it
end

migrate rake db:migrate

use <%= jazzy_to(:optional_name) %>