Sha256: 9b8dc048cf256f4e4564a3a78f41f2f7f330197e7e57eef1b1bcffe292267a25

Contents?: true

Size: 841 Bytes

Versions: 13

Compression:

Stored size: 841 Bytes

Contents

# frozen_string_literal: true

# How to Start a Ruby on Rails 7 App With Hotwire and Tailwind CSS
# https://www.youtube.com/watch?v=7G0oWn2Gn5c

require 'pry'

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

add_controller('home', 'index')
route("get 'home/increment', as: :increment")
route("root 'home#index'")

copy_file 'home/controller.rb'     , 'app/controllers/home_controller.rb' , force: true
copy_file 'home/helper.rb'         , 'app/helpers/home_helper.rb'         , force: true
copy_file 'home/index.html'        , 'app/views/home/index.html.erb'      , force: true
copy_file 'home/increment.html.erb', 'app/views/home/increment.html.erb'  , force: true

after_bundle do
  gsub_file 'app/views/layouts/application.html.erb', %(container mx-auto mt-28 px-5 flex), 'container mt-8 mx-auto'
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rails_app_generator-0.2.13 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.12 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.11 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.10 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.9 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.8 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.7 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.6 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.5 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.4 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.3 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.2 after_templates/rag/tailwind_hotwire/_.rb
rails_app_generator-0.2.1 after_templates/rag/tailwind_hotwire/_.rb