Guest User

Untitled

a guest
May 25th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. NoMethodError in Admin/orders#show
  2.  
  3. Showing admin/orders/show.html.erb where line #9 raised:
  4.  
  5. You have a nil object when you didn't expect it!
  6. The error occurred while evaluating nil.first_name
  7.  
  8. Extracted source (around line #9):
  9.  
  10. 6: <h3>Billing Address</h3>
  11. 7: <div class="box">
  12. 8: <p>
  13. 9: <strong><% @order.billing_address.first_name %> <% @order.billing_address.last_name %></strong>
  14. 10: <br/>
  15. 11: <%= @order.billing_address.street_1 %>
  16. 12: <br/>
Add Comment
Please, Sign In to add comment