# Set up a default route

**URL:** <https://www.ruby-forum.com/t/set-up-a-default-route/193635>\
**Category:** Rails\
**Created:** [August 20, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/set-up-a-default-route/193635 "2010-08-20T21:41:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 20, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/set-up-a-default-route/193635/1 "2010-08-20T21:41:54Z")

</div>

running virtual rails on linux mint…

Set up a default route and remove or rename this file  
Routes are set up in config/routes.rb.

.quick dumb question…do i setup the default route in the command  
prompt terminal or an IDE? im learning as i go here…i tried running  
config/routes.rb in a terminal and got the following error

virtualrails@jay ~/blog $ config/routes.rb  
bash: config/routes.rb: Permission denied

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 20, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/set-up-a-default-route/193635/2 "2010-08-20T21:46:35Z")

</div>

> bash: config/routes.rb: Permission denied  
> This should help…

> **[Rails Routing from the Outside In — Ruby on Rails Guides](https://guides.rubyonrails.org/routing.html)**
>
> Rails Routing from the Outside InThis guide covers the user-facing features of Rails routing.After reading this guide, you will know: How to interpret the code in config/routes.rb. How to construct your own routes, using either the preferred...
