From de9f55e074e0b61f2e68bf9de6b0899c8bac728e Mon Sep 17 00:00:00 2001 From: wonda-tea-coffee Date: Wed, 20 Sep 2023 15:50:04 +0900 Subject: [PATCH] hai --- app/controllers/foo/bars_controller.rb | 5 +++++ app/views/foo/bars/show.html.erb | 1 + 2 files changed, 6 insertions(+) create mode 100644 app/controllers/foo/bars_controller.rb create mode 100644 app/views/foo/bars/show.html.erb diff --git a/app/controllers/foo/bars_controller.rb b/app/controllers/foo/bars_controller.rb new file mode 100644 index 0000000..465d1d4 --- /dev/null +++ b/app/controllers/foo/bars_controller.rb @@ -0,0 +1,5 @@ +class BarsController < ApplicationController + def show + @instance_text = params[:bar] + end +end diff --git a/app/views/foo/bars/show.html.erb b/app/views/foo/bars/show.html.erb new file mode 100644 index 0000000..a981904 --- /dev/null +++ b/app/views/foo/bars/show.html.erb @@ -0,0 +1 @@ +<%== @instance_text %> \ No newline at end of file