diff --git a/Gemfile b/Gemfile index e8df00e..788ee30 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "3.1.4" # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" -gem "rails", "~> 7.0.4", ">= 7.0.4.3" +gem "rails", "~> 7.0.5" # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] gem "sprockets-rails" @@ -24,6 +24,9 @@ gem "turbo-rails" # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] gem "stimulus-rails" +# Use Tailwind CSS [https://github.com/rails/tailwindcss-rails] +gem "tailwindcss-rails" + # Build JSON APIs with ease [https://github.com/rails/jbuilder] gem "jbuilder" @@ -66,6 +69,7 @@ group :development do # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" + gem "rails_live_reload" end group :test do @@ -74,5 +78,3 @@ group :test do gem "selenium-webdriver" gem "webdrivers" end - -gem "tailwindcss-rails", "~> 2.0" diff --git a/Gemfile.lock b/Gemfile.lock index b32e741..4814df6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -89,6 +89,7 @@ GEM irb (>= 1.5.0) reline (>= 0.3.1) erubi (1.12.0) + ffi (1.15.5) globalid (1.1.0) activesupport (>= 5.0) i18n (1.13.0) @@ -102,6 +103,9 @@ GEM jbuilder (2.11.5) actionview (>= 5.0.0) activesupport (>= 5.0.0) + listen (3.8.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) loofah (2.21.3) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -152,8 +156,14 @@ GEM rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) - rails-html-sanitizer (1.5.0) - loofah (~> 2.19, >= 2.19.1) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + rails_live_reload (0.3.4) + listen + nio4r + railties + websocket-driver rails_semantic_logger (4.12.0) rack railties (>= 5.1) @@ -166,6 +176,9 @@ GEM thor (~> 1.0) zeitwerk (~> 2.5) rake (13.0.6) + rb-fsevent (0.11.2) + rb-inotify (0.10.1) + ffi (~> 1.0) regexp_parser (2.8.0) reline (0.3.4) io-console (~> 0.5) @@ -225,13 +238,14 @@ DEPENDENCIES importmap-rails jbuilder puma (~> 5.0) - rails (~> 7.0.4, >= 7.0.4.3) + rails (~> 7.0.5) + rails_live_reload rails_semantic_logger selenium-webdriver sprockets-rails sqlite3 (~> 1.4) stimulus-rails - tailwindcss-rails (~> 2.0) + tailwindcss-rails turbo-rails tzinfo-data web-console diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index 1b66ae9..c1bead4 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -7,4 +7,3 @@ @apply py-2 px-4 bg-blue-200; } } - diff --git a/app/javascript/application.js b/app/javascript/application.js index 7910a2e..0d7b494 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -1,7 +1,3 @@ // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails import "@hotwired/turbo-rails" import "controllers" - -// The two following lines disable Turbo on the whole application -// import { Turbo } from "@hotwired/turbo-rails" -// Turbo.session.drive = false diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index fc13620..5f59981 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -9,11 +9,13 @@ <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> <%= javascript_importmap_tags %> -
+ - <%= yield %> +Find me in app/views/main/index.html.erb
+ ABOUT 3 +Find me in app/views/main/home.html.erb
-Find me in app/views/main/index.html.erb
+Find me in app/views/main/index.html.erb
+