Added Quantities model and controller
commands: rails generate redmine_plugin_model body_tracking quantity rails generate redmine_plugin_controller body_tracking quantities index create destroy
This commit is contained in:
11
app/controllers/quantities_controller.rb
Normal file
11
app/controllers/quantities_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class QuantitiesController < ApplicationController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def destroy
|
||||
end
|
||||
end
|
||||
2
app/helpers/quantities_helper.rb
Normal file
2
app/helpers/quantities_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module QuantitiesHelper
|
||||
end
|
||||
2
app/models/quantity.rb
Normal file
2
app/models/quantity.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class Quantity < ActiveRecord::Base
|
||||
end
|
||||
1
app/views/quantities/create.html.erb
Normal file
1
app/views/quantities/create.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2>QuantitiesController#create</h2>
|
||||
1
app/views/quantities/destroy.html.erb
Normal file
1
app/views/quantities/destroy.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2>QuantitiesController#destroy</h2>
|
||||
1
app/views/quantities/index.html.erb
Normal file
1
app/views/quantities/index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2>QuantitiesController#index</h2>
|
||||
Reference in New Issue
Block a user