system for Ruby on Rails, similar to WordPress, Drupal and Joomla • Founded in 2004 • Version 1.0 released in 2011 • Built on Rails 3 • Created by Philip Arndt • Open Source and Free
• Always updates with latest versions of Rails • Super simple set up and modifica+on with extensive documenta+on • Easy for non-‐technical users with a well designed interface • Mul+lingual (over 21 languages) • Large and ac+ve community • Rails Way – Refinery uses standard Rails conven+ons that you’ll find in most other apps • Can be added to a previous app
• Gem install refinerycms • `Refinerycms [app_name]` • Use the –d switch to set your apps database (or change it in database.yml • CD into the directory and start up the rails server (`rails s`) • Access your site and begin set up at localhost: 3000 • Customize basic features of your site in config/ in(alizers/refinery/core.rb
originally owned by Refinery • You can override the views with a `rake refinery:override` • Put config.new_page_parts = true into config/ini+alizers/ refinery/pages.rb to add addi+onal page parts • Add content areas with <%=raw @page.content_for(: [area_name]) %> • Structure page with regular HTML/CSS • Edit content in Refinery admin dashboard • Make CSS changes in app/assets/stylesheets/ applica(on.css • Your homepage will have a Home.css file available
default extensions • Authen(ca(on – Use Refinery to create users and manage sessions • Core – The core Refinery library includes: JS, CSS, Layouts, Views and hooks to connect with Rails • Dashboard – The main dashboard of your site • Images – Handles image upload and processing using Dragonfly • Pages – Allows authorized users to control and manipulate pages • Resources – Handles file upload and storage • You can find user created engines on refinerycms.com
Engines are like mini Rails apps • Use others or make your own • Generate an Engine with `rails g refinery:engine` • Engines can be found in vendor/extensions • You can run tests on your Engine • Engines have access to the Asset Pipeline (Images, JavaScript, CSS) • Use Crudify to modify searching and sor+ng with your Engine
apps (engines) for extra func+onality to let the user modify the top level /app directory. • Refinery is a big gem and may take a while to install • May have trouble installing/using with Windows machines • The install does a lot for you so it may fail on some parts. READ YOUR LOGS! • Many of Refinery’s features can be edited in /config/ in(alizers/refinery • You can change the order of Dashboard tabs using the Reorder Menu (two green arrows)
and #reddit-‐ webdesign on Freenode • Tutorial Guides-‐ hEp://refinerycms.com/guides • Google Group – hEp://group.refinerycms.org • API – hEp://api.refinerycms.org • GitHub Wiki -‐ hEps://github.com/refinery/refinerycms/wiki • RailsCasts – Episode 332