ruby - Rails Non tabular settings -
what best practice storing non-tabular settings (configured end-user) application?
i know possible creating model , using it, creating one-row-table in database seems little wasteful me.
convert data yaml, , write configuration file.
require "yaml" file.write(path_to_configuration_file, yaml.dump(obj)) # write obj = yaml.load_file(path_to_configuration_file) # read
Comments
Post a Comment