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
같은 골격에 의해 생성
양식 대신/관리/통화의 새/관리/통화 /이다 보인다.
내가 뭘 잘못 했니?
감사합니다.
감사합니다. –
사람들이 귀하의 질문에 답하는 해결책에 녹색 화살표를 맞추는 것이 일반적으로 적절하다고 생각됩니다. 다행입니다. : D – John
7 분 안에 답을 수락 할 수 있습니다 :) –