<%= link_to "Editar perfil", edit_user_path(current_user),:remote => true %>
我尝试在div 1中渲染部分,但这不是渲染,错误是:
Started GET "/user/1/edit" for 127.0.0.1 at Tue Jan 15 19:33:17 -0200 2013
Rendered /Library/Ruby/Gems/1.8/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.4ms)
我不知道哪里出错了,我试着用这个:
的问题不是改变,当我点击,我使
edit.js.erb
$("#adm_content").html("<%= render :partial =>'users/edit' %>");
但没有发生,我看到的路线和是正确的:
new_user GET /user/new(.:format) user#new
edit_user GET /user/:id/edit(.:format) user#edit
user GET /user/:id(.:format) user#show
什么是错误的,当我点击出现错误。
谢谢我同意把单数的路由名改成复数,把:user改成:users,谢谢。