# Nested resource routes with members

**URL:** <https://www.ruby-forum.com/t/nested-resource-routes-with-members/105814>\
**Category:** Rails\
**Created:** [June 3, 2007, 9:57am UTC](https://www.ruby-forum.com/t/nested-resource-routes-with-members/105814 "2007-06-03T09:57:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [June 3, 2007, 9:57am UTC](https://www.ruby-forum.com/t/nested-resource-routes-with-members/105814/1 "2007-06-03T09:57:25Z")

</div>

hi,

lets say I have a Project that can have many Pages

Pages are acts\_as\_list so I have extra actions to move one “higher”  
or “lower” in the list

I have this in routes.rb

map.resources :pages,  
:member =\> { :higher =\> :put,  
:lower =\> :put }

map.resources :projects do |project|  
project.resources :pages, :name\_prefix =\> “project\_” # /projects/  
X/pages/Y  
end

this works fine for all except the member ones  
for example, I can edit a page with GET /projects/99/pages/123/edit

but when i do PUT /projects/99/pages/123/higher  
I get “no route found”

I get no method on: project\_higher\_page\_path(“99”,“123”)  
although this is fine: project\_edit\_page\_path(“99”,“123”)

PS I am using Edge but not using the new routes resources. If this  
can be solved with that, i’d be happy to know how to do it that way.

tia

linoj
