Hello I’m a newbie,
Our server went down recently and now I’m getting page not found when I try to purchase a product.
Ruby 1.9.3, Rails 3.21
Here’s the information from the log file.
ActionView::Template::Error (comparison of Fixnum with nil failed):
3: <% end %>
4: <div id="checkout">
5: <h1><%= t("checkout")%></h1>
6: <%= checkout_progress %>
7: <br clear="left" />
8: <%= render "shared/error_messages", :target => @order %>
9: <%if @order.state != "confirm"%>
app/helpers/checkout_helper.rb:16:in `<’
app/helpers/checkout_helper.rb:16:in `checkout_progress’
app/helpers/checkout_helper.rb:9:in `map’
app/helpers/checkout_helper.rb:9:in `checkout_progress’
app/views/checkout/edit.html.erb:6:in `_app_views_checkout_edit_html_erb___1936024257_23456254125680_0’
app/views/checkout/edit.html.erb
<% content_for :head do %> <%= javascript_include_tag ‘checkout’, ‘/states’ %> <% end %>
<%= t("checkout")%>
<%= checkout_progress %><%= render "shared/error_messages", :target => @order %> <%if @order.state != "confirm"%> <%= hook :checkout_summary_box do %>
Any ideas?