Is there any gem / plugin for ruby ββon rails that makes it possible to define custom fields in the model at runtime, without having to change the model itself for every other field .
I am looking for something like a Redmine acts_as_customizable plugin that is packaged like a gem that can be used in rails mode, i.e.
gem 'gemname' rails g something rails db:migrate class Model < ActiveRecord::Base acts_as_something end
Here are the CustomField and CustomValue classes used in Redmin.
Edit:
Since my question is not clear, I am adding a short usage example that explains my need better:
I want users to be able to create their own forms and collect the data presented on these forms. An important decision is to design how these custom dynamic recordings are saved and accessible.
Taken from here , in this article we come up with a problem with different ideas, but everyone has flaws. For this reason, I ask if the problem was touched on in some stone, and there is no need to rethink the whole problem.
Fabio
source share