Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (14 sloc) 0.606 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# Add some demo html pages. These can be deleted at any time.

puts "Creating demo pages ...".magenta

inject_into_file 'config/routes.rb', :after => ".routes.draw do\n" do
  <<-RUBY.gsub(/^ {2}/, '')
root :to => "misc#homepage"

match 'admin/demo' => 'misc#demo'
match 'admin/bootstrap_demo' => 'misc#bootstrap_demo'

RUBY
end

copy_static_file 'app/controllers/misc_controller.rb'
copy_static_file 'app/views/misc/homepage.html.haml'
copy_static_file 'app/views/misc/demo.html.haml'

git :add => '.'
git :commit => "-am 'Generated homepage and sample pages to demonstrate grid.'"
Something went wrong with that request. Please try again.