Topic: Dashes (-) in URL's
Was wondering if someone could help me. We've recently started moving a lot of our static sites over to rails purely because it's a power framework and the sites are open for expansion. We require that "multi-worded" url's have dashes in the e.g. http://domain.com/pages/two-worded-url for SEO
The way it's currently running is that we have a pages controller and then different actions for the static pages.
class PagesController < ApplicationController
@page_title = 'Home'
@page_title = 'Contact Us'
This works fine for the following url http://domain.com/pages/home/
How would I go about getting the following url http://domain.com/pages/web-marketing/ working as the following code causes an error
@page_title = 'Web Marketing'
Thanx in advance guys