Create Ruby on Rails views (only) after controllers and models are already created

后端 未结 6 1064
庸人自扰
庸人自扰 2020-12-23 02:21

I\'ve obtained a project that have controllers (minimal code only) and models, but the views are missing. Is there a way to generate the views only using scaffold or another

6条回答
  •  春和景丽
    2020-12-23 02:54

    "Another tool"...

    How about being able to do "script/generate view_for model_name"? :)

    There is a gem for that - View Mapper. It has Ruby on Rails 2 and 3 versions.

提交回复
热议问题