rickychilcott/munkiserver — pull request #1 by treydock (2012-03-06 06:50:24+00:00)
Title: Rails 3.1/3.2 support

This was done with Rails-3.2.0

Fixes the routing issue for catalogs.

I think that Rails is assuming this type of usage

```ruby
# config/routes.rb
match 'catalogs/:unit_id-:environment_name' => 'catalogs#show', :format => 'plist', :via => :get, :as => "catalog"

# view
catalog_path(@computer.unit.id, @computer.environment.id)
```

rather than being a file request using "GET catalog/1-Production.plist".

This commit assumes the format for catalog name will remain (unit_id)-(environment_name).

TODO: See if this was a purposeful change in Rails or a bug