저는 방금 발전기를 실험하기 시작했습니다. 내 생성 된 뷰 템플릿 중 하나, 난과 같이 render
를 호출 할 :레일 : 생성기 내에서 렌더링 호출
(erb):1:in `template': undefined method `render' for #<Slim::Generators::ScaffoldGenerator:0x000000041b2a20> (NoMethodError)
이 레일에서 render
를 호출 정말 능력이 있습니다 :
index.js.slim
transition("#main", "<%= escape_javascript(render 'index') %>");
내가 발전기를 사용하려고 할 때이 오류가 발전기 내에서? 아니면 내가 잘못하고있는거야?