search for: schedules_controller

Displaying 2 results from an estimated 2 matches for "schedules_controller".

Did you mean: schedulecontroller
2006 Feb 28
5
Problem with paginate, include and foreign keys
...rt_date end The ActiveRecord portion works as expected: condition = "date_trunc(''day'', start_date) between date(?) and date(?) - 1" Schedule.find( :all, :include => ''start_date'', :conditions => [condition, first,last] ) However, in schedules_controller.rb, this fails: @schedule_pages, @schedules = paginate( :schedules, :include => [''start_date''], :conditions => [condition, first, last] ) PGError: ERROR: column "start_date" does not exist : SELECT COUNT(*) FROM schedules WHERE (date_trunc(''...
2006 Mar 28
4
Problem with ActiveRecord, create, save, and Oracle adapter?
Hi all, Ruby 1.8.4 Rails 1.1 OCI8 0.1.14 I think I''m hitting an issue with ActiveRecord::Base#save and the Oracle adapter. Line 158 in the schedules_controller.rb file is simply: 158: if @schedule.save 159: flash[:notice] = ''Schedule was successfully created.'' 160: redirect_to :action => ''list'' 161: else 162: render :action => ''new'' 163: end Here''s the error (which is the same as...