Sha256: 37c433a70215ac704299d6282ac21aa74e9665a1c247e9f6103d397b978ba630

Contents?: true

Size: 1.05 KB

Versions: 37

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

# Description goes here
#
# exe/rag addons/printspeak

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

add_controller('home', 'index')
add_controller('page', 'benefits', 'faq', 'terms', 'privacy', '--skip-routes')

route("root 'home#index'")
route(<<-'RUBY')
PageController.action_methods.each do |action|
  get "/#{action}", to: "page##{action}", as: "page_#{action}"
end
RUBY

after_bundle do
  customizations 
  setup_db
  rubocop
end

def customizations
  force_copy

  directory "app/assets/images"
  directory "app/assets/stylesheets"

  directory "app/controllers"

  directory "app/views/home"
  directory "app/views/page"

  directory "app/views/layouts"
  template  'app/views/layouts/application.html.erb'        , 'app/views/layouts/application.html.erb'

  template  'db/seeds.rb'                                   , 'db/seeds.rb'
end

def setup_db
  add_scaffold('post', 'title', 'body:text')
  add_scaffold('people', 'first_name', 'last_name', 'age:integer', 'address:text')

  db_migrate
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
rails_app_generator-0.2.40 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.39 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.38 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.37 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.36 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.35 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.34 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.33 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.32 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.31 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.30 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.29 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.28 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.27 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.26 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.25 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.24 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.23 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.22 after_templates/application/printspeak/_.rb
rails_app_generator-0.2.21 after_templates/application/printspeak/_.rb