[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PhillyOnRails] Hiding controller/action from the homepage URL
|
- From: Trotter Cashion <cashion@gmail.com>
- To: Chris Cera <chris@cera.us>, talk@phillyonrails.org
- 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; d=gmail.com; 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: <http://lists.phillyonrails.org/pipermail/talk>
- Reply-to: talk@phillyonrails.org
- Sender: talk-bounces@phillyonrails.org
Chris,
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 http://vuzit.com requests to http://vuzit.com/page/home .
However, we would prefer to have this page loaded, but still keep
the user on http://vuzit.com 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
http://vuzit.com
P: 215.435.2289
F: 267.295.7369
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk
|