Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
generator not injecting files on Windows #1782
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.
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
Your project works on my system. It inserts
Though I failed to properly use gem