Skip to content

FreekingDean/jazzy_to

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) %>

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published