diff --git a/app/controllers/employees_controller.rb b/app/controllers/employees_controller.rb index 0fccff1..9f00b4f 100644 --- a/app/controllers/employees_controller.rb +++ b/app/controllers/employees_controller.rb @@ -8,6 +8,7 @@ def index # GET /employees/1 or /employees/1.json def show + sleep 1 end # GET /employees/new diff --git a/app/views/employees/_employee.html.erb b/app/views/employees/_employee.html.erb index 8eb9ef0..0e5718e 100644 --- a/app/views/employees/_employee.html.erb +++ b/app/views/employees/_employee.html.erb @@ -1,4 +1,4 @@ -
First name: <%= employee.first_name %> @@ -28,5 +28,4 @@ Email: <%= employee.email %>
- -- <%= link_to "Show this employee", employee %> -
+ <%= turbo_frame_tag employee, loading: :lazy, src: employee_path(employee) do %> +