Skip to content

Commit 147574a

Browse files
authored
Install reactionview, add config (#439)
2 parents 69bb83f + 8129846 commit 147574a

File tree

7 files changed

+26
-3
lines changed

7 files changed

+26
-3
lines changed

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
ruby 3.4.6
2+
nodejs 24.9.0

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ gem "azure_file_shares"
99
gem "bcrypt", "~> 3.1.7"
1010
gem "bootsnap", require: false
1111
gem "csv"
12+
gem "herb", "~> 0.8.0"
1213
gem "image_processing", "~> 1.14"
1314
gem "importmap-rails"
1415
gem "jbuilder"
@@ -21,6 +22,7 @@ gem "propshaft"
2122
gem "puma", ">= 5.0"
2223
gem "rack-attack"
2324
gem "rails", "~> 8.0.4"
25+
gem "reactionview", "~> 0.1.6"
2426
gem "requestjs-rails"
2527
gem "scout_apm"
2628
gem "scout_apm_logging", "~> 2.1"

Gemfile.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ GEM
212212
rake (>= 13)
213213
googleapis-common-protos-types (1.22.0)
214214
google-protobuf (~> 4.26)
215+
herb (0.8.0)
216+
herb (0.8.0-aarch64-linux-gnu)
217+
herb (0.8.0-aarch64-linux-musl)
218+
herb (0.8.0-arm-linux-gnu)
219+
herb (0.8.0-arm-linux-musl)
220+
herb (0.8.0-x86_64-linux-musl)
215221
hotwire-spark (0.1.13)
216222
listen
217223
rails (>= 7.0.0)
@@ -436,6 +442,9 @@ GEM
436442
erb
437443
psych (>= 4.0.0)
438444
tsort
445+
reactionview (0.1.6)
446+
actionview (>= 7.0)
447+
herb (>= 0.7.5, < 1.0.0)
439448
regexp_parser (2.11.3)
440449
reline (0.6.2)
441450
io-console (~> 0.5)
@@ -605,6 +614,7 @@ DEPENDENCIES
605614
dotenv-rails
606615
factory_bot_rails
607616
faker
617+
herb (~> 0.8.0)
608618
hotwire-spark
609619
image_processing (~> 1.14)
610620
importmap-rails
@@ -621,6 +631,7 @@ DEPENDENCIES
621631
rack-mini-profiler
622632
rails (~> 8.0.4)
623633
rails-controller-testing
634+
reactionview (~> 0.1.6)
624635
requestjs-rails
625636
rspec-rails
626637
rubocop-rails-omakase

app/views/import_reports/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<span class="badge bg-danger"><%= error.error_type %></span>
8383
</td>
8484
<td class="text-bold-500">
85-
<div class="text-truncate"title="<%= error.file_name %>">
85+
<div class="text-truncate" title="<%= error.file_name %>">
8686
<%= error.file_name || "N/A" %>
8787
</div>
8888
</td>

app/views/sessions/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="row h-100 p-4">
44
<div class="col-lg-5 col-12">
55
<div id="auth-left">
6-
<div class="auth-logo">
6+
<div class="auth-logo"></div>
77
</div>
88
<h1 class="auth-title">Log in</h1>
99
<p class="auth-subtitle mb-5">Log in with your data that you entered during registration.</p>

app/views/users/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</td>
6969
</tr>
7070
<% end %>
71-
<tbody>
71+
</tbody>
7272
</table>
7373
</div>
7474
<div class="card-footer d-flex justify-content-end">
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
ReActionView.configure do |config|
4+
# Intercept .html.erb templates and process them with `Herb::Engine` for enhanced features
5+
config.intercept_erb = true
6+
7+
# Enable debug mode in development (adds debug attributes to HTML)
8+
config.debug_mode = Rails.env.development?
9+
end

0 commit comments

Comments
 (0)