resolve/refinerycms — Issue #1382: Editing a user throws a 404
Author: miskander
Created: 2012-03-01 19:56:55+00:00
State: open

I am using 2.0, latest code as of this post. To reproduce:
Create a user, click the edit icon next to his/her name and you will get a 404. I can't even see a real error in the log all I have is below. As a note, I do have custom slugs on, not sure if that makes a difference.

cache: [GET /refinery/users/user.name/edit] miss

cache: [GET /refinery/users/user.name/edit] miss
Started GET "/refinery/users/user.name/edit" for 127.0.0.1 at 2012-03-01 14:55:13 -0500
Processing by Refinery::PagesController#show as HTML
Parameters: {"path"=>"refinery/users/user.name/edit", "locale"=>:en}
Refinery::Role Load (0.3ms) SELECT `refinery_roles`.* FROM `refinery_roles` WHERE `refinery_roles`.`title` = 'Refinery' LIMIT 1
Refinery::User Load (0.3ms) SELECT `refinery_users`.* FROM `refinery_users` INNER JOIN `refinery_roles_users` ON `refinery_users`.`id` = `refinery_roles_users`.`user_id` WHERE `refinery_roles_users`.`role_id` = 1
Refinery::Page Load (1.2ms) SELECT `refinery_pages`.* FROM `refinery_pages` INNER JOIN `refinery_page_translations` ON `refinery_page_translations`.`refinery_page_id` = `refinery_pages`.`id` WHERE `refinery_page_translations`.`locale` IN ('en') AND `refinery_page_translations`.`slug` = 'refinery' LIMIT 1
Refinery::Page Load (0.5ms) SELECT `refinery_pages`.* FROM `refinery_pages` WHERE `refinery_pages`.`menu_match` = '^/404$' LIMIT 1
Rendered public/404.html (0.0ms)
Filter chain halted as :find_page rendered or redirected
Refinery::User Load (0.2ms) SELECT `refinery_users`.* FROM `refinery_users` WHERE `refinery_users`.`id` = 1 LIMIT 1
Refinery::Role Load (0.2ms) SELECT `refinery_roles`.* FROM `refinery_roles` INNER JOIN `refinery_roles_users` ON `refinery_roles`.`id` = `refinery_roles_users`.`role_id` WHERE `refinery_roles_users`.`user_id` = 1
Completed 404 Not Found in 15ms (Views: 3.9ms | ActiveRecord: 2.7ms)