Ruby on Rails Thursday, February 9, 2017

I can't get my embedded  if statement working  in a html table.

here's one row of my table from my cart index...

<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
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment