John Anderson
2010-Sep-22 13:13 UTC
[Rails] 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 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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Walter Lee Davis
2010-Sep-22 13:26 UTC
Re: [Rails] about uncomment “ match ':controller(/:action(/:id(.:format)))' ”
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 On Sep 22, 2010, at 9:13 AM, John Anderson wrote:> 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 > > 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. > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails- > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en > . >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2010-Sep-22 13:46 UTC
Re: [Rails] about uncomment “ match ':controller(/:action(/:id(.:format)))' ”
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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
John Anderson
2010-Sep-22 14:03 UTC
[Rails] Re: about uncomment “ match ':controller(/:action(/:id(.:format)))' ”
On 9月22日, 下午9时46分, radhames brito <rbri...@gmail.com> 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 clauseThanks! 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.