From 045943938d9537ea79c8146525803059a4ea13ed Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Thu, 8 Aug 2019 21:59:40 +0200 Subject: [PATCH] Created Units controlle command: rails generate redmine_plugin_controller body_tracking units create destroy --- app/controllers/units_controller.rb | 8 ++++++++ app/helpers/units_helper.rb | 2 ++ app/views/units/create.html.erb | 1 + app/views/units/destroy.html.erb | 1 + test/functional/units_controller_test.rb | 8 ++++++++ 5 files changed, 20 insertions(+) create mode 100644 app/controllers/units_controller.rb create mode 100644 app/helpers/units_helper.rb create mode 100644 app/views/units/create.html.erb create mode 100644 app/views/units/destroy.html.erb create mode 100644 test/functional/units_controller_test.rb diff --git a/app/controllers/units_controller.rb b/app/controllers/units_controller.rb new file mode 100644 index 0000000..e15afc8 --- /dev/null +++ b/app/controllers/units_controller.rb @@ -0,0 +1,8 @@ +class UnitsController < ApplicationController + + def create + end + + def destroy + end +end diff --git a/app/helpers/units_helper.rb b/app/helpers/units_helper.rb new file mode 100644 index 0000000..d8b2f3f --- /dev/null +++ b/app/helpers/units_helper.rb @@ -0,0 +1,2 @@ +module UnitsHelper +end diff --git a/app/views/units/create.html.erb b/app/views/units/create.html.erb new file mode 100644 index 0000000..e763536 --- /dev/null +++ b/app/views/units/create.html.erb @@ -0,0 +1 @@ +

UnitsController#create

diff --git a/app/views/units/destroy.html.erb b/app/views/units/destroy.html.erb new file mode 100644 index 0000000..160ce8e --- /dev/null +++ b/app/views/units/destroy.html.erb @@ -0,0 +1 @@ +

UnitsController#destroy

diff --git a/test/functional/units_controller_test.rb b/test/functional/units_controller_test.rb new file mode 100644 index 0000000..39eb572 --- /dev/null +++ b/test/functional/units_controller_test.rb @@ -0,0 +1,8 @@ +require File.expand_path('../../test_helper', __FILE__) + +class UnitsControllerTest < ActionController::TestCase + # Replace this with your real tests. + def test_truth + assert true + end +end