radical wrote in post #1069978: > if in rails 2.3 we can use this syntax > map.connect ' ', :controller => 'people', :action => 'action' > > the result it will simplify from > http://localhost:3000/people/action to http://localhost:3000/ > > but in rails 3.2, we can't use map.connect right? > i try to use : > match ' people/action ' => ' people # action ', as: 'shows'
If you create a new Rails 3.2 app and look at the config/routes.rb file you'll lots of examples of route mappings. Including this one... # You can have the root of your site routed with "root" # just remember to delete public/index.html. # root :to => 'welcome#index' -- Posted via http://www.ruby-forum.com/. -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.