# HG changeset patch # User Edho Arief # Date 1349321252 -25200 # Node ID bb5f98459aac270e22c553446104f5c9a112270d # Parent f7b7a39fb48c999657f113b863f97c5c775f4eff Format check requires a regex, not an array. diff -r f7b7a39fb48c -r bb5f98459aac config/routes.rb --- a/config/routes.rb Thu Oct 04 10:20:58 2012 +0700 +++ b/config/routes.rb Thu Oct 04 10:27:32 2012 +0700 @@ -1,5 +1,5 @@ Zeropaste::Application.routes.draw do resources :pastes, :only => [:show, :create], :path => '/' - post 'pastes' => 'pastes#create', :format => [:json, :xml, :txt] + post 'pastes' => 'pastes#create', :format => /(json|xml|txt)/ root :to => 'pastes#new' end