#3103 - cards#pay (ActionView::Template::Error) "undefined method `abbreviation' for nil:NilClass"

An ActionView::Template::Error occurred in cards#pay:

undefined method `abbreviation' for nil:NilClass
app/views/transaction_mails/card_purchased/_address.html.erb:5


Request:

  • URL : https://www.bikelink.org/cards/pay
  • HTTP Method: POST
  • IP address : 67.97.90.131
  • Parameters : {"authenticity_token"=>"Q0ZdJlveA5s5uHPqmDo95VQUhw0Qt1uTAOi0bGo0/Wl8dKWluFKjqMRYr2k8hNd9g8AOvvyk0XGS7g/ix0yHag==", "person"=>{"first_name"=>"Natalie", "last_name"=>"Leonard", "date_of_birth"=>"", "street_address"=>"", "apartment_number"=>"", "city"=>"", "state_id"=>"", "postal_code"=>"", "country_id"=>"231", "phone"=>"4154160402", "email"=>"natleonard@gmail.com", "picture_id"=>""}, "new_password"=>"[FILTERED]", "accept_agreement"=>"1", "understand_card_is_cash"=>"1", "understand_contact_rules"=>"1", "review_cost_information"=>"1", "m_transaction"=>{"first_name"=>"Natalie", "last_name"=>"Leonard", "street_address"=>"2339 Parker St Apt 1", "city"=>"Berkeley", "address_state_id"=>"6", "postal_code"=>"94704", "country_id"=>"231"}, "payment_method_nonce"=>"tokencc_bd_q35kyr_h83tzh_5r67yg_cwtnhx_3k6", "device_data"=>"{\"device_session_id\":\"83d254f614e717c4850dfd51d98d6ae3\"}", "controller"=>"cards", "action"=>"pay"}
  • Timestamp : 2022-07-13 19:23:18 UTC
  • Server : www-5.internal.bikelink.org
    • Rails root : /var/www/bikelink
  • Process: 28234

Session:

  • session id: [FILTERED]
  • data: {"session_id"=>"1f9535dd81d1e8fb7d7a9dccd7ad84ef", "_csrf_token"=>"zk027QgKwt/ewUvpaieHKaaJgmCUFZxdlKBtEIrC9ts=", "warden.user.person.key"=>[[54142], "kXebUwCL8BSzsGxBZ67r"]}

Backtrace:

app/views/transaction_mails/card_purchased/_address.html.erb:5
app/views/shared/mailers/_tag.html.erb:2
app/views/transaction_mails/card_purchased/_address.html.erb:1
app/views/transaction_mails/card_purchased.html.erb:8
app/views/shared/mailers/_tag.html.erb:2
app/views/transaction_mails/card_purchased.html.erb:6
app/views/shared/mailers/_tag.html.erb:2
app/views/transaction_mails/card_purchased.html.erb:5
app/mailers/transaction_mails.rb:25:in block (2 levels) in card_purchased'
app/mailers/transaction_mails.rb:25:in
block in card_purchased'
app/mailers/transaction_mails.rb:24:in card_purchased'
app/models/m_transaction.rb:221:in
purchase_card'
app/controllers/cards_controller.rb:573:in pay'
app/controllers/application_controller.rb:47:in
process_action'

Znovu načíst