error in map.connect

V

Varun Goel

hi all,
I wanna run my welcome controller after typing just
http://localhost:3000 and for that i made route.rb file like
ActionController::Routing::Routes.draw do |map|
map.connect '', :controller => "welcome"

# Allow downloading Web Service WSDL as a file with an extension
# instead of a file named 'wsdl'
map.connect ':controller/service.wsdl', :action => 'wsdl'

# Install the default route as the lowest priority.
map.connect ':controller/:action/:id.:format'
map.connect ':controller/:action/:id'
end
but when i typed http://localhost:3000 it's showing me the webrick
server page.
I made right changes or i have to made some other change .
Please reply soon.
Thanks Varun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,591
Members
45,102
Latest member
GregoryGri
Top