Skip to content

Instantly share code, notes, and snippets.

View parndt's full-sized avatar

Philip Arndt parndt

View GitHub Profile
@parndt
parndt / gist:709496
Created November 22, 2010 03:58
Upgrading from Refinery CMS 0.9.8.5 to git master (0.9.9.pre)
## MAKE SURE YOU BACKUP FIRST - THIS PROCESS WILL WIPE YOUR DEVELOPMENT DATABASE
## e.g. using git source control and database sql export.
## This is not for people who don't want to have to do some manual work
## getting everything working.
## This also is not officially "supported" but we will hopefully
## be able to write an upgrade task later on based on feedback.
## Notable files that get overriden:
# CSS: (put yours back afterwards but remove any @import for refinery css)
@parndt
parndt / gist:738607
Created December 13, 2010 03:14
Sample Gemfile for by_inclusion application.
source 'http://rubygems.org'
gem 'rails', '3.0.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'mysql'
gem 'mysql2'
@parndt
parndt / gist:738609
Created December 13, 2010 03:16
Remove from your config/routes.rb if you're updating to by_inclusion.
# REFINERY CMS ================================================================
filter(:refinery_locales) if defined?(RoutingFilter::RefineryLocales) # optionally use i18n.
root :to => 'pages#home'
scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
root :to => 'dashboard#index'
end
@parndt
parndt / gist:784143
Created January 18, 2011 08:40
Non translated keys in every language we have in the core
$ rake translate:lost_in_translation_all
Searching for missing translations for the locale: en
No missing translations for locale: en
--
Searching for missing translations for the locale: fr
No missing translations for locale: fr
--
Searching for missing translations for the locale: nl
No missing translations for locale: nl
@parndt
parndt / gist:794515
Created January 25, 2011 04:30
Currently Required Translations for RefineryCMS http://refinerycms.com
We need these in Polish:
- You need to reset your password because there were changes in the password encryption methods that Refinery uses so that passwords are stored with even stronger encryption than before.
- Request to reset password received for Jack
- Visit this URL to choose a new password
- Your password will remain the same if no action is taken
@parndt
parndt / getting_started_with_refinery.textile
Created February 8, 2011 03:24
Getting Started With Refinery

Getting Started with Refinery

This guide covers getting up and running with Refinery CMS. After reading it, you should be familiar with:

  • Installing and creating a new Refinery site
  • Changing the front end design of a Refinery site
  • Extending Refinery’s functionality with custom engines

endprologue.

@parndt
parndt / gist:830493
Created February 16, 2011 23:05
What a Gemfile should look like for RefineryCMS 0.9.9.1 apps
source 'http://rubygems.org'
gem 'rails', '~> 3.0.4'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Use unicorn as the web server
# In your Gemfile :
gem 'exception_notification', :git => 'git://github.com/rails/exception_notification.git', :require => 'exception_notifier'
# In config/application.rb :
config.middleware.use ExceptionNotifier,
:email_prefix => "[Your Website Name] ",
:sender_address => %{"Exception Notifier" <[email protected]>},
:exception_recipients => %w{[email protected]}
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
@parndt
parndt / gist:869972
Created March 14, 2011 22:03
RefineryCMS menu rendering in development mode (note globalize3 accessing attributes before eager load happens) (note the 49 SHOW TABLES commands)
Page Load (1.5ms) SELECT `pages`.* FROM `pages` WHERE `pages`.`show_in_menu` = 1 AND `pages`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49) AND `pages`.`draft` = 0 ORDER BY lft ASC
Page::Translation Load (0.3ms) SELECT `page_translations`.* FROM `page_translations` WHERE (`page_translations`.page_id = 1)
Page::Translation Load (0.2ms) SELECT `page_translations`.* FROM `page_translations` WHERE (`page_translations`.page_id = 3)
Page::Translation Load (0.2ms) SELECT `page_translations`.* FROM `page_translations` WHERE (`page_translations`.page_id = 4)
CACHE (0.0ms) SELECT `page_translations`.* FROM `page_translations` WHERE (`page_translations`.page_id = 5)
Page::Translation Load (0.3ms) SELECT `page_translations`.* FROM `page_translations` WHERE (`page_translations`.page_id = 6)
Page::Translation Load (0.2ms) SELECT `page_translations`.* FROM `p