Foreign key select

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs