Sha256: 42dd7eed43205d7a406cbeee3a1c2c78e231848782c4bcbc324beb03cf34149e

Contents?: true

Size: 1.92 KB

Versions: 13

Compression:

Stored size: 1.92 KB

Contents

# frozen_string_literal: true

# <%= data.description %>
#
# exe/rag addons/<%= data.name_snake %>

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

bundle_install

add_controller('home', 'index')

route("root 'home#index'")

force_copy

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

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

after_bundle do
  setup_db
end

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

  # db_migrate
  # db_seed
end

# Other template command examples
# bundle_install
# css_install('tailwind')
# rails_command('db:migrate')
# rails_command('db:migrate')
# bundle_add('hotwire-rails')
# rails_command('hotwire:install')
# run('bin/importmap pin sortablejs')
# run('npm install daisyui')
# rubocop
#
# directory         'app/assets/images'
# create_file       'app/assets/stylesheets/custom-bootstrap-import.scss' , read_template('custom-bootstrap-import.scss')
# append_to_file    'app/assets/config/manifest.js'                       , read_template('manifest.js')
# insert_into_file  'app/views/layouts/application.html.erb', read_template('application.html.erb'),
#     before: %(    <%%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>)
# gsub_file         'app/views/layouts/application.html.erb', %(container mx-auto mt-28 px-5 flex), 'container mx-auto px-5'
# template 'home.css', 'app/assets/stylesheets/home.css'
#
# add_controller('page', 'benefits', 'faq', 'terms', 'privacy', '--skip-routes')
# route(<<-'RUBY')
# PageController.action_methods.each do |action|
#   get "/#{action}", to: "page##{action}", as: "page_#{action}"
# end
# RUBY

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rails_app_generator-0.2.20 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.19 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.18 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.17 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.16 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.15 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.14 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.13 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.12 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.11 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.10 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.9 templates/thor_task/profile/after_template.rb
rails_app_generator-0.2.8 templates/thor_task/profile/after_template.rb