aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--guides/source/command_line.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index e7ecdc51d8..22645babfe 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -503,7 +503,7 @@ end
You can group tasks by placing them in namespaces:
```ruby
-namespace :db
+namespace :db do
desc "This task does nothing"
task :nothing do
# Seriously, nothing
@@ -517,7 +517,7 @@ Invocation of the tasks will look like:
rake task_name
rake "task_name[value 1]" # entire argument string should be quoted
rake db:nothing
-```
+```
NOTE: If your need to interact with your application models, perform database queries and so on, your task should depend on the `environment` task, which will load your application code.