Created Units controlle
command: rails generate redmine_plugin_controller body_tracking units create destroy
This commit is contained in:
parent
6b1bd9a45e
commit
045943938d
8
app/controllers/units_controller.rb
Normal file
8
app/controllers/units_controller.rb
Normal file
@ -0,0 +1,8 @@
|
||||
class UnitsController < ApplicationController
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def destroy
|
||||
end
|
||||
end
|
2
app/helpers/units_helper.rb
Normal file
2
app/helpers/units_helper.rb
Normal file
@ -0,0 +1,2 @@
|
||||
module UnitsHelper
|
||||
end
|
1
app/views/units/create.html.erb
Normal file
1
app/views/units/create.html.erb
Normal file
@ -0,0 +1 @@
|
||||
<h2>UnitsController#create</h2>
|
1
app/views/units/destroy.html.erb
Normal file
1
app/views/units/destroy.html.erb
Normal file
@ -0,0 +1 @@
|
||||
<h2>UnitsController#destroy</h2>
|
8
test/functional/units_controller_test.rb
Normal file
8
test/functional/units_controller_test.rb
Normal file
@ -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
|
Reference in New Issue
Block a user