开发者

Copy additional file with default rails scaffold

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜