を持つことを期待しないでくださいそれが好き:足場ルートはIDの
link_to article.name, manager_articles_path(id: article.id)
の代わりに、レール4の方法:
私はレール5つのルートがレールとして動作するように作ることができる方法をlink_to article.name, manager_articles_path(article)
4人?
edit_article GET /articles/:id/edit(.:format) articles#edit
article GET /articles/:id(.:format) articles#show
PATCH /articles/:id(.:format) articles#update
PUT /articles/:id(.:format) articles#update
DELETE /articles/:id(.:format) articles#destroy
ありがとうございます。レールresource
とresources
で
routes.rbを
Rails.application.routes.draw do
root 'home#index'
resource :articles
end
ちょっと記事の 'routes.rb'コードを表示してください。 –
@ABPrimeが投稿を更新しました。 – rmagnum2002