I have a Rails 3 application that requires certain user preferences. I would like to use this plugin https://github.com/ledermann/rails-settings . I work in rails console. But it's hard for me to work in shape. Should fields_for and attr_accessible be used? If so, Iβm out of luck.
I need to add settings for two models:
For example, user-specific settings,
user = User.find(123) user.settings.color = :red user.settings.color # => :red user.settings.all # => { "color" => :red }
(This works fine for me in the console.)
but I need to administer them through a standard web form. I would like to know how others deal with this.
Thanks.
Beau
source share