JSON dynamic attributes with Rails

We had a tricky problem. We knew that the columns for one particular model would need to change over time. That was easily solved with a JSON field, but we also wanted to support validations on this field – validations that are assigned to the model at the time of creation. Heitor SilvaThis was a joint effort between me, Tom Rothe and Dmitry Parshenko. After we did some brainstorming and white board sessions, we decided to start with a Model called Vehicle. It held a schema and a description keeping its characteristics.
JSON dynamic attributes with Rails #ruby #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles