Rails full_messages missing label -
For any reason the rail is missing labels for full_messages and is just error in the field in which it occurs without any clue For related to:
[3] pry (# & lt; spree :: CheckoutController & gt;) & gt; @order Errors => # & Lt; ActiveModel :: Errors: 0x007fce1caa8218 @ support = # & lt; Spree :: Order ID: 87, Number: "R442456123", ITEM_TOTAL: # & lt; BigDecimal: 7fce1c57a4a8, '0.6495E2', 18 (36)>, Total: # & LT; BigDecimal: 7fce1c5cd0e0, '0.6495E2', 18 (27) & gt;, state: "address", adjustment_total: # & lt; BigDecimal: 7fce1c5cd270, '0.0', 9 (27)>, user_id: 57, completed_at: zero, bill_address_id: zero, ship_address_id: zero, payment_total: # & lt; BigDecimal: 7fce1cb184a0, '0.0', 9 (27) & gt; shipping_method_id: zero, shipment_state: zero, payment_state: zero, email: "Nick @ 1- night.co.nz", special_directories: zero, created_at: " 2014-10-10 09:47:21 ", updated_at:" 2014-10-10 09:47:24 ", currency:" USD ", last_AP_resource:" 127.0.0.1 ", created_by_id: 57, channel:" competing " , TAX_TOTAL Wk: # & LT; BigDecimal: 7fce1cb217d0, '0.0', 9 (27) & gt; & Gt;, @ messages = {: "bill_address.phone" = & gt; ["Can not be empty"] ,: "ship_address.phone" => ["Can not be empty"]}> [4] Prai (# & lt; Spree :: CheckoutController & gt;) & gt; @order.rars.full_message_ & gt; ["Can not be empty", "can not be empty"] I've added attributes in en.yml - how do I get the full message to include the model name : ["Billing address phone can not be empty", "shipping address phone can not be empty"] Using the following:
Mani 'rails', '4.0.2' gem 'spree', '2.1.4'
For me this is my NLL. There was an issue of being in (for a long time due to a mistake) for the following.
Errors: Format: "% {message}" Labels are properly displayed after deletion.
Comments
Post a Comment