ActiveScaffold Integeration

2 views
Skip to first unread message

brewpoo

unread,
Oct 1, 2007, 8:44:44 AM10/1/07
to Ruby on Rails: DHTML Calendar
I am running ActiveScaffold 1.1. ActiveScaffoldTools and
DhtmlCalender plugin installed. I have included the following in my
controller:

active_scaffold :circuit do |config|
columns[:date_disconnected].form_ui=:calendar
end

The calender.jpg is showing next to the field but does not pop up the
calendar when clicked. I get this error in the javascript error
console:

Error: str has no properties
Source File: http://localhost:3000/javascripts/dhtml_calendar/calendar.js?1191241858
Line: 1600

Any ideas?

Thanks

CCH

unread,
Oct 1, 2007, 9:51:16 AM10/1/07
to Ruby on Rails: DHTML Calendar
Hi BrewPoo

Did you add this to your layout rhtml
<%= javascript_include_tag :defaults %>
<%= active_scaffold_includes %>
<%= dhtml_calendar_includes %>

brewpoo

unread,
Oct 1, 2007, 10:28:24 AM10/1/07
to Ruby on Rails: DHTML Calendar
Yes I have the includes. Interestingly the calendar pops up in the
subform context but does not function.
Reply all
Reply to author
Forward
0 new messages