Skip to content

Instantly share code, notes, and snippets.

@fsvehla
Created July 15, 2010 14:42
Show Gist options
  • Save fsvehla/477025 to your computer and use it in GitHub Desktop.
Save fsvehla/477025 to your computer and use it in GitHub Desktop.
Lightning ~intranet ‹master*› ree-1.8.7-2010.02» git diff config/routes.rb
diff --git a/config/routes.rb b/config/routes.rb
index 716cd20..5646f59 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -145,7 +145,7 @@ ActionController::Routing::Routes.draw do |map|
map.resource :voxbone_import, :collection => {:preview => :post}
- map.connect '/tickets/assign/:ticket_id/to/:selected_user', :controller => "tickets", :action => "assign_to"
+ map.connect '/tickets/assign/:ticket_id/to/:selected_user', :controller => "tickets", :action => "assign_to", :requirements => {:selected_user => customer_id_regexp}
map.connect '/invoicing/sinner_in/:year/:month', :controller => "invoicing" , :action => "sinner_in_month"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment