added sections
This commit is contained in:
4
app/controllers/sections_controller.rb
Normal file
4
app/controllers/sections_controller.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class SectionsController < ApplicationController
|
||||
active_scaffold :"section" do |conf|
|
||||
end
|
||||
end
|
||||
2
app/helpers/sections_helper.rb
Normal file
2
app/helpers/sections_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module SectionsHelper
|
||||
end
|
||||
@@ -1,3 +1,4 @@
|
||||
class Category < ActiveRecord::Base
|
||||
has_many :sub_categories
|
||||
belongs_to :section
|
||||
end
|
||||
|
||||
3
app/models/section.rb
Normal file
3
app/models/section.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Section < ActiveRecord::Base
|
||||
has_many :categories
|
||||
end
|
||||
Reference in New Issue
Block a user