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
Read extra args for 'rails new' from ~/.railsrc #2583
Conversation
@josevalim please check this and let me know if can be done in a better way |
/cc @fxn @jonleighton @tenderlove @spastorino - whatcha your feelings bros? |
Not that anyone asked me, but I think this could have a lot of interesting potential uses. Just now is the first I've heard of it though. |
I don't have a problem with the idea, but I also don't create new projects regularly enough that it's annoying to have to specify the options. But perhaps some people do. If we merge it probably needs to be made windows compatible. |
I like the idea and agree with Jon, this should be compatible with Windows |
testing in Windows: railsrc = File.join(File.expand_path("~"), ".railsrc")
#=> c//documents and settings/administrador/.railsrc Windows Explorer still prohibiting files without name? :-) (in console I know this can be avoided: What do you think that we should do for Windows users? |
@guilleiguaran we should ping @luislavena? :P |
@guilleiguaran any decent editor will allow you create file without names, so don't worry about that, even from notepad you can workaround the limitation using double quotes around the filename. @spastorino: Ruby 1.8.7, 1.9.2 and 1.9.3 resolve the expansion of I don't think Windows will be a problem with this. Just my two cents. Cheers. |
That was the fastest github summoning i have ever seen! |
Just to add my $0.02:
|
@luislavena thanks for your feedback @josevalim totally agree, I will update this adding 1) and 3) |
@josevalim updated |
Read extra args for 'rails new' from ~/.railsrc
I think an explanation about the format of the .railsrc could be a good thing :) |
cc @josevalim @dhh
More info: #2132 (comment)