To configure the admin settings of my app I made a Admin controller and a AdminConfig model.
The Admin controller have several categories (system,files,folders,…) and I wanted to easily separate them in the AdminConfig model by setting a category column in the db. But I really want to do it in a RESTful way and I don't know how to do it with rails.
Rails want to edit each db row separately, but I want to group them.
example: on the files category I have:
extension to look for
exif tags to ignore
subfolder depth
each one is a separate entry in the AdminConfig model like that:
name | value| category
extension | .jpg,.png,.avi | files
exif_tag | nil | files
subfolder_depth | 3 | files
(sorry table not working here)
So I want to show all of them on the page and when I edit them I want to update them all. But I don't know how to do it properly.
I can do it my way obviously or modify the DB so one row == one category but thats not how I want to achieve it because it'll be more difficult to add more settings after.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)