Re: Routing: How do I use what is left from an URL

Robert Williams
Wed, 23 Feb 2005 02:48:54 -0000

This may work! Just messing mind you :)

  map.connect '':controller/:action/:id''

  begin
    map.recognise!
  rescue
    path = '':section/:a/:b/:c/:d''
    map.connect path, :controller => ''page'', :action =>
''read'', :title
=> ''home'', :a => nil, :b => nil, :c => nil, :d
=> nil
  end



On Sat, 19 Feb 2005 12:45:40 -0500, Bob Aman
<vacindak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> > > Ulysses: see? Another unsatisfied customer who wants
'':foo/:bar...''
> > > mapping :)
> >
> > Count me in, too. It''s an absolute requirement for a CMS with
pretty,
> > hierarchic url''s.
>
> Me too.  I''ve only been playing with rails for two days and
I''ve
> already run into this limitation myself.
> --
> Bob Aman
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>