I am developing an Rails 3.2 app. I need to get the values from the URL params and add them to an array so that I can use .to_sentence to print them out (for search).
These are my params (there are more on some search pages).
search=true&title=s&client=&tags=&status=&start_date=&end_date=
I tried this but that does not get only the values but both key and value.:
params.map(&:to_s)
Update
I figured out how to get the values now but I need not to map values that are nil.
<%= params.each_value.map{|value| value }.to_sentence %>