Is cart.processing really a string? I would expect it to be boolean
where you might compare it to true or just have <% if cart.processing %>
Norm
On 02/09/2017 10:10 AM, Joe Guerra wrote:
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 %>|<% ifcart.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 [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/2ccbb634-511f-429d-a1d6-4da025344834%40googlegroups.com
<https://groups.google.com/d/msgid/rubyonrails-talk/2ccbb634-511f-429d-a1d6-4da025344834%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/14528178-4ad0-fe6c-f6cf-953987595279%40earthlink.net.
For more options, visit https://groups.google.com/d/optout.