0
몇 가지 입력 사항이있는 간단한 레일 앱에 간단한 양식이 있습니다.양식 입력이 데이터베이스에 전달되지 않음
그들은 모두이 일을 제외하고, 미세 제출
<%= f.input :trip_price, as: :string %>
에러가 발생되지 양식은 제출하고, DB에서이 값은 전무하다.
다음은 그와 관련이 있다면 내가 simple_form을 사용하고 schema.rb
create_table "routes", force: true do |t|
t.string "name"
t.string "operator"
t.string "startPoint"
t.string "endPoint"
t.string "description"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "trip_price"
end
관련 비트입니다. 정수와 관련이 있을지도 모릅니다.
미리 감사드립니다.
서버/웹 콘솔에서 오류가 있는지 확인 했습니까? 전의. 보내진 POST 요청의 응답은 무엇입니까? – qubit