1

アプリで FullCalendar を使用しており、予定の JSON ファイルをフィードしています。

最近いくつかの条件を導入しましたが、これはアポイントメント.json ページを読み込もうとしたときに発生するエラーです

index.json.jbuilder:15: syntax error, unexpected keyword_end, expecting end-of-input

jbuiderでjsonファイルを生成するコードは次のとおりです

json.array! @appointments do |a|
json.ignore_nill!
  json.extract! a, :id, :description, :patient_id

  if a.patient.blank? && a.description.blank?
    json.title "Appuntamento"
  end

  if a.patient.blank? && a.description.present?
    json.title a.description
  end

  if a.patient.present? && a.description.present?
    json.title a.patient.fullname_lastnameFirst + "\n" + a.description.capitalize
  end

  if a.seat.blank?
    json.color "rgb(122, 122, 122)"
  else
    json.color a.seat.color
  end

  json.start a.starting_time
  json.end a.ending_time
  json.url appointment_url(a)

end

入力の終わりが見つからないという問題がどこにあるのか、考えはありますか? 助けてくれてありがとう

4

0 に答える 0