The site I'm currently designing doesn't have a db back end. So I'm
using rails primarily for templating and some scripting.
I approached this by creating a controller called 'main' and various
views like "index", "welcome", "about", etc.
But then I'd get URL's like www.mydomain.com/main/welcome when I wanted
To fix it, I made some routes in my config/routes.rb that look like:
map.connect "welcome", :controller => "main", :action => "welcome"
This seems to work peachy, but I was wondering...is this the "correct"
way to approach this site design with rails?
e.g. a 'main' site controller and address rewrites via routes.rb?