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
generator not injecting files on Windows #1782
Comments
Can not reproduce. Please provide a minimal failing project with a Gemfile.lock |
https://github.com/ntuntasood/padrino-1782 I have my command prompt history in command_history.txt. |
Oh, that's Windows. Okay, that might be the problem. Will look into it. Is it rubyinstaller or cygwin? |
rubyinstaller |
Thank you for your report! |
no problem thanks for your help |
So I've installed the latest version with your commit and the admin generator now injects to config/app.rb and Admin is mounted. However, when generating an admin page, admin/app.rb is not actually changed (despite it saying so) so I have to manually add PS C:\Users\ecofriendly\documents\coding\test> padrino g admin_page post
create admin/views/posts
create admin/controllers/posts.rb
create admin/views/posts/_form.slim
create admin/views/posts/edit.slim
create admin/views/posts/index.slim
create admin/views/posts/new.slim
insert admin/app.rb |
It should work, I checked. How did you installed the edge version? Can you try |
I have Here is my project: https://github.com/ntuntasood/padrino-1782-2 |
Your project works on my system. It inserts Though I failed to properly use gem |
Hmm, still doesn't work on mine. I'll try to see what's going on. |
Not sure if this is really an issue:
Running 'padrino g admin' in my project directory creates all the files but does not inject to config/app.rb. I have to go into that file and manually mount the generated Admin app for it to work. Similarly, running 'padrino g admin_page post' creates all the views and controllers but does not inject to admin/app.rb, and this is perhaps why the new tab for the admin panel is never added.
I'm pretty sure I've used the commands correctly (creating, migrating, seeding) and I can access the admin page directly from the URL.
I'm running Ruby 1.9.3 p545. Padrino is also up to date, as well as Thor and all the other gems.
Thanks.
The text was updated successfully, but these errors were encountered: