-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Clarify and correct the description for the --full option of the plugin_... #6499
Conversation
cc @drogus |
That's not exactly what it does. Maybe a better description would be: "Generate a rails engine with bundled Rails application for testing" |
hmmm that's not what I observe, Jose... If I generate a plugin with the --full option, the filesystem includes /app, /app/assets, /app/models, /app/controllers, /app/views, /app/helpers, /app/mailers, i.e. a full Rails application. without the --full option, these dirs are not created. in both cases (with/without the --full option) there is another Rails app for integration testing in the /test/dummy directory. Am I misunderstanding something? |
Yeah this has always been a bit confusing. IMHO the important difference is: --full generates a rails engine meant to be included alongside the rest of your application. It's like it operates in the same style, but the files are elsewhere. --mountable generates a rails engine meant to be mounted at a certain isolated URL. So --full is like continuing with your app but elsewhere, mountable is more a subcomponent you can embed into a variety of applications. |
@lazylester it is not a Rails application because there isn't a config/application.rb file. the bootstrap still happens with an engine defined inside lib/NAME/engine.rb. Maybe a better description would be: "Generates files for app directories, routes, initializers and others" ? |
I would also leave the engine there - it's similar to application, but thechnically it's an engine. "Generates files for app directories, routes, initializers and others" seems good to me. |
Just the part "the others" bothers me, because it raises a question "what others?". |
@drogus generate and you will see :P |
@josevalim haha :D right. But you will not be able to tell immediately which files where added by |
@josevalim you're right... I'm being very loose with the word "application", I accept your description. Is there anything I should do to make the committer's job easier? Make another pull request with your suggested wording? @josevalim and @drogus your work is surely appreciated... thank you! |
@lazylester you can just ammend your commit with the new wording, and push force to your branch, that Github updates the pull request. Please do that and ping here, that someone will merge. Thanks! |
@carlosantoniodasilva I just amended my commit to use @josevalim's suggested wording. Let me know if I need to do anything else. I assume I need to leave this PR open until someone pulls it. |
I see you've pushed to your master branch, but this pull request was created from branch |
Sorry to make such a big production out of such a small change! Clearly I'm on the edge of my skill set. Thanks for your patience. I think I got it right this time! |
No worries! Now I can see the change correctly, but there are two commits, so you'll need to squash them into one, keeping the commit message like the 1st one:
Thanks! |
Sorry, I'm confused! I was making the changes/commits/PR's through the github web interface. I don't see a way to squash two commits. I'm not sure how to proceed. Any guidance you can offer would be appreciated. |
Ok, no problem. You'd have to clone your repo (with the private/ssh link), and do something like this: git checkout patch-1
git rebase -i head~2
# an editor should open, you will have to mark the last commit as squash, save and close
git push --force lazylester patch1 After that you should have only 1 commit with the required change. Make sure the message is the clear one, as we commented before. Take a look here for more info on squashing Hope that helps, if you have any other doubt, let me know. |
Thanks for your patience and guidance, Carlos! |
You're welcome :). Merging, thanks! |
Clarify and correct the description for the --full option of the plugin_new generator. [ci skip]
rails plugin new --full generates a full rails application as an engine, but the --help description suggests that the --full option just adds integration testing... it's much more than that