Matthias Sch. wrote:
>
> t.each do |term|
> @termi = Term.find_by_bezeichnung(term)
> @term << @termi.id
> end
>
t.each do |term|
@termi = Term.find_by_bezeichnung(term)
@term << @termi.id
end
kannst du ersetzen durch:
@term = Term.find_by_bezeichnung(term).collect(&:id)
in @term hast du dann eine Array mit den Term.ids.
Zum zweiten Teil:
Sim.find(:all, :order => 'value', :limit => 10)
ortwin
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug