I am trying to generate a path for a route with requirements. The route looks like this...
map.courses_image_cache '/courses/image_cache', :controller => 'courses', :action => 'image_cache', :requirements => { :cache_id => /\d{8}-\d{4}-\d{5}-\d{4}/, :filename => /[a-zA-Z0-9_ ]+\.(jpg|jpeg|png|gif){1}/i } And I call it as courses_image_cache_path(:cache_id => '20100111-0332-76263-6402', :filename => 'letter.png' ) But the result is the path "/courses/image_cache" Why does the result NOT include the params? The params match, but no params in the resulting URL... or is that intentional, like the keys to the kingdom? Ideas? Help? Martin
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.