about uncomment “ match ':controller(/:action(/:id(.:format)))' ”

I am reading Agile Web Development 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


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.

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


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


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