diff options
author | Yves Senn <yves.senn@gmail.com> | 2016-01-19 20:15:31 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2016-01-19 20:15:31 +0100 |
commit | e0b5533be6424d19d5744e2b0aba81457b15d375 (patch) | |
tree | baa1e435924588950dbf486210c9c4fadbc6dc98 /guides/source | |
parent | ba24d42828283156eba8544113739ce0c14283f0 (diff) | |
parent | d0c62d9d1ee5af224c7651ecc7bc8075f615c826 (diff) | |
download | rails-e0b5533be6424d19d5744e2b0aba81457b15d375.tar.gz rails-e0b5533be6424d19d5744e2b0aba81457b15d375.tar.bz2 rails-e0b5533be6424d19d5744e2b0aba81457b15d375.zip |
Merge pull request #23124 from vipulnsward/rake-rails
- Changed from bin/rake to bin/rails at more application places. [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/command_line.md | 2 | ||||
-rw-r--r-- | guides/source/rails_application_templates.md | 4 | ||||
-rw-r--r-- | guides/source/rails_on_rack.md | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 5240b5f343..020ea0c920 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -253,7 +253,7 @@ The generator checks that there exist the directories for models, controllers, h The migration requires that we **migrate**, that is, run some Ruby code (living in that `20130717151933_create_high_scores.rb`) to modify the schema of our database. Which database? The SQLite3 database that Rails will create for you when we run the `rake db:migrate` command. We'll talk more about Rake in-depth in a little while. ```bash -$ bin/rake db:migrate +$ bin/rails db:migrate == CreateHighScores: migrating =============================================== -- create_table(:high_scores) -> 0.0017s diff --git a/guides/source/rails_application_templates.md b/guides/source/rails_application_templates.md index edd54826cf..5a46baff2d 100644 --- a/guides/source/rails_application_templates.md +++ b/guides/source/rails_application_templates.md @@ -25,8 +25,8 @@ $ rails new blog -m http://example.com/template.rb You can use the rake task `rails:template` to apply templates to an existing Rails application. The location of the template needs to be passed in to an environment variable named LOCATION. Again, this can either be path to a file or a URL. ```bash -$ bin/rake rails:template LOCATION=~/template.rb -$ bin/rake rails:template LOCATION=http://example.com/template.rb +$ bin/rails rails:template LOCATION=~/template.rb +$ bin/rails rails:template LOCATION=http://example.com/template.rb ``` Template API diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md index 273fbc08e2..934693252e 100644 --- a/guides/source/rails_on_rack.md +++ b/guides/source/rails_on_rack.md @@ -96,7 +96,7 @@ NOTE: `ActionDispatch::MiddlewareStack` is Rails equivalent of `Rack::Builder`, Rails has a handy rake task for inspecting the middleware stack in use: ```bash -$ bin/rake middleware +$ bin/rails middleware ``` For a freshly generated Rails application, this might produce something like: @@ -178,7 +178,7 @@ And now if you inspect the middleware stack, you'll find that `Rack::Lock` is not a part of it. ```bash -$ bin/rake middleware +$ bin/rails middleware (in /Users/lifo/Rails/blog) use ActionDispatch::Static use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000001c304c8> |