search for: schedule_pag

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

Did you mean: schedule_dag
2006 Feb 28
5
Problem with paginate, include and foreign keys
...orks 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(''day'', start_date) bet...
2006 Jan 27
2
pagination and nested parameters
Hi all, I''ve got a couple select_date form helpers. For pagination, I need to submit these form values. I tried this, but it''s apparently wrong: link_to ''Previous page'', { :page => @schedule_pages.current.previous, :params => {:date => {:month => @month}, :date => {:year => @year}} } I tried a few variations, but no luck. What''s the proper way to pass nested parameters? Thanks, Dan