if you just want to go back to page after changing password try

redirect_to :back

-- 
Marcin Raczkowski
---
Friends teach what you should know
Enemies Teach what you have to know