Is there a way to configure rails to automatically add a path string in front of the controller so that I can have my rewrite rule look for that string to branch to rails? Thanks, David Chilton ==============================================================================CONFIDENTIALITY NOTICE: The information in this electronic message (including any attachments) is confidential and may be privileged or proprietary. If you are not the intended recipient, any dissemination, disclosure, copying, downloading, or other use of the information is prohibited and unauthorized, and may be unlawful, regardless of address or routing. If you are not the intended recipient, please inform the sender immediately and permanently delete and destroy the original and any copies of this message, including any attachments. ============================================================================= _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Jun 6, 2005, at 11:59 AM, David Chilton wrote:> Is there a way to configure rails to automatically add a path > string in front of the controller so that I can have my rewrite > rule look for that string to branch to rails? > >Just put the path prefix in front in your routes definitions. That should do the trick, no? Erik
David Chilton
2005-Jun-06 16:10 UTC
RE: How can I have RoR prepend a path to link_to links
Thanks, that did the trick. David> -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Erik Hatcher > Sent: Monday, June 06, 2005 12:05 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] How can I have RoR prepend a path to link_tolinks> > > On Jun 6, 2005, at 11:59 AM, David Chilton wrote: > > > Is there a way to configure rails to automatically add a path > > string in front of the controller so that I can have my rewrite > > rule look for that string to branch to rails? > > > > > > Just put the path prefix in front in your routes definitions. That > should do the trick, no? > > Erik > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails==============================================================================CONFIDENTIALITY NOTICE: The information in this electronic message (including any attachments) is confidential and may be privileged or proprietary. If you are not the intended recipient, any dissemination, disclosure, copying, downloading, or other use of the information is prohibited and unauthorized, and may be unlawful, regardless of address or routing. If you are not the intended recipient, please inform the sender immediately and permanently delete and destroy the original and any copies of this message, including any attachments. ==============================================================================