Skip to content

Instantly share code, notes, and snippets.

@vita
Created August 6, 2009 13:26
Show Gist options
  • Save vita/163308 to your computer and use it in GitHub Desktop.
Save vita/163308 to your computer and use it in GitHub Desktop.
# Rails Template for pages_plugin
# GEMS
gem "vita-clearance",
:lib => 'clearance',
:source => 'http://gems.github.com',
:version => '0.6.9.2'
gem "mislav-will_paginate",
:lib => "will_paginate",
:source => "http://gems.github.com"
gem 'thoughtbot-shoulda',
:lib => 'shoulda',
:source => "http://gems.github.com",
:version => '>= 2.9.1'
gem "friendly_id"
# PLUGINS
plugin 'pages_plugin', :git => '[email protected]:xnet/pages_plugin.git'
# RAKES
rake 'gems:install'
rake 'gems:unpack'
rake 'db:create:all'
rake 'pages_plugin:sync_migrations'
generate :clearance
generate :friendly_id
generate :migration, 'add_admin_to_user', 'admin:boolean'
rake 'db:migrate'
rake 'pages_plugin:setup'
#COMMANDS
run "rm public/index.html"
run "rsync -ruv vendor/plugins/eshop_plugin/app/views/layouts app/views"
run "rsync -ruv vendor/plugins/pages_plugin/public ."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment