JsonSchemaRails::Engine.routes.draw do
  get '*schema(.:format)', to: 'schemas#get'
end

JsonSchemaRails::Engine.routes.draw do
  get '/:schema(.:format)', to: 'schemas#get', constraints: { schema: /[\/a-zA-Z0-9_-]+/ }
end

Fix schema route for Rails 3
Fix schema route for Rails 3
