开发者

Modify Rails scaffolding so that the create and update actions can receive a JSON string

What is the best way to modify the basic Rails scaffolding so that it can accept a JSON string passed to the create, update, and destroy actions? I would like to keep the开发者_开发问答 scaffolding working as it does by default as well.


I advise you to see the code of Ryan Bates nifty_scaffold generator.

He changed the scaffold to add more options and clean the create, update, and edit functions.

You can learn a lot from that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜