Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
运行初始脚手架命令时,它会根据您的模型自动为您生成一个表单。生成迁移时有什么方法可以重新运行它?
如果能够输入 rails g view user 或 w/e 来根据您的新模型字段更新您的视图,那就太棒了。
https://github.com/justinfrench/formtastic
允许您执行此操作。