Help with the Depot App

Both the condition is not satisfied so u r getting missing template error. @local.status will have the string value. You are comparing the string value with integer.

try like this @local.status.to_i == 0 .

Cosmas Atha wrote:

It wouldn't necessarily be a string. It's coming from the model. But you're right, if it is a string rails will be looking for purchase.rhtml