我想做点什么
authenticated :user do root :to => "users#show" end
但是如何将当前用户的ID传递给此?
谢谢
在routes.rb中:
root to: 'users#current_user_home'
在users_controller.rb中:
def current_user_home redirect_to current_user end