레일에서 루비를 처음 사용했습니다. 회원이 있고 모든 회원이 많은 건강 기록을 보유하고 있으며 허브가 홈 페이지 인 HealthyGrocery/app/views/members/hub.html.erb에 새 건강 기록을 추가하는 버튼을 만들었습니다. <%= button_to "new health record", redirect_to= 'http://localhost:3000/health_record/new', :method => "get" %>
by 이 버튼을 HealthyGrocery/app/views/health_record/new.html.erb 에있는 "localhost : 3000/health_record/new"링크로 리디렉션하고 서버를 실행하고 버튼을 눌러 새로운 상태로 만들 때 버튼을 누릅니다. 이 오류를 제공합니다. 내게이 오류가 발생했습니다. screenshot of the error레일에서 루비의 방향 전환 오류