New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin generator is not completely aware of the user defined model name #780
Comments
Good catch, we'll have to fix this in an upcoming release! Thanks |
Fixes padrino#780 - Admin generator is not completely aware of the user defined model name.
After a while using the admin generator I discovered that this same issue was affecting other areas of the code. I corrected all the issues that I found and I've been using the generator for a month now without incidences, so I'm requesting a new pull with my code. :) |
Should be finally fixed: 3f7081d, thanks @joelcuevas |
Fix padrino#780. Found that some templates wasn't aware of the user-defined model name in admin generator.
Sorry folks, there is still a glitch in the session controller template. Which will generate the create action like: See my pull request 846. |
File: padrino-admin / lib / padrino-admin / generators / admin_app.rb
Lines: 108, 109
There are hardcoded paths
admin/views/accounts/_form.#{ext}
andadmin/controllers/accounts.rb
even when the generator is called with, e.g., "-m User". This causes, obviously, a failure. It should be looking for something likeadmin/controllers/users.rb
instead.The text was updated successfully, but these errors were encountered: