search for: asignatura_ids

Displaying 1 result from an estimated 1 matches for "asignatura_ids".

2013 May 13
1
RAILS GET IDS
...-------->ASIGNATURA_ID--_MALLAS_ID--_NIVELS_ID In the view MALLA, i list my asignaturas, mallas and niveles, and in the controller MALLA i want to save the arrays to my model asignaturas_mallas_nivels. class Malla < ActiveRecord::Base attr_accessible :mall_estado , :clase_id, :nivel_ids, :asignatura_ids, :nivel_id belongs_to :clase has_many :asignaturas_mallas_nivels has_many :asignaturas, :through => :asignaturas_mallas_nivels has_many :nivels, :through => :asignaturas_mallas_nivels end class Asignatura < ActiveRecord::Base attr_accessible :asig_abreviat, :asig_nombre has_ma...