About uncomment “ match ':controller(/:act ion(/:id(.:format)))' ”

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

http://www.pragprog.com/wikis/wiki/ChangesInRails30

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:

http://guides.rubyonrails.org/getting_started.html

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

Walter

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

On 9ÔÂ22ÈÕ, ÏÂÎç9ʱ46·Ö, radhames brito [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs