-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
problem with rerun 'rails generate administrate:install' #1003
Comments
Hi @leunis! So, to clarify, you've:
I suspect you're seeing administrate skip because it's already been run. Usually, you'd run the Two potential things we could do:
What do you think? |
@nickcharlton Then I would say that there's a mistake in the |
Ah hah! I suspect this is a regression from another change and we should restore the intended functionality. |
Hi Nick,
The second option would be great. This is the feedback that will solve the problem and as a bonus teaches the developer how things work.
I have read the userguide 3 times to see what i did wrong. And i totally missed this strategy.
So this type of alert alert would have helped me a lot!
Thanks!
Martijn dekker.
06-44584411
… Op 16 okt. 2017 om 15:15 heeft Štefan Ľupták ***@***.***> het volgende geschreven:
@nickcharlton Then I would say that there's a mistake in the README.md file. Fixing it should be enough I guess. Right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
As mentioned in #1003, rerunning the install generator doesn't actually work as you'd expect. This removes that suggestion to avoid confusion.
I wasn't happy enough with what I'd understood with this issue, so I took some time to delve in and remind myself how the generators work. The routes generator is really what's at play here, but the way it works isn't very smart. Inside The bit where I've opened #1018 to remove the line from the documentation so it'll help others and opened #1019 so that we can look at an Finally, I'm going to close this one as a half-solution is the documentation fix and the real solution can be tracked elsewhere. |
As mentioned in #1003, rerunning the install generator doesn't actually work as you'd expect. This removes that suggestion to avoid confusion.
Hi,
When I rerun
rails generate administrate:install
on an existing project with extra models that I want to make available via administrate, it does not create new controllers and views.How can I solve this
The text was updated successfully, but these errors were encountered: