开发者

Copy additional file with default rails scaffold

开发者 https://www.devze.com 2023-03-13 05:42 出处:网络
I customized my scaffold files (view and controller). But by default it copies only the standard files like:

I customized my scaffold files (view and controller). But by default it copies only the standard files like:

  • _form.html.erb
  • edit.html.erb
  • index.html.erb
  • new.html.erb
  • show.html.erb

but I've to copy (and 开发者_StackOverflowrender) additional files like a "_list.html.erb" or something like "index.js.erb"

How would be the best way to do this, without creating an own generator? I'd like to use the standard rails scaffold.

thanks for help!

0

精彩评论

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

关注公众号