I have the following code
select "sales", "price", @sale开发者_开发知识库sprice, {:selected => '#{@sales}'}
This is what is in @salesprice
[["All"], ["Sale"], ["Discount"], ["Free"]]
and when select something, and it renders the partial again, it returns whatever is this first element in the select tag :S
Any help is most appreciated, thank you
Should be:
select "sales", "price", @salesprice, {:selected => "#{@sales}"}
with double quotes around the #{@sales}
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论