add axes, categories and subjects to admin panel
This commit is contained in:
3
app/admin/axes.rb
Normal file
3
app/admin/axes.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
ActiveAdmin.register Axis do
|
||||
permit_params :name
|
||||
end
|
||||
3
app/admin/categories.rb
Normal file
3
app/admin/categories.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
ActiveAdmin.register Category do
|
||||
permit_params :name
|
||||
end
|
||||
3
app/admin/subjects.rb
Normal file
3
app/admin/subjects.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
ActiveAdmin.register Subject do
|
||||
permit_params :name, :category_id, :axis_id
|
||||
end
|
||||
@@ -134,7 +134,7 @@ ActiveAdmin.setup do |config|
|
||||
# config.comments_order = 'created_at ASC'
|
||||
#
|
||||
# You can disable the menu item for the comments index page:
|
||||
# config.comments_menu = false
|
||||
config.comments_menu = false
|
||||
#
|
||||
# You can customize the comment menu:
|
||||
# config.comments_menu = { parent: 'Admin', priority: 1 }
|
||||
|
||||
Reference in New Issue
Block a user