Chris Cera on 12 Dec 2007 21:34:13 -0000


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

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


Colin/Trotter,

Thank you, it worked like a champ. -Chris


* Colin A. Bartlett <phillyonrails@colinabartlett.com> [071212 16:03]:
> 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

-- 
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