[PhillyOnRails] Hiding controller/action from the homepage URL
Colin A. Bartlett
phillyonrails at colinabartlett.com
Wed Dec 12 14:03:01 MST 2007
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
More information about the talk
mailing list