Displaying 1 result from an estimated 1 matches for "nivelesacceso".
2010 Nov 11
5
ActiveRecord query
...uds where usuario_id=?"
but don''t find a way of used it in rails
except
find_by_sql.
There is a another way??
class Usuario < ActiveRecord::Base
belongs_to :persona
has_many :solicituds, :dependent => :destroy
has_many :convenios, :through => :solicituds
has_many :nivelesacceso
has_one :nomina
end
class Convenio < ActiveRecord::Base
has_many :solicituds, :dependent => :destroy
has_many :personas, :through => :solicituds
validates_presence_of :nombre, :serie, :descripcion
validates_uniqueness_of :serie
validates_format_of :serie, :with => /cci|cue/...