Colin A. Bartlett on 12 Dec 2007 21:03:45 -0000


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

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


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

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.

Unless I misunderstand what you're trying to do, in your routes.rb you can just do something like:


map.connect '', :controller => your_controller, :action => your_action
or in Rails 2.0 map.root instead of map.connect ''.

Hope that helps... welcome to the list!

Colin A. Bartlett
Kinetic Web Solutions
http://blog.kineticweb.com



_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk