HANCO

ActionController::Unkown Format in blahblahController#new 본문

웹개발/Ruby on Rails

ActionController::Unkown Format in blahblahController#new

HANCO 2018. 8. 12. 15:48

에러 해결 


새로운 컨트롤러를 생성하고 이러한 에러가 발생할때가 있다.


이 에러 때문에 하루를 날려버렸는데 알고보니 별거 아닌 에러였다.



https://edgeguides.rubyonrails.org/getting_started.html


사이트에 컨트롤 F(찾기)를 누르고 검색창에 저 에러를 검색해보자


그럼 에러에 대한 영문 설명이 나온다.





대략적인 설명은 그렇다.


The first part identifies which template is missing. In this case, it's the articles/new template. Rails will first look for this template. If not found, then it will attempt to load a template called application/new. It looks for one here because the ArticlesController inherits from ApplicationController.


첫번째 부분의 템플릿이 생략되어있다는 메시지가 보일 텐데 그 생략된 view를 만들어 주면 된다..


해결



HANCO 입니다.~