Class: Theme::Generators::TheBigPictureGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/theme/the_big_picture/the_big_picture_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_pageObject



10
11
12
13
14
15
# File 'lib/generators/theme/the_big_picture/the_big_picture_generator.rb', line 10

def create_page
  copy_file 'index.html', 'app/views/visitors/index.html.erb'
  copy_file 'the-big-picture.css', 'app/assets/stylesheets/the-big-picture.css'
  gsub_file 'app/views/layouts/_navigation.html.erb', /navbar-fixed-top/, 'navbar-fixed-bottom'
  gsub_file 'app/views/layouts/application.html.erb', /<html>/, '<html class="full">'
end