Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的路线文件。
devise_for :users, :path => 'accounts' resources :users do resources :articles end
如何在主页上显示用户的所有文章?
试试这个(HAML):
- current_user.articles.each do |article| = article.name
您必须确保在您的articles_controller.
articles_controller