I have an app on Heroku. At some point in time I accidentally name the folder "Admin" instead of "admin". Now it is stuck with the capitalized name instead of the lowercase. how do i resolve this?
here is the error in heroku logs
2013-06-10T15:18:48.223475+00:00 app[web.1]: Started GET "/admin/orders/new" for 173.78.15.104 at 2013-06-10 15:18:48 +0000
2013-06-10T15:18:48.296834+00:00 app[web.1]:
2013-06-10T15:18:48.296834+00:00 app[web.1]: ActionView::Template::Error (Missing partial admin/orders/form, active_admin/resource/form, active_admin/base/form, inherited_resources/base/form, application/form with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :arb, :haml]}. Searched in:
2013-06-10T15:18:48.296834+00:00 app[web.1]: * "/app/app/views"
2013-06-10T15:18:48.296834+00:00 app[web.1]: * "/app/vendor/bundle/ruby/1.9.1/bundler/gems/active_admin-fa7e4de2d5fa/app/views"
2013-06-10T15:18:48.296834+00:00 app[web.1]: * "/app/vendor/bundle/ruby/1.9.1/gems/kaminari-0.14.1/app/views"
2013-06-10T15:18:48.296834+00:00 app[web.1]: * "/app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/app/views"
2013-06-10T15:18:48.296834+00:00 app[web.1]: ):
You should make git push
with proper folder name commited.
Assuming your folder is in app/views:
mv app/views/Admin app/views/admin/
git add app/views/admin
git commit -am "rename admin directory"
git push heroku master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With