Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Part of the form
- <%= f.select (:shipping, [
- ['FedEx Home Delivery (3 business days) - $0', '0'],
- ['FedEx Overnight Shipping - $15.00', '15.00'],
- ]
- ) %>
- </div>
- <div class="bg">
- <div class="total"><strong>Order Total: $<%= @order_total_six + @shipping %></strong></div>
- ## Error I am getting
- can't convert nil into String
- TypeError in Public#order_page
- Showing app/views/public/order_page.html.erb where line #52 raised:
- can't convert nil into String
- Extracted source (around line #52):
- 49: </div>
- 50:
- 51: <div class="bg">
- 52: <div class="total"><strong>Order Total: $<%= @order_total_six + @shipping %></strong></div>
- 53: </div>
- 54: </div>
- 55: </div>
- ## Notes:
- I am trying to add the value from the shipping together. The problem might be I am trying
- to add the symbol (:shipping) with the instance variable I defined in my controller.
- I thought :symboles turned into instance variables in the view.
Add Comment
Please, Sign In to add comment