On Thu, Aug 25, 2011 at 21:28, David Susco <dsu...@gmail.com> wrote: > Would you have to write the RE for every declaration? > > ie... > > module App::Controllers > get '/(.*)' do |name| > "Hello #{name}" > end > > put '/(.*)' do |name| > "Hello #{name}" > end > end
That wouldn't work. Camping would dispatch all methods to the first controller (so you'll get a 501 error when you PUT). In that case you'll have to refactor it into a proper controller. Which I consider a good thing (DRY etc.) _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list