I am wanting to override the default scaffold views for my rails 4 app. I have copied all of the erb scaffold files from railties and placed them in the following folder under my app /lib/templates/erb/scaffold.
I modified the new.erb.html file so that I could tell if the lib/templates erb file is being used to generate the view instead of the default railties file.
After running the command:
rails g scaffold Customer code:string name:string
and reloading the new customer page it doesn't pick up my customised scaffold file to generate the new customer view.
Is there something else I need to set within the app to tell it to look at the lib/templates folder for scaffold template files?
- Rails version is: Rails 4.1.4
- OS version is: Ubuntu 14.04 LTS
- Ruby version is: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
Cheers, Leigh.