I’m new to Rails and i am interesting in methods for developing dynamic
forms. I’ll try to explain what i wanted to say. I’m making a
web-application for Human Resource Management and there must be
opportunity for users to visually create forms: user selects the type of
input, variants, validation options will be also awesome. And after that
CRUD interface with search options must be created. So it’s a
model-editor like stuff.
Now I’m reading about meta-programming and checking
http://activeform.rubyforge.org/ as a compontent for creating interface.
What I’m thinking about:
- Create form -> Create Rails Model + yml-file for storing form
- Edit form -> Add Migrations(add/delete columns) + edit Model
file(add/delete validations) + edit yml-file.
- Generate Interface -> Something like scaffold generator.
Is it ok to let application creating/editing model/migrations?