rorchado 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/rails/generators/rorchado/USAGE +16 -0
- data/lib/rails/generators/rorchado/rorchado_generator.rb +259 -0
- data/lib/rails/generators/rorchado/templates/controllers/contact_controller.rb +83 -0
- data/lib/rails/generators/rorchado/templates/controllers/contact_controller.rb~ +83 -0
- data/lib/rails/generators/rorchado/templates/controllers/cv_controller.rb +83 -0
- data/lib/rails/generators/rorchado/templates/controllers/cv_controller.rb~ +83 -0
- data/lib/rails/generators/rorchado/templates/controllers/cvterm_controller.rb +83 -0
- data/lib/rails/generators/rorchado/templates/controllers/cvterm_controller.rb~ +83 -0
- data/lib/rails/generators/rorchado/templates/controllers/stock_controller.rb +83 -0
- data/lib/rails/generators/rorchado/templates/db_schemas/chado_schema.xml +697 -0
- data/lib/rails/generators/rorchado/templates/migrations/generic_migration_create.erb +18 -0
- data/lib/rails/generators/rorchado/templates/models/generic_model.erb +5 -0
- data/lib/rails/generators/rorchado/templates/views/contact/_form.html.erb +29 -0
- data/lib/rails/generators/rorchado/templates/views/contact/edit.html.erb +6 -0
- data/lib/rails/generators/rorchado/templates/views/contact/index.html.erb +27 -0
- data/lib/rails/generators/rorchado/templates/views/contact/new.html.erb +5 -0
- data/lib/rails/generators/rorchado/templates/views/contact/show.html.erb +20 -0
- data/lib/rails/generators/rorchado/templates/views/cv/_form.html.erb +25 -0
- data/lib/rails/generators/rorchado/templates/views/cv/edit.html.erb +6 -0
- data/lib/rails/generators/rorchado/templates/views/cv/index.html.erb +25 -0
- data/lib/rails/generators/rorchado/templates/views/cv/new.html.erb +5 -0
- data/lib/rails/generators/rorchado/templates/views/cv/show.html.erb +15 -0
- data/lib/rails/generators/rorchado/templates/views/cvterm/_form.html.erb +41 -0
- data/lib/rails/generators/rorchado/templates/views/cvterm/edit.html.erb +6 -0
- data/lib/rails/generators/rorchado/templates/views/cvterm/index.html.erb +33 -0
- data/lib/rails/generators/rorchado/templates/views/cvterm/new.html.erb +5 -0
- data/lib/rails/generators/rorchado/templates/views/cvterm/show.html.erb +35 -0
- data/lib/rails/generators/rorchado/templates/views/stock/_form.html.erb +45 -0
- data/lib/rails/generators/rorchado/templates/views/stock/edit.html.erb +6 -0
- data/lib/rails/generators/rorchado/templates/views/stock/index.html.erb +35 -0
- data/lib/rails/generators/rorchado/templates/views/stock/new.html.erb +5 -0
- data/lib/rails/generators/rorchado/templates/views/stock/show.html.erb +40 -0
- metadata +105 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
class CvtermController < ApplicationController
|
|
2
|
+
# GET /cvterms
|
|
3
|
+
# GET /cvterms.json
|
|
4
|
+
def index
|
|
5
|
+
@cvterms = Cvterm.all
|
|
6
|
+
|
|
7
|
+
respond_to do |format|
|
|
8
|
+
format.html # index.html.erb
|
|
9
|
+
format.json { render :json => @cvterms }
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# GET /cvterms/1
|
|
14
|
+
# GET /cvterms/1.json
|
|
15
|
+
def show
|
|
16
|
+
@cvterm = Cvterm.find(params[:id])
|
|
17
|
+
|
|
18
|
+
respond_to do |format|
|
|
19
|
+
format.html # show.html.erb
|
|
20
|
+
format.json { render :json => @cvterm }
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# GET /cvterms/new
|
|
25
|
+
# GET /cvterms/new.json
|
|
26
|
+
def new
|
|
27
|
+
@cvterm = Cvterm.new
|
|
28
|
+
|
|
29
|
+
respond_to do |format|
|
|
30
|
+
format.html # new.html.erb
|
|
31
|
+
format.json { render :json => @cvterm }
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# GET /cvterms/1/edit
|
|
36
|
+
def edit
|
|
37
|
+
@cvterm = Cvterm.find(params[:id])
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# POST /cvterms
|
|
41
|
+
# POST /cvterms.json
|
|
42
|
+
def create
|
|
43
|
+
@cvterm = Cvterm.new(params[:cvterm])
|
|
44
|
+
|
|
45
|
+
respond_to do |format|
|
|
46
|
+
if @cvterm.save
|
|
47
|
+
format.html { redirect_to @cvterm, :notice => 'Cvterm was successfully created.' }
|
|
48
|
+
format.json { render :json => @cvterm, :status => :created, :location => @cvterm }
|
|
49
|
+
else
|
|
50
|
+
format.html { render :action => "new" }
|
|
51
|
+
format.json { render :json => @cvterm.errors, :status => :unprocessable_entity }
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# PUT /cvterms/1
|
|
57
|
+
# PUT /cvterms/1.json
|
|
58
|
+
def update
|
|
59
|
+
@cvterm = Cvterm.find(params[:id])
|
|
60
|
+
|
|
61
|
+
respond_to do |format|
|
|
62
|
+
if @cvterm.update_attributes(params[:cvterm])
|
|
63
|
+
format.html { redirect_to @cvterm, :notice => 'Cvterm was successfully updated.' }
|
|
64
|
+
format.json { head :no_content }
|
|
65
|
+
else
|
|
66
|
+
format.html { render :action => "edit" }
|
|
67
|
+
format.json { render :json => @cvterm.errors, :status => :unprocessable_entity }
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# DELETE /cvterms/1
|
|
73
|
+
# DELETE /cvterms/1.json
|
|
74
|
+
def destroy
|
|
75
|
+
@cvterm = Cvterm.find(params[:id])
|
|
76
|
+
@cvterm.destroy
|
|
77
|
+
|
|
78
|
+
respond_to do |format|
|
|
79
|
+
format.html { redirect_to cvterms_url }
|
|
80
|
+
format.json { head :no_content }
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
class CvtermsController < ApplicationController
|
|
2
|
+
# GET /cvterms
|
|
3
|
+
# GET /cvterms.json
|
|
4
|
+
def index
|
|
5
|
+
@cvterms = Cvterm.all
|
|
6
|
+
|
|
7
|
+
respond_to do |format|
|
|
8
|
+
format.html # index.html.erb
|
|
9
|
+
format.json { render :json => @cvterms }
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# GET /cvterms/1
|
|
14
|
+
# GET /cvterms/1.json
|
|
15
|
+
def show
|
|
16
|
+
@cvterm = Cvterm.find(params[:id])
|
|
17
|
+
|
|
18
|
+
respond_to do |format|
|
|
19
|
+
format.html # show.html.erb
|
|
20
|
+
format.json { render :json => @cvterm }
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# GET /cvterms/new
|
|
25
|
+
# GET /cvterms/new.json
|
|
26
|
+
def new
|
|
27
|
+
@cvterm = Cvterm.new
|
|
28
|
+
|
|
29
|
+
respond_to do |format|
|
|
30
|
+
format.html # new.html.erb
|
|
31
|
+
format.json { render :json => @cvterm }
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# GET /cvterms/1/edit
|
|
36
|
+
def edit
|
|
37
|
+
@cvterm = Cvterm.find(params[:id])
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# POST /cvterms
|
|
41
|
+
# POST /cvterms.json
|
|
42
|
+
def create
|
|
43
|
+
@cvterm = Cvterm.new(params[:cvterm])
|
|
44
|
+
|
|
45
|
+
respond_to do |format|
|
|
46
|
+
if @cvterm.save
|
|
47
|
+
format.html { redirect_to @cvterm, :notice => 'Cvterm was successfully created.' }
|
|
48
|
+
format.json { render :json => @cvterm, :status => :created, :location => @cvterm }
|
|
49
|
+
else
|
|
50
|
+
format.html { render :action => "new" }
|
|
51
|
+
format.json { render :json => @cvterm.errors, :status => :unprocessable_entity }
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# PUT /cvterms/1
|
|
57
|
+
# PUT /cvterms/1.json
|
|
58
|
+
def update
|
|
59
|
+
@cvterm = Cvterm.find(params[:id])
|
|
60
|
+
|
|
61
|
+
respond_to do |format|
|
|
62
|
+
if @cvterm.update_attributes(params[:cvterm])
|
|
63
|
+
format.html { redirect_to @cvterm, :notice => 'Cvterm was successfully updated.' }
|
|
64
|
+
format.json { head :no_content }
|
|
65
|
+
else
|
|
66
|
+
format.html { render :action => "edit" }
|
|
67
|
+
format.json { render :json => @cvterm.errors, :status => :unprocessable_entity }
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# DELETE /cvterms/1
|
|
73
|
+
# DELETE /cvterms/1.json
|
|
74
|
+
def destroy
|
|
75
|
+
@cvterm = Cvterm.find(params[:id])
|
|
76
|
+
@cvterm.destroy
|
|
77
|
+
|
|
78
|
+
respond_to do |format|
|
|
79
|
+
format.html { redirect_to cvterms_url }
|
|
80
|
+
format.json { head :no_content }
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
class StockController < ApplicationController
|
|
2
|
+
# GET /stocks
|
|
3
|
+
# GET /stocks.json
|
|
4
|
+
def index
|
|
5
|
+
@stocks = Stock.all
|
|
6
|
+
|
|
7
|
+
respond_to do |format|
|
|
8
|
+
format.html # index.html.erb
|
|
9
|
+
format.json { render :json => @stocks }
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# GET /stocks/1
|
|
14
|
+
# GET /stocks/1.json
|
|
15
|
+
def show
|
|
16
|
+
@stock = Stock.find(params[:id])
|
|
17
|
+
|
|
18
|
+
respond_to do |format|
|
|
19
|
+
format.html # show.html.erb
|
|
20
|
+
format.json { render :json => @stock }
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# GET /stocks/new
|
|
25
|
+
# GET /stocks/new.json
|
|
26
|
+
def new
|
|
27
|
+
@stock = Stock.new
|
|
28
|
+
|
|
29
|
+
respond_to do |format|
|
|
30
|
+
format.html # new.html.erb
|
|
31
|
+
format.json { render :json => @stock }
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# GET /stocks/1/edit
|
|
36
|
+
def edit
|
|
37
|
+
@stock = Stock.find(params[:id])
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# POST /stocks
|
|
41
|
+
# POST /stocks.json
|
|
42
|
+
def create
|
|
43
|
+
@stock = Stock.new(params[:stock])
|
|
44
|
+
|
|
45
|
+
respond_to do |format|
|
|
46
|
+
if @stock.save
|
|
47
|
+
format.html { redirect_to @stock, :notice => 'Stock was successfully created.' }
|
|
48
|
+
format.json { render :json => @stock, :status => :created, :location => @stock }
|
|
49
|
+
else
|
|
50
|
+
format.html { render :action => "new" }
|
|
51
|
+
format.json { render :json => @stock.errors, :status => :unprocessable_entity }
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# PUT /stocks/1
|
|
57
|
+
# PUT /stocks/1.json
|
|
58
|
+
def update
|
|
59
|
+
@stock = Stock.find(params[:id])
|
|
60
|
+
|
|
61
|
+
respond_to do |format|
|
|
62
|
+
if @stock.update_attributes(params[:stock])
|
|
63
|
+
format.html { redirect_to @stock, :notice => 'Stock was successfully updated.' }
|
|
64
|
+
format.json { head :no_content }
|
|
65
|
+
else
|
|
66
|
+
format.html { render :action => "edit" }
|
|
67
|
+
format.json { render :json => @stock.errors, :status => :unprocessable_entity }
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# DELETE /stocks/1
|
|
73
|
+
# DELETE /stocks/1.json
|
|
74
|
+
def destroy
|
|
75
|
+
@stock = Stock.find(params[:id])
|
|
76
|
+
@stock.destroy
|
|
77
|
+
|
|
78
|
+
respond_to do |format|
|
|
79
|
+
format.html { redirect_to stocks_url }
|
|
80
|
+
format.json { head :no_content }
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|