added required role for conntrollers. tags has albums. search tags/title/desc in album
This commit is contained in:
parent
f29cc5efaf
commit
c4966f7bc6
7 changed files with 51 additions and 19 deletions
|
@ -9,7 +9,7 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.resources :photos, :collection => { :untouched => :get }
|
||||
map.resources :albums, :collection => { :untouched => :get }, :member => { :upload => :get}, :has_many => [ :photos ]
|
||||
map.resources :collections
|
||||
map.resources :tags, :has_many => [ :photos ]
|
||||
map.resources :tags, :has_many => [ :photos, :albums ]
|
||||
|
||||
map.namespace :admin do |admin|
|
||||
admin.resources :users
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue