virtual column for drop down in the ruby on rails.
        Posted  
        
            by pramod
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by pramod
        
        
        
        Published on 2009-12-11T13:18:43Z
        Indexed on 
            2010/05/23
            22:00 UTC
        
        
        Read the original article
        Hit count: 332
        
How to place a drop down for the virtual column, in the ruby on rails. The virutal column does not exist in my table , but I want to get the value from the drop down ,when user saves the data.
for example,
product_price is a virtual column , which doesn't exist in my database table. But I would like to have a dropdown, with product price to be displayed from another table. And when user selects the product_price, the selected product_price should be gettable in an object as self.product_price.
Virtual column for labels is working fine, but for drop down its not working for me..any info woud be Thankful...
© Stack Overflow or respective owner