# Using match with namespace

**URL:** <https://www.ruby-forum.com/t/using-match-with-namespace/193363>\
**Category:** Rails\
**Created:** [August 16, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/using-match-with-namespace/193363 "2010-08-16T17:26:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oksana\_Utyasheva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/bbe5ce/32.png) [@Oksana\_Utyasheva](https://www.ruby-forum.com/u/Oksana_Utyasheva)\
**Post date:** [August 16, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/using-match-with-namespace/193363/1 "2010-08-16T17:26:52Z")

</div>

I have namespace “admin” and controller “Accounts” with namespace  
“Admin”.  
And Controller Accounts has method change\_password.  
I want have route admin/accounts/change\_password.

For this I try using member

namespace :admin do

resources :accounts do  
member do  
get :change\_password  
end  
end

end

But my method “change\_password” does not have identificator(1) (admin/  
accounts/1/change\_password/).

What can I use for this?
