diff --git a/doc/development/fe_guide/frontend_faq.md b/doc/development/fe_guide/frontend_faq.md
index a367a3b6c630f7f55298ef88fe5103dfbfc7ce5e..6b9d5ace4e6d6c3f50145e771c9c150f77485d81 100644
--- a/doc/development/fe_guide/frontend_faq.md
+++ b/doc/development/fe_guide/frontend_faq.md
@@ -36,11 +36,11 @@ Find here the [source code setting the attribute](https://gitlab.com/gitlab-org/
 
 #### Rails routes
 
-The `rake routes` command can be used to list all the routes available in the application. Piping the output into `grep`, we can perform a search through the list of available routes.
+The `rails routes` command can be used to list all the routes available in the application. Piping the output into `grep`, we can perform a search through the list of available routes.
 The output includes the request types available, route parameters and the relevant controller.
 
 ```shell
-bundle exec rake routes | grep "issues"
+bundle exec rails routes | grep "issues"
 ```
 
 ### 2. `modal_copy_button` vs `clipboard_button`
diff --git a/doc/development/rake_tasks.md b/doc/development/rake_tasks.md
index c6c3d39c57f749b36f6a5f141e9bcccbb30bd7cd..3860665024ad665644a40a33116904338c351c0a 100644
--- a/doc/development/rake_tasks.md
+++ b/doc/development/rake_tasks.md
@@ -263,7 +263,7 @@ RESTful API verbs.
 For the Rails controllers, run:
 
 ```shell
-bundle exec rake routes
+bundle exec rails routes
 ```
 
 Since these take some time to create, it's often helpful to save the output to