<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,7 +32,10 @@ module Remarkable
             env = ::ActionController::Routing::Routes.extract_request_environment(controller.request) if controller
             env ||= {}
             env[:method] = @method.to_sym
-            params_from = ::ActionController::Routing::Routes.recognize_path(@populated_path, env)
+            params_from = begin
+              ::ActionController::Routing::Routes.recognize_path(@populated_path, env)
+            rescue
+            end
             return params_from == @options, :actual =&gt; params_from.inspect
           end
 </diff>
      <filename>remarkable_rails/lib/remarkable_rails/action_controller/matchers/route_matcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,6 +40,7 @@ describe 'route_matcher' do
 
     # failing case
     it { should_not route(:get, '/projects',    :controller =&gt; :projects, :action =&gt; :show) }
+    it { should_not route(:xyz, '/projects',    :controller =&gt; :projects, :action =&gt; :index) }
   end
 
   describe 'macros' do
@@ -58,6 +59,7 @@ describe 'route_matcher' do
 
     # failing case
     should_not_route :get, '/projects',    :controller =&gt; :projects, :action =&gt; :show
+    should_not_route :xyz, '/projects',    :controller =&gt; :projects, :action =&gt; :index
   end
 
   describe TasksController, :type =&gt; :routing do</diff>
      <filename>remarkable_rails/spec/action_controller/route_matcher_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>644a4849ecd6f9aab5abfd478d2888d9c84f8ab1</id>
    </parent>
  </parents>
  <author>
    <name>Lawrence Pit</name>
    <email>lawrence.pit@gmail.com</email>
  </author>
  <url>http://github.com/lawrencepit/remarkable/commit/a110a8b77a6d6efef79d7c8f4d120d92bcd893a1</url>
  <id>a110a8b77a6d6efef79d7c8f4d120d92bcd893a1</id>
  <committed-date>2009-06-30T16:30:12-07:00</committed-date>
  <authored-date>2009-06-30T16:30:12-07:00</authored-date>
  <message>Rescue errors thrown by recognize_path</message>
  <tree>3c89da9763952d45850add96d4e3ea6b98d75253</tree>
  <committer>
    <name>Lawrence Pit</name>
    <email>lawrence.pit@gmail.com</email>
  </committer>
</commit>
