Forum: Ruby on Rails Naming convention and search engines

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
rails.impaired (Guest)
on 2007-05-18 08:06
(Received via mailing list)
Hi all:

The following is an Search Engine Optimization tip that is fairly
common in most of the SEO checklists that I have read.

Hyphens - Use hyphens ( - ) and not underscores ( _ ) to separate
words in directory and file names. Most search engines parse a hyphen
like a reader would parse a space. Using underscores makes
what_would_you_do look like whatwouldyoudo to most search engines. You
should definitely separate words in your URLs.

Let's say I create a small test app.
# rails test

create a controller, edit the controller, create a template, and run
the server
# script/generate controller WebResources
# do the manual editing stuff here.
# script/server webrick

To access the page: http://localhost:3000/web_resources/index

Works fine.  I'm wondering if there is a way to reference the above
URL using hyphens to make the spiders happy??

Any thoughts??

This topic is locked and can not be replied to.