Permalink
Browse files

oops!

  • Loading branch information...
1 parent dfb149f commit 061c0e452c9de8e0d865f45ccac28b496173f895 @jlong committed May 6, 2010
Showing with 3 additions and 1 deletion.
  1. +1 −0 lib/acoustic/controller.rb
  2. +1 −1 lib/acoustic/router.rb
  3. +1 −0 spec/acoustic/router_spec.rb
@@ -226,6 +226,7 @@ def params
def rendered?
@_rendered == true
end
+
private
# Create a new rendering engine for a template. Currently only supports
@@ -112,7 +112,7 @@ def extract_regexp_and_capture_symbols(path)
end
def unescape(string)
- URI.unescape(string).gsub('+', ' ')
+ URI.unescape(string).gsub('+', ' ') unless string.nil?
end
end
@@ -15,6 +15,7 @@
resolve('/another?test=1').should == {:controller => :another_test, :action => :index, :test=>'1'}
resolve('/another/?test1=1&test2=2').should == {:controller => :another_test, :action => :index, :test1=>'1', :test2=>'2'}
resolve('/another/?test%203=three%2Ffour').should == {:controller => :another_test, :action => :index, :'test 3'=>"three/four"}
+ resolve('/another/?test').should == {:controller => :another_test, :action => :index, :test => nil}
end
it 'should resolve a URI with params in the path' do

0 comments on commit 061c0e4

Please sign in to comment.