Skip to content

Instantly share code, notes, and snippets.

View hansjag04's full-sized avatar

Hans Araya hansjag04

View GitHub Profile
@hansjag04
hansjag04 / AppSettingInRailsWithMongoID
Last active May 31, 2017 11:57
Rails Settings Cached Edit view with Mongoid and mongoid app settings gem
App Settings Edit Form in Rails 5 using Mongoid
* With mongoid-app_settings gem (https://github.com/marten/mongoid-app_settings)
* Inspired on 'rails-settings' gem for ActiveRecord
Made this gist because couldn't find any code/post to update this gem (or hashed arrays) with a view form on Rails.
Based on the ZedTuX answer (Option 2) on this SO question
(https://stackoverflow.com/questions/16690193/how-to-edit-rails-serialized-hashes-in-a-form)
- Hans Araya