Displaying 2 results from an estimated 2 matches for "school_year".
2006 Feb 08
1
Weird validation issue
...oking.camp.camptype == Camptype.find(:first,
:conditions => [ ''name = ?'', "Children''s Camp"]) or
c.booking.camp.camptype == Camptype.find(:first, :conditions => [
''name = ?'', ''Adventure Camp'']) ) }
validates_presence_of :school_year, :if => Proc.new { |c|
!c.booking.nil? and ( c.booking.camp.camptype == Camptype.find(:first,
:conditions => [ ''name = ?'', "Children''s Camp"]) or
c.booking.camp.camptype == Camptype.find(:first, :conditions => [
''name = ?'', ''A...
2006 Jun 23
0
Date class giving errors
...e #10):
7: <p> <%= @student.full_contact_info %></p>
8: <p> Birthday:
9: <%= # BUG - This doesn''t work for some reason
10: Date.today
11: %><br />
12: Gender: <%= @student.full_gender %><br />
13: School Year: <%= @student.school_year %>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/1.8/date.rb:591:in `new0''
/usr/lib/ruby/1.8/Date.rb:703:in `today''
#{RAILS_ROOT}/app/views/student/show.rhtml:10:in
`_run_rhtml_student_show''
/usr/lib/ruby/1.8/date.r...