I’m working with a simple select like this:
<%= select(@file, @file.file_id, File.all.collect {|p| [ p.name, p.id ] }) %>
However, I would like to add some conditions to that “all”…
for example
“id != @file.id”
(I don’t want the current file to be shown in the select list).
how can I do that?
Thank you!
Try