A simple cms built for the purpose of learning Ruby on Rails. Wanna check it out?
Sign in here with the details superadmin@pho.sx / password
Feel free to make changes.
##Whats Inside?
- Page management & Post Management with spiffy support for markdown editing & live preview.
- Post tags powered with ajaxy goodness
- Basic menu management & easily configurable settings
- Admin management with basic privileges for Superadmins
- All bundled in a slick, bootstrap powered, responsive interface
##What did I learn? Heaps.
Some of the things I feel I really understand about rails after completing this project include:
- Routing, Resorces, Namespacing
- Ajax & Javascript in a rails environment
- Rails' Asset pipeline
- Templating
- HAML
- Validations
- Associations
- Debugging
- Responding, Rendering, Redirecting
- Using external Modules/Classes
- Rails CLI / Server / Console
##What would I do differently now?
- Testing!. Having built this I really appreciate the potential value of writing automated tests to make sure changes & refactoring don't break code
- DRY up my code. There's a bit of repetition that I don't love, particularly between posts & pages, that could be abstracted or put into a parent class and extended.
- Settings & Menus have the same model/controller but different ui. I think I would seperate them if I did it again.
- Use a Gem for pretty page/post slugs.
- There's plenty of things I'd add if this was going to be something I was planning to use commercially. For now though, I've learnt a lot and want to get on to the next projects.
##Gems Used
- haml - HAML syntax for templating
- bootstrap-sass - Bootstrap for easy styling
- pagedown-bootstrap-rails - Pagedown MarkDown editor
- redcarpet - Markdown Renderer
- rails-settings-cached - Settings Management Module
- will_paginate - Pagination Module
- will_paginate-bootstrap - Pagination integration with BootStrap
- devise - Authentication
- exception_handler - Exception handler gem for custom 404/5** error pages
- html2haml - Development - Gem to automatically generate Haml from Html/Erb
- pry-rails - Development - Cleaner console
Probably a few more than this but these were bookmarked...
#####Associations
#####Routes
#####Settings
#####Custom Errors
#####Forms
#####Validations
#####Migrations
#####Asset Pipeline
#####Slug / Url
#####Exceptions
#####Rails Cron