-3

How creating the possibility for user editing the fields of the model, like creating custom forms, and fields in it?

Thanks for ideas and answers)

Yurij Krot
  • 21
  • 4
  • As written, this question is at best, ambiguous and at worse unintelligible. Perhaps you know someone who can help you phrase the question in a manner that would attract answers for you. – MarsAtomic Mar 05 '16 at 23:21
  • Yura, Vse lehko. Tebe nado database table sohranyat v {Hash: data}. Smotra kakuyu database polzuessa. Tochno znayu 4to PostgreSQL ili MongoDB podderjivaet, s MySQL ne proboval eshe, no doljen podderjivat toje. – 7urkm3n Mar 06 '16 at 07:29
  • I noticed your username contains Cyrillic. If you are more proficient at Russian than English, then consider using the Russian language Stack Overflow. If you speak a different language like Ukrainian or Mongolian, we don't have any Stack Overflow sites yet. – Andrew Grimm Mar 06 '16 at 08:34
  • I can not understand, why: hi, hello and etc., deleted when I post the question – Yurij Krot Mar 06 '16 at 21:23
  • About why "hi" and the like is removed: http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts – Andrew Grimm Mar 06 '16 at 21:51

1 Answers1

1

You want the model to contain custom fields inputted by the user. How would you call on the fields if the names/keys of the field are custom input? The fields would not make sense to save as columns in the database. You don't want your users actually editing the model or your database schema; you just want to process their input in a different way.

To store the sets of custom field/value pairs for each user, you would need to serialize and save a hash of custom fields in your User table. See this answer for an example.

Community
  • 1
  • 1
nao
  • 1,128
  • 1
  • 14
  • 37