Reputation: 837
In my route.rb file I currently have:
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
map.root :controller => "test"
how do I direct my index page to direct to something like this: http://site.com/railstest/test/index.html
or just: http://site.com/railstest/test.erb
originally it started off at: http://site.com/railstest/
which took me to the default html page, which has now been deleted. should I change the route or create a test.rb in the view folder, thank you
Upvotes: 0
Views: 67
Reputation: 27747
It's not possible to make a route that goes directly to a view, bypassing every controller.
So you have two options available to you now:
make it as a static html page
create a controller that will serve your view
Upvotes: 1