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 %>
<div id="checkout">
<h1><%= t("checkout")%></h1>
<%= checkout_progress %>
<br clear="left" />
<%= render "shared/error_messages", :target => @order %>
<%if @order.state != "confirm"%>
<%= hook :checkout_summary_box do %>
<div id="checkout-summary" class="alt">
<%= render 'summary', :order => @order %>
</div>
<% end %>
<%end%>
<div id="address_form_container">
<%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
<%= render @order.state, :form => form %>
<input id="post-final" type="submit" style="display:none"/>
<% end %>
</div>
</div>
Any ideas?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/3zxTdricce4J.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/QMOLhp6QU4AJ.
> if state_index < current_indexeither one or the other is nil, that's your problem.
Hi Oscar,
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MfdUXSarhFAJ.
No, and we can't help you here because it really depends on the business logic. I recommend you find someone (offline) experienced that helps you with that problem.