Ruby on Rails初心者です。
独学で学んでおります。
TODOリストを作っております。
編集の機能を作っている際になりました。
このエラーが出たので、articlesのフォルダに同名のhtmlを作成したのですが、解決しません。
どなたか詳しい方ぜひご教授いただきたく思います。
発生している問題・エラーメッセージ
Template is missing
Missing template articles/update, application/update with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in: * "/home/ubuntu/workspace/app/views"
```ここに言語を入力
def find(*args)
find_all(*args).first || raise(MissingTemplate.new(self, *args))
end
def find_all(path, prefixes = [], *args)
edit.html.erb ```ここに言語を入力 <%= form_for :article, url: article_path, method: :patch do |f| %> <% if @article.errors.any? %> <%= @article.errors.count %>エラー<br> <% @article.errors.full_messages.each do |msg| %> <%= msg %><br> <% end %> <% end %> <%= f.text_field :title %><br> <%= f.text_area :text %><br> <%= f.submit %> <% end %>
article_controller.rb
def edit @article = Article.find params[:id] end
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。