Sha256: 0bb17408ca39135afe69a85bdcf61adc3d8f00d51d112e74fd191c550b83abe5

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

# frozen_string_literal: true

# Makes http fun! Also, makes consuming restful web services dead easy.
#
# exe/rag addons/httparty

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

add_controller('home', 'index', 'questions', 'users')
route("root 'home#index'")
# route("get 'home/stack_overflow'")

force_copy

copy_file 'app/controllers/home_controller.rb'            , 'app/controllers/home_controller.rb'
copy_file 'app/views/home/index.html.erb'                 , 'app/views/home/index.html.erb'
copy_file 'app/views/home/questions.html.erb'             , 'app/views/home/questions.html.erb'
copy_file 'app/views/home/users.html.erb'                 , 'app/views/home/users.html.erb'

copy_file 'app/views/layouts/_alerts.html.erb'            , 'app/views/layouts/_alerts.html.erb'
copy_file 'app/views/layouts/_navbar.html.erb'            , 'app/views/layouts/_navbar.html.erb'
copy_file 'app/views/layouts/_footer.html.erb'            , 'app/views/layouts/_footer.html.erb'
template  'app/views/layouts/application.html.erb'        , 'app/views/layouts/application.html.erb'

# Other template command examples
# css_install('tailwind')
# rails_command('db:migrate')
# bundle_add('hotwire-rails')
# rails_command('hotwire:install')
# run('bin/importmap pin sortablejs')
# run('npm install daisyui')
# 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'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_app_generator-0.2.17 after_templates/addons/httparty/_.rb
rails_app_generator-0.2.16 after_templates/addons/httparty/_.rb
rails_app_generator-0.2.15 after_templates/addons/httparty/_.rb
rails_app_generator-0.2.14 after_templates/addons/httparty/_.rb