PagesCms
Pages CMS uses nested forms and draggable items to allow the user to build a site within the predefined layout from a designer. It incorporates an image management system as well as a page management system. It's like a wordpress page builder on rails.
Advantages
- Get hacking right away with out of the box support for bootstrap.
- Easily drag page layouts into the position you want them.
- Built in blog.
- Limited dependencies.
- Easily customized.
- Lightweight and easy to understand: Built with simple rails techniques everyone can understand.
Installation
- Add:
gem 'pages_cms'
to yourGemfile
- Run:
$ rails generate pages_cms:install
- Add:
//= require cocoon
to yourapplication.js
file
This has built everything that PagesCMS needs to work, but to get hacking with some default styling and layout included, follow the next steps:
- Run:
rails generate pages_cms:views
- Add:
gem "bootstrap-sass"
to yourGemfile
- Add:
//= require bootstrap
to yourapplication.js
- Add:
*= require pages_cms/pages_cms
to yourapplication.css
- Run:
$ bundle install
You should now be able to go to
/admin/pages
and start building pages!
The generator has added three methods to your App:
Method | Usage |
---|---|
logged_in_admin |
Authorizes controllers in the PagesCms engine |
current_user_is_admin? |
Verifies that the current user is an admin in the views |
slugged_path |
Creates a slug of the path for user generated pages |
Make sure to fill these methods out to secure your application.
Contributing
More than welcome!
- Fork
- Make Topic Branch
- Submit Pull Request
Decorators and Customization
Coming soon.