sachin238
(sachin238@gmail.com)
1
hi all ,
i want thats if i type http//localhost:3000 in my browser. it will
redirect to controller account and action will be login
i write this code in routes.rb file
map.connect '*anything',:controller=>'account',:action=>'login'
it showing again the same startup page to confirm the server is
running
i also tried
map.connect ' ',:controller=>'account',:action=>'login'
but didn't succeeded can any body help me out
thanks
sachin
Hi,
it showing again the same startup page to confirm the server is
running
have you tried doing as the routes.rb file says?
# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
remobe the public/index.html file and you'll probably have it running
regards,
javier ramirez
sachin238
(sachin238@gmail.com)
3
thanks man its working thanks