Added MeasurementsController
command: rails generate redmine_plugin_controller body_tracking measurements index create destroy
This commit is contained in:
parent
f2fa3db7f7
commit
b7b0f7634e
11
app/controllers/measurements_controller.rb
Normal file
11
app/controllers/measurements_controller.rb
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
class MeasurementsController < ApplicationController
|
||||||
|
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
|
||||||
|
def create
|
||||||
|
end
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
end
|
||||||
|
end
|
2
app/helpers/measurements_helper.rb
Normal file
2
app/helpers/measurements_helper.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
module MeasurementsHelper
|
||||||
|
end
|
1
app/views/measurements/create.html.erb
Normal file
1
app/views/measurements/create.html.erb
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h2>MeasurementsController#create</h2>
|
1
app/views/measurements/destroy.html.erb
Normal file
1
app/views/measurements/destroy.html.erb
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h2>MeasurementsController#destroy</h2>
|
1
app/views/measurements/index.html.erb
Normal file
1
app/views/measurements/index.html.erb
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h2>MeasurementsController#index</h2>
|
8
test/functional/measurements_controller_test.rb
Normal file
8
test/functional/measurements_controller_test.rb
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
|
class MeasurementsControllerTest < ActionController::TestCase
|
||||||
|
# Replace this with your real tests.
|
||||||
|
def test_truth
|
||||||
|
assert true
|
||||||
|
end
|
||||||
|
end
|
Reference in New Issue
Block a user