diff --git a/Gemfile.lock b/Gemfile.lock index ef79b10..00c474d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -125,7 +125,7 @@ GEM factory_bot (~> 6.4) railties (>= 5.0.0) foreman (0.88.1) - fugit (1.9.0) + fugit (1.10.1) et-orbi (~> 1, >= 1.2.7) raabro (~> 1.4) globalid (1.2.1) @@ -201,7 +201,7 @@ GEM puma (6.4.2) nio4r (~> 2.0) raabro (1.4.0) - racc (1.7.3) + racc (1.8.0) rack (3.0.11) rack-proxy (0.7.7) rack @@ -283,11 +283,11 @@ GEM rubocop-rails ruby-progressbar (1.13.0) smart_properties (1.17.0) - solid_queue (0.3.0) + solid_queue (0.3.1) activejob (>= 7.1) activerecord (>= 7.1) concurrent-ruby (~> 1.2.2) - fugit (~> 1.9.0) + fugit (~> 1.10.1) railties (>= 7.1) stimulus-rails (1.3.3) railties (>= 6.0.0) diff --git a/app/views/components/basic_component.rb b/app/views/components/basic_component.rb new file mode 100644 index 0000000..5b0d793 --- /dev/null +++ b/app/views/components/basic_component.rb @@ -0,0 +1,9 @@ +class BasicComponent < ApplicationComponent + def initialize(version:) + @version = version + end + + def view_template(&) + p(class: "text-lg text-gray-600") { "Hello from Phlex #{@version} 💪🏼" } + end +end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 54274a6..22779cb 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -5,10 +5,11 @@ <%= vite_image_tag("images/logo-sm.png", class: "h-12 w-12 rounded-full") %>
An opinionated and modern Ruby on Rails template with pragmatic defaults to start your next project 🚀
+A modern Ruby on Rails template with production ready recommended defaults to start your next project 🚀
Stimulus says, Stimulus not loaded 😥
+ <%= render BasicComponent.new(version: Gem.loaded_specs["phlex"].version.to_s) %> diff --git a/bin/dev b/bin/dev index 7569235..d45fe8d 100755 --- a/bin/dev +++ b/bin/dev @@ -5,8 +5,4 @@ PORT="${PORT:-3000}" export PORT -if command -v overmind &> /dev/null; then - overmind start -f Procfile.dev "$@" -else - foreman start -f Procfile.dev "$@" -fi +foreman start -f Procfile.dev "$@"