preferences
column to the table. This column will store the preferences in a serialized format.
language
preference to the User
model. The preference will be stored in the newly created preferences
column of the spree_users
table. You can add more preferences to the model in the same way.
user.save
after setting the preference value to save the changes to the database.preferences
helper:
Spree::Calculator
Spree::Gateway
Spree::PageBlock
Spree::PageSection
Spree::Page
Spree::PaymentMethod
Spree::PromotionRule
Spree::Store
Spree::Theme