search for: comandancia

Displaying 3 results from an estimated 3 matches for "comandancia".

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 => ["Usuario = ?", sess...
2006 May 24
0
Problems validating form with collection_select
I have the following models: class Comandancia < ActiveRecord::Base has_many :elementos end class Elemento < ActiveRecord::Base belongs_to :comandancia validates_presence_of :nombre, :apellido_paterno, :apellido_materno, :comandancia end In the view for New Elemento I''m using <%= start_form_tag :action => ''...
2006 Apr 29
1
can i alter the _form.rhtml without have troubles to validat
...r the _form.rhtml to display a select option in the place a simple text_box, and the application work very well, but in the moment that i apply a validation in the model i get 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="ca...