1

나는 경로 구조를 가지고있다. 내가 = form_for admin_currencies_path(@currency)= form_for @currency을 변경했습니다하지만 여전히 조치를 form`s로 인해 실패 경로 도우미는

= form_for @currency do |f| 
    - if @currency.errors.any? 
    #error_explanation 
     %h2 
     = pluralize(@currency.errors.count, "error") 
     prohibited this currency from being saved: 
     %ul 
     - @currency.errors.full_messages.each do |msg| 
      %li= msg 
    .field 
    = f.label :title 
    %br/ 
    = f.text_field :title 
    .field 
    = f.label :iso_code 
    %br/ 
    = f.text_field :iso_code 
    .actions 
    = f.submit 

같은 골격에 의해 생성

양식 대신/관리/통화의 새/관리/통화 /이다 보인다.

내가 뭘 잘못 했니?

감사합니다.

답변

3

시도 form_for [:admin, @currency].

+0

감사합니다. –

+1

사람들이 귀하의 질문에 답하는 해결책에 녹색 화살표를 맞추는 것이 일반적으로 적절하다고 생각됩니다. 다행입니다. : D – John

+0

7 분 안에 답을 수락 할 수 있습니다 :) –

관련 문제