search for: all_courses

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

2008 Aug 25
2
maths not working (can't get this)
...discounted / one full). Be grateful for answers... The total price and discounted price are not calculated correctly and the duration is not coming through to the output page. --------------- class Course < ActiveRecord::Base has_one :enquiry attr_accessor :duration_in_weeks def self.all_courses find(:all) end def self.active_courses # find(:all) # find(:all, :conditions => ["active = ?", true], :order => ''created_at DESC'', :limit => 5) find(:all, :conditions => {:archive => false}, :order => ''display_order ASC'...