module Generapp::Actions::Views

App views configuration associated actions

Public Instance Methods

create_application_layout() click to toggle source
# File lib/generapp/actions/views.rb, line 26
def create_application_layout
  template 'views/generapp_layout.html.erb.erb',
           'app/views/layouts/application.html.erb',
           force: true
end
create_humans_txt() click to toggle source
# File lib/generapp/actions/views.rb, line 32
def create_humans_txt
  copy_file 'public/humans.txt',
            'public/humans.txt'
end
create_manifest() click to toggle source
# File lib/generapp/actions/views.rb, line 37
def create_manifest
  template 'public/manifest.json.erb',
           'public/manifest.json'
end
create_shared_directory() click to toggle source
# File lib/generapp/actions/views.rb, line 7
def create_shared_directory
  empty_directory_with_keep_file 'app/views/shared'
end
create_shared_flashes() click to toggle source
# File lib/generapp/actions/views.rb, line 11
def create_shared_flashes
  copy_file 'views/_flashes.html.erb',
            'app/views/shared/_flashes.html.erb'
end
create_shared_head() click to toggle source
# File lib/generapp/actions/views.rb, line 21
def create_shared_head
  template 'views/_head.html.erb.erb',
           'app/views/shared/_head.html.erb'
end
create_shared_javascripts() click to toggle source
# File lib/generapp/actions/views.rb, line 16
def create_shared_javascripts
  copy_file 'views/_javascript.html.erb',
            'app/views/shared/_javascript.html.erb'
end