Saigon Ruby Meet Up
Introduction
• Name: Wayne
• Company: Futureworkz Pte Ltd
• From: Singapore
• Position: Coder
• Programming Language: Ruby on Rails
Question
How do you deal with statics content in any project?
• Hard code and route to the statics pages.
• using high_voltage gem by Thoughtbot.
Question
What happen when client suddenly want to be able to
change the content any time?
• Additional time is use to create a database, to
store the content and to replace almost
everything in the html file.
• Is there a faster way to get thing done?
Presenting
Changeful
What is Changeful?
• Change is a gem that helps to convert your views
to be stored in database.
• Thereafter, admin is able to access it via its back-
end
Changeful requirement
• Rails
• Active Record
Changeful support
Currently Changeful only support the following
backend gem.
• ActiveAdmin
• Rails_admin
How to use?
changeful_content :key default: ‘value’ :type
changeful_content :key :type do {
code here
}
cc :key default: ‘value’
cc :key :type do {
code here
}
Demo
Any Question?
Feel free
• To Fork it and play with it
• Pull request are welcome to enhance and improve
Changeful.
• You can find changeful gem at https://github.com/
futureworkz/changeful
• Visit us at http://futureworkz.com
The End

Saigon Ruby Meetup 06/10/2015 - Changeful Gem