Trotter Cashion on 12 Dec 2007 20:53:15 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Hiding controller/action from the homepage URL

  • From: Trotter Cashion <>
  • To: Chris Cera <>,
  • Subject: Re: [PhillyOnRails] Hiding controller/action from the homepage URL
  • Date: Wed, 12 Dec 2007 15:52:51 -0500
  • Cc:
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=9JzqaB4yBQKVIU4IRzkfxXbo63szjkQFNqbDbgAEqZ0=; b=vA/uVaPAiGX2ZGcubrVwiIs3MLHtLHkJkRlmyMrZ8SZse9qwn/f0DdGtjbzAh/Q+wdnDecZZwOn73TE3GqWbN3SqBI5hqZbiDDEJHdWv91Qoh7jEiHqcCMdb0ovCAI2QmexoIh8EVOHpOWLPtXm7lYrPKvFmpRzoDq1qbLEo288=
  • List-archive: <>
  • Reply-to:
  • Sender:


You should be able to use Rails's built in routing to handle this. In config/routes.rb, add the following line.

map.connect '', :controller => "page", :action => "home"

- Trotter

On Dec 12, 2007, at 3:47 PM, Chris Cera wrote:

Hi everyone,

This is my first post, woohoo!

The default rails configuration for a server has the controller
and action embedded into the URL.  We presently use mod_rewrite
to move requests to .
However, we would prefer to have this page loaded, but still keep
the user on such that when they bookmark the
page it doesn't have the controller/action embedded into it.  Has
anyone dealt with this scenario?

Any help is greatly appreciated. -Chris

Christopher D. Cera
CTO, Hovitate LLC
P: 215.435.2289
F: 267.295.7369
To unsubscribe or change your settings, visit:

_______________________________________________ To unsubscribe or change your settings, visit: