Displaying 1 result from an estimated 1 matches for "catacceso".
2006 Apr 28
7
a simple problem but difficult
...was created in the same control
and the data that a want to access isn?t the id
the collection has : id, usuario, comandancia
comandancia is the data to access
the question is how to access comandancia in @acceso
this code is wrong :
def new
@catelemento = Catelemento.new
@acceso= Catacceso.find(:all,
:conditions => ["Usuario = ?",
session.[:user_id]])
@komandancias = Catcomandancia.find(:all,
:conditions => ["id = ?",
@acceso.Comandancia ])
end
--
Posted via...