1
0

Added Sources model + controller

commands:
rails generate redmine_plugin_model body_tracking source
project:references name:string description:text
rails generate redmine_plugin_controller body_tracking sources index
create destroy
This commit is contained in:
cryptogopher
2019-09-23 14:45:13 +02:00
parent 2e9d353935
commit 0b549b909a
9 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class SourcesController < ApplicationController
def index
end
def create
end
def destroy
end
end

View File

@@ -0,0 +1,2 @@
module SourcesHelper
end

2
app/models/source.rb Normal file
View File

@@ -0,0 +1,2 @@
class Source < ActiveRecord::Base
end

View File

@@ -0,0 +1 @@
<h2>SourcesController#create</h2>

View File

@@ -0,0 +1 @@
<h2>SourcesController#destroy</h2>

View File

@@ -0,0 +1 @@
<h2>SourcesController#index</h2>