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
Padrino Plugin Generator Templates produce wrong output with underscores #924
Comments
I can confirm this with even fewer steps: padrino g project foo -d datamapper
cd foo
padrino g app blog
padrino g model --app=blog posts title content leads to:
Any help? |
O.K., so I discussed this with @skade today. The reason why this is failing is because the model generator doesn't automatically assume "String" as default datatype (or any really). So @jamespedid and I made the same mistake and assumed String would be the default datatype chosen if none is given. That being figured out, I think the generator should either not fail that hard and print out a proper text message or do it like Rails and assume "String" as the default datatype. |
Looks like there were two separate issues here:
These two commits should address these issues. Please re-open if this doesn't solve it 😢 |
I'm using the latest copy of Padrino and I'm running into a multitude of problems building independent-sub applications to be installed to a currently existing application. In particular, the generators are creating the wrong things when underscores are used. The normal project files are contained under the name without the underscore, and the model files are stored in the folder with an underscore.
Try this on for size:
Ideally, I should be able to pick up the app..end and place it into its own file, and then simply create a sub-application using this. However this is being hindered by the underscore problem.
Here is my command prompt output:
The text was updated successfully, but these errors were encountered: