Maksudnya gini ya?
Controller :
@articles = Article.find_recent
@categories = Category.find(:all).map {|p|[ p.name, p.id ] }
View :
select(:article, :category_id, @categories, { :include_blank => true })
----
Irfani
http://irfani.web.id
Y! irfani_s
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
Joshua Jackson
Sent: Friday, July 18, 2008 4:57 PM
To: [email protected]
Subject: [id-ruby] Nampilin record one-to-many di select
Dear all,
Bagaimana kita nampilin list of records di template erb kita dengan
Rails 2.0. Mohon pencerahannya.
terima kasih
[Non-text portions of this message have been removed]