spectra-music / spectra

A web-based personal music library manager
13 stars 1 forks source link

Persistent preferences #5

Closed toroidal-code closed 10 years ago

toroidal-code commented 10 years ago

I don't really know how to do preferences in a Rails application. But we're going to need some things, such as preferred file type, saving metadata edits to disk, etc.

Maybe @kristenmills has an idea?

toroidal-code commented 10 years ago

Maybe something like rails-settings-cached would work?

kristenmills commented 10 years ago

Are the preferences often changing or not. Because if they don't change often, they should go on an initializer.

nickserv commented 10 years ago

If the preferences should be easily changeable at runtime by users, we should use something like Active Admin. Otherwise, we should use an initializer as @kristenmills recommends.

toroidal-code commented 10 years ago

These would be runtime preferences.

toroidal-code commented 10 years ago

ActiveAdmin looks too pre-baked. I was leaning more towards something that we could build a JSON API around, similar to how the rest of the application functions. It looks like rails-settings-cached would let us do this.