Forum: Ruby on Rails foreign key select

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
j0sh (Guest)
on 2007-01-17 21:59
(Received via mailing list)
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
Roderick van Domburg (Guest)
on 2007-01-18 10:47
(Received via mailing list)
> 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/Help....
html#M000399

Roderick

--
Nedforce Informatica Specialisten B.V.
http://www.nedforce.nl
+31 (0)53 4500225
This topic is locked and can not be replied to.