<td><%= cart.created_at.strftime("%m/%d/%Y") %> | <%= cart.product_id %> | <% if cart.processing == 'true'%> <%= Processing order %> <% end %></td>
basically I want to indicate when an item is being processed in the cart...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2ccbb634-511f-429d-a1d6-4da025344834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<td><%= cart.created_at.strftime("%m/%d/%Y") %> | <%= cart.product_id %> | <%= 'Processing order' if cart.processing == 'true'%></td>
Also, why is cart.processing returning a string? (Or why are you testing the value is 'true'?) It would be more natural to have cart.processing? be truthy.
-Rob