Match an option in select form with boolean values
===

I have the following piece of code 

    %br
    = f.label :active, 'Status'
    = f.select :active, ['Active','Inactive']

Symbol :active is a boolean type var. How can i match Active => 1, and Inactive => 0 , for the database adding. 

Sorry for the newbie question, but i can't figure it out. 