OSDN Git Service

today's work. songs new, create, edit
[praisedb/praisedb.git] / config / routes.rb
index 1ba78b2..5e12c7e 100644 (file)
@@ -1,6 +1,8 @@
 ActionController::Routing::Routes.draw do |map|
   # The priority is based upon order of creation: first created -> highest priority.
-  map.resources :songs, :collection => { :search => [:get], :list => [:get] }
+  map.resources :songs,
+    :collection => { :search => [:get], :list => [:get] },
+    :member => { :print => [:get] }
 
   # Sample of regular route:
   #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'