# About uncomment â€œ match ':controller(/:act ion(/:id(.:format)))' â€

**URL:** <https://www.ruby-forum.com/t/about-uncomment-a-oe-match-controller-act-ion-id-format-a/195393>\
**Category:** Rails\
**Created:** [September 22, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/about-uncomment-a-oe-match-controller-act-ion-id-format-a/195393 "2010-09-22T15:14:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [September 22, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/about-uncomment-a-oe-match-controller-act-ion-id-format-a/195393/1 "2010-09-22T15:14:05Z")

</div>

I am reading Agile Web D. with Rails, Edition 3. which is  
based on Rails 2.X  
now I am coding on Rails 3  
So I go to the author’s website to see the difference between ver 2  
and ver 3

> **[Pragmatic Bookshelf: By Developers, For Developers](https://pragprog.com)**
>
> We improve the lives of professional developers. We create timely, practical books on classic and cutting-edge topics to help you learn and practice your craft, and accelerate your career. Come learn with us.

In this webpage, 4.1 Creating a New Application

It said  
“edit config/routes.rb, and uncomment the following line:  
match ‘:controller(/:action(/:id(.:format)))’ ”

In Rails 3 , is it necessary to uncomment this line whether I add a  
view into a controller manually  
( I mean not use the command rails generate controller xxx xxxx )?  
Is there any security problem after I uncomment this line?

Thank you.

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [September 22, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/about-uncomment-a-oe-match-controller-act-ion-id-format-a/195393/2 "2010-09-22T15:27:33Z")

</div>

I’m working through this page right now, it seems to be a good place  
to start:

> **[Getting Started with Rails — Ruby on Rails Guides](https://guides.rubyonrails.org/getting_started.html)**
>
> Getting Started with RailsThis guide covers getting up and running with Ruby on Rails.After reading this guide, you will know: How to install Rails, create a new Rails application, and connect your application to a database. The general layout of a...

Try building this example (starts at chapter 3, where you get to  
build … wait for it … a Blog!).

Walter

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [September 22, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/about-uncomment-a-oe-match-controller-act-ion-id-format-a/195393/3 "2010-09-22T16:00:21Z")

</div>

match ‘:controller(/:action(/:id(.:format)))’

will make all your actions available through get request. so be sure to  
hide  
internal actions behind a private clause

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [September 22, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/about-uncomment-a-oe-match-controller-act-ion-id-format-a/195393/4 "2010-09-22T16:05:02Z")

</div>

On 9ÔÂ22ÈÕ, ÏÂÎç9Ê±46·Ö, radhames brito [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> match ‘:controller(/:action(/:id(.:format)))’
> 
> will make all your actions available through get request. so be sure to hide  
> internal actions behind a private clause

Thanks! that’s the point what i care about.  
Private actions won’t be changed to accessible by uncommenting this  
line. isn’t it?  
OK , I got it
