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:
11
app/controllers/sources_controller.rb
Normal file
11
app/controllers/sources_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class SourcesController < ApplicationController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def destroy
|
||||
end
|
||||
end
|
||||
2
app/helpers/sources_helper.rb
Normal file
2
app/helpers/sources_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module SourcesHelper
|
||||
end
|
||||
2
app/models/source.rb
Normal file
2
app/models/source.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class Source < ActiveRecord::Base
|
||||
end
|
||||
1
app/views/sources/create.html.erb
Normal file
1
app/views/sources/create.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2>SourcesController#create</h2>
|
||||
1
app/views/sources/destroy.html.erb
Normal file
1
app/views/sources/destroy.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2>SourcesController#destroy</h2>
|
||||
1
app/views/sources/index.html.erb
Normal file
1
app/views/sources/index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2>SourcesController#index</h2>
|
||||
Reference in New Issue
Block a user