Philippe Monnet
2011-Feb-05 00:37 UTC
Did not know you could provide a list of urls in a controller route declaration
I just discovered today that I could specify multiple routes in a controller declaration: class Welcome < R ''/welcome'', ''/WelcomeEveryone'' end What other features am I missing out on? ;-) @techarch -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20110204/79403124/attachment.html>
Tony Miller
2011-Feb-10 00:51 UTC
Did not know you could provide a list of urls in a controller route declaration
On Fri, Feb 04, 2011 at 05:37:55PM -0700, Philippe Monnet wrote:> > class Welcome < R ''/welcome'', ''/WelcomeEveryone'' > endWhat does this mean, that ''/welcome'' and ''/WelcomeEveryone'' will use the exact same controller? How is that useful? -Tony
Jenna Fox
2011-Feb-10 01:03 UTC
Did not know you could provide a list of urls in a controller route declaration
Good for maintaining legacy URLs. :) ?Jenna / @Bluebie On Thursday, 10 February 2011 at 11:51 AM, Tony Miller wrote:> On Fri, Feb 04, 2011 at 05:37:55PM -0700, Philippe Monnet wrote: > > > > class Welcome < R ''/welcome'', ''/WelcomeEveryone'' > > end > > What does this mean, that ''/welcome'' and ''/WelcomeEveryone'' will use the exact same controller? How is that useful? > > -Tony > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20110210/4f2563be/attachment.html>
adam moore
2011-Feb-10 04:57 UTC
Did not know you could provide a list of urls in a controller route declaration
Commun spelling errars... 2011?2?10???? Jenna Fox a at creativepony.com:> > > Good for maintaining legacy URLs. :) > > > ?Jenna / @Bluebie > > > > On Thursday, 10 February 2011 at 11:51 AM, Tony Miller wrote: > > On Fri, Feb 04, 2011 at 05:37:55PM -0700, Philippe Monnet wrote: > > class Welcome < R ''/welcome'', ''/WelcomeEveryone'' > end > > What does this mean, that ''/welcome'' and ''/WelcomeEveryone'' will use the exact same controller? How is that useful? > > -Tony > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > > > > > > > > > > > >-- ----=^.^=---