{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/7832950d4b30f5fd741d1808aab82191?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7832950d4b30f5fd741d1808aab82191","url":"https://api.github.com/users/regdog","login":"regdog","id":59602},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-03T03:18:32Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/plataformatec/devise/issues/1412","body":"I have a navigation menu partial template in /shared folder, which includes a link to edit user profile. When the user profile link is clicked, it renders error as below:\r\n\r\nActionController::RoutingError in Users/registrations#edit \r\nNo route matches {:controller=>\"users/projects\", :actoin=>:index}\r\n\r\n\r\nhere is the route\r\n\r\n  # route for user profile edit\r\n  devise_for :users, :controllers => {::registrations => 'users/registrations'} do\r\n    get 'profile', :to => \"users/registrations#edit\", :as=>'profile'\r\n  end\r\n\r\n  # route projects, plans, challengs\r\n  resources projects, plans, challenges\r\n\r\n\r\nhere is the navigation menu\r\n\r\n# /shared/_navigation.html.erb\r\n<div class=\"navcontainer\">\r\n  <ul class=\"menu\">\r\n\t<li>\r\n\t  <%= link_to \"Projects\", projects_path %>\r\n          <div class=\"bottombar\"></div>\r\n\t  <span id=\"subnav_posts\" class=\"submenu\">\r\n            <%= link_to \"All Projects\",projects_path, :id => current_page?(:controller=>'projects', :action=>'index') ? \"active\" : \"\" %>\r\n            <%= link_to \"Plans\", plans_path, :id => current_page?(:controller=>'plans') ? \"active\" : \"\" %>\r\n            <%= link_to \"Challenges\", challenges_path, :id => current_page?(:controller=>'challenges') ? \"active\" : \"\" %>\r\n      </span>\r\n\t<li>\r\n\t  <%= link_to \"My Profile\", profile_path %>\r\n          <div class=\"bottombar\"></div>\r\n\t  <span id=\"subnav_profile\" class=\"submenu\">\r\n            <%= link_to \"Edit account\", profile_path, :id => current_page?(:controller=>'users/registrations', :action=>'edit') ? \"active\" : \"\"  %>\r\n            <%= link_to \"Sign Out\", destroy_user_session_path, :method => 'delete' %>\r\n          </span>\r\n\t</li>\r\n  </ul>","html_url":"https://github.com/plataformatec/devise/issues/1412","number":1412,"title":"Devise RoutingError","id":2129014,"created_at":"2011-11-03T03:18:32Z"},"action":"opened"}