dhampik / rails-admin-scaffold

Rails generator which allows to scaffold admin controllers, views with proper (non-namespaced) models, helpers, tests and routes
MIT License
92 stars 37 forks source link

Overriding templates #5

Closed alepore closed 10 years ago

alepore commented 10 years ago

Hi, looks like i'm not able to use custom templates, i've copied them as lib/templates/admin/scaffold_controller/views/erb/*.html.erb.erb

I'm on rails 4.1.4, any idea?

alepore commented 10 years ago

nevermind, did a bundle/reboot and works now

johanbaaij commented 8 years ago

hi. would lib/templates/admin/scaffold_controller/controllers/railties/controller.rb.erb be the correct path to override the controller template?

maslenkov commented 8 years ago

@johanbaaij Yes, it looks correct. Any problems?

johanbaaij commented 8 years ago

no, no problems. it turned out i had to override the jbuilder one instead. all works good now, thanks.