map.namespace :admin do |admin|
admin.resources :egalleries, :has_many => :egalleryps
end
rake routes generuje:
admin_egallery_egalleryps GET /admin/egalleries/:egallery_id/egalleryps(.:format) {:action=>"index", :controller=>"admin/egalleryps"}
POST /admin/egalleries/:egallery_id/egalleryps(.:format) {:action=>"create", :controller=>"admin/egalleryps"}
new_admin_egallery_egalleryp GET /admin/egalleries/:egallery_id/egalleryps/new(.:format) {:action=>"new", :controller=>"admin/egalleryps"}
edit_admin_egallery_egalleryp GET /admin/egalleries/:egallery_id/egalleryps/:id/edit(.:format) {:action=>"edit", :controller=>"admin/egalleryps"}
admin_egallery_egalleryp GET /admin/egalleries/:egallery_id/egalleryps/:id(.:format) {:action=>"show", :controller=>"admin/egalleryps"}
PUT /admin/egalleries/:egallery_id/egalleryps/:id(.:format) {:action=>"update", :controller=>"admin/egalleryps"}
DELETE /admin/egalleries/:egallery_id/egalleryps/:id(.:format) {:action=>"destroy", :controller=>"admin/egalleryps"}
a interesowało by mnie coś takiego
aby dodać do egalleryps akcję move czyli jakoś tak powinno być - ,collection => {:move => :put}