Lachlan:

get '/*' do
    haml var.to_sym
 end

maybe? Not sure if I understand the requirements properly...


Kirk

On Wed, Mar 4, 2009 at 3:17 PM, Lachlan Hardy <lach...@lachstock.com.au>wrote:

>
> > could you not do something like:
> > get '/*' do
> >   # interpret params[:splat] as needed
> > end
>
> Yeah, but it's the commented line I'm having trouble with.
>
> I need to tell it show a view that is based on a variable, rather than
> a known value
>
> so rather than doing:
>
> get '/*' do
>  haml :index
> end
>
> I need:
>
> get '/*' do
>  haml VARIABLE
> end
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 rails-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to