i’m posting a promo code from a form and need to grab the relavant
information from the database to apply it properly to the amount be
paid so that the discount is applied.
the value posted is params[:promo_code][:code]
how can i grab this from the database