er is the problem that it the variable doesn't evaluate to a symbol? have you called to_sym on it?
On Wed, Mar 4, 2009 at 2:17 PM, Lachlan Hardy <[email protected]>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 [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 -~----------~----~----~----~------~----~------~--~---
