could you not do something like:
get '/*' do
  # interpret params[:splat] as needed
end

On Wed, Mar 4, 2009 at 1:56 PM, Lachlan Hardy <[email protected]>wrote:

>
> It might just be my unbelievable hangover, because I thought this
> would be easy, but I'm struggling big time.
>
>
> Basically, I want to be able to pass routes such as '/dialogs',
> 'dialogs/wizard', '/controls/buttons' etc to one controller that tells
> Sinatra to go find the appropriate haml file.
>
> Obviously, I can just map out all the routes. Just as obviously, that is
> lame.
>
> Anybody got a functioning brain this afternoon?
>
> Lachlan Hardy
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to