ruby - How can I export a rails model to json schema? -


I think how we build forms of some of our models and ideally I like them Jason-Schema

Is there any gem or the way I have to allow a model definition to be exported to Jason-Schema?

Bonus: with validation

Bonus: While modeling association relationships. FormTest: There is a mechanism for creating forms from models that you may want to put your code on them.

Check in lib / formtastic.rb line 474 either.

Railscast for formattic:


Comments