Class: ScaffoldLogic::Generators::LayoutGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/scaffold_logic/layout/layout_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_layoutObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/generators/scaffold_logic/layout/layout_generator.rb', line 10

def create_layout

  # CSS
  copy_file "stylesheets/core.css", "public/stylesheets/core.css"
  copy_file "stylesheets/core_ie.css", "public/stylesheets/core_ie.css"
  copy_file "stylesheets/csshover3.htc", "public/stylesheets/csshover3.htc"
  copy_file "stylesheets/application.css", "public/stylesheets/application.css"
  directory "images/icons/", "public/images/icons/"
  directory "images/layout/", "public/images/layout/"
  directory "images/src/", "misc/images/src/"

  # Helpers
  copy_file "layout_helper.rb", "app/helpers/layout_helper.rb"

  # Views
  copy_file  "layout.html.erb", "app/views/layouts/application.html.erb"
  copy_file "_nav_tabs.html.erb", "app/views/shared/_nav_tabs.html.erb"
end