A
A
Alexander2015-09-04 06:55:00
Ruby on Rails
Alexander, 2015-09-04 06:55:00

rails. How to save user settings to a file?

settingslogic - plugin that reads user settings from yml file. How, after setting new values ​​in the app, these settings are saved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2015-09-04
@POS_troi

Form and overwrite yml with a new file.
It doesn't read user settings, it provides a convenient way to implement "static" application settings. (something like this).
PS It's not a plugin, it's a gem :)

R
Roman Mirilaczvili, 2015-09-04
@2ord

For example gem https://github.com/ledermann/rails-settings

Ruby gem to handle settings for ActiveRecord instances by storing them as serialized Hash in a separate database table. Namespaces and defaults included.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question