-
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
"bin/rails" command in a Rails 4 app directory gives me the "rails new" help message #9715
Comments
OK. My bin/rails file looked like this : I had to replace it with the current template file : https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/templates/bin/rails But I don't understand why the template wasn't good just after the app generation using the Rails 4b1 gem... |
OK, that's because I used --binstubs, see : https://gist.github.com/chrismo/5043420 |
I don't think you should close this issue. I ran into this too when trying out the Rails 4 beta, and it was confusing as hell to figure out what was going wrong. I think that "$PROJECT/bin/rails" would work as expected, and is a use case that should probably be handled. |
Bundler's old binstubs don't work like the new |
|
Thanks @dw2 ! That solution worked for me too. |
@dw2 This worked for me. Thanks. |
I'm bootstraping a Rails 4b1 application using Ruby 2 and latest Bundler.
When I run
bin/rails
command inside the app directory, I get therails new
message as if I was not in a Rails directory.I switched to
master
rails without success. I tried to delete all my rails gems without success neither.The text was updated successfully, but these errors were encountered: