search for: catelemento_comandancia

Displaying 2 results from an estimated 2 matches for "catelemento_comandancia".

2006 Apr 29
1
can i alter the _form.rhtml without have troubles to validat
...t a error. the code is the next in the controller: def new @catelemento = Catelemento.new @komandancias = Catcomandancia.find(:all) end in the _form.rhtml <%= error_messages_for ''catelemento'' %> <!--[form:catelemento]--> <p><label for="catelemento_Comandancia">Comandancia</label><br/> <select id="catelemento_Comandancia" name="catelemento[Comandancia]"> <%for koman in @komandancias %> <option value="<%= koman.id %>"><%= koman.Nombre %></option> &lt...
2006 Apr 28
7
a simple problem but difficult
how can i access to a collection that 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