Select Helper Array of Array + Filter

Noob alert!

Hi, I am having trouble figuring out how to filter a select helper. The following shows all of the rows in the table but I would like to filter the collection from the list_name column (:list_name => "Project Status"):

@project_status = Valuelist.all.collect {|s| [s.list_value,s.id]}

Thanks in advance, James

Use Valuelist.where( .. ).collect {...

I think it would be worth while working through some tutorials such as railstutorial.org, which is free to use online, to get the basics of rails.

Colin

Thanks Colin, worked a treat!

I have am going through a the railstutorial.org tutorial atm and have been through some others. To date none had dealt with my situation even though it was 'obvious'. Too much learning after my day job.

Thanks once again, James.