Displaying 2 results from an estimated 2 matches for "active_courses".
2008 Aug 25
2
maths not working (can't get this)
...rs...
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'', :limit => 100)
end
def self.old_...
2008 Aug 31
6
why's my course_duration being reset
...#39;',
:order => ''requested_start_date ASC'')
# entity = MyEntity.find_all_by_active(true)
@enquiries = Enquiry.find_all_by_responded(false)
end
def show
@enquiry = Enquiry.find(params[:id])
end
def new
@enquiry = Enquiry.new
@courses = Course.active_courses
@accomodations = Accomodation.active_accomodation
# @enquiry.course_booking_fee = Course.registration_fee
render :layout => "welcome"
end
def create
@enquiry = Enquiry.new(params[:enquiry])
@courses = Course.active_courses
@accomodations = Accomodation....