Interestingly if I change this...

class Booking < ActiveRecord::Base
  has_event_calendar :start_at_field => 'arrival_date', :end_at_field => 
'departure_date'

to simply

has_event_calendar


I get this error...

Mysql::Error: Unknown column 'end_at' in 'where clause': SELECT * FROM 
`bookings` WHERE (('2010-10-30 23:00:00' <= end_at) AND (start_at< 
'2010-12-05 00:00:00'))  ORDER BY start_at ASC


Which suggests the plugin is working it just doesn't like my customised 
start and end syntax?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to