Foreign key select


#1

hi all
how can i add a select of categories in my form if i have a relation
:photo belongs_to :category?
i don’t know how can i access to category model from photo.rb
tnx


#2

how can i add a select of categories in my form if i have a relation
:photo belongs_to :category?

http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.
html#M000399

Roderick


Nedforce Informatica Specialisten B.V.
http://www.nedforce.nl
+31 (0)53 4500225