Mercurial > zeropaste
annotate config/routes.rb @ 83:ae360c3b0bb0
Disable explain when using jruby because it's not supported.
The patch for this support exist but for some reason still not included
in latest release of the jdbc adapter.
Reference: https://github.com/jruby/activerecord-jdbc-adapter/pull/206
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 15 Oct 2012 03:45:18 -0700 |
parents | bb5f98459aac |
children | b4b7a29b70f6 |
rev | line source |
---|---|
0 | 1 Zeropaste::Application.routes.draw do |
40
a81fb558f954
root_path is new_paste_path. Not aliased because it's :effort:.
Edho Arief <edho@myconan.net>
parents:
8
diff
changeset
|
2 resources :pastes, :only => [:show, :create], :path => '/' |
68
bb5f98459aac
Format check requires a regex, not an array.
Edho Arief <edho@myconan.net>
parents:
66
diff
changeset
|
3 post 'pastes' => 'pastes#create', :format => /(json|xml|txt)/ |
4
23178d3de796
Slim controller (this app barely has any function)
Edho Arief <edho@myconan.net>
parents:
2
diff
changeset
|
4 root :to => 'pastes#new' |
0 | 5 end |