On 13 Jul 2011, at 20:23, Vijay Dev wrote:
> Given a school model and a student model with the school having a has_many
> relation to student:
>
> has_many :students, :conditions => proc { "year_id=#{send(:active_year_id)}"
> }
>
> where active_year_id is a method defined in the school mo
Given a school model and a student model with the school having a has_many
relation to student:
has_many :students, :conditions => proc {
"year_id=#{send(:active_year_id)}" }
where active_year_id is a method defined in the school model, I'm
encountering an error that "active_year_id is undefi
2 matches
Mail list logo