Need Help With Datebock plugin

dlo
Thu, 22 Mar 2007 04:12:07 -0000

Hi everyone,

I''m using currently Ruby 1.8.4, Rails 1.2.3, Rake 0.7.2, Engines 1.2,
&
Datebocks 2.03.  I followed the instructions on
http://datebocks.inimit.com/  I''m getting this error undefined method
`engine_image''.

Here is the code:


Start Date:
  <%= datebocks_field(''table_rate'',
''date_column'') %>


I added ''include DatebocksEngine'' to both the application and
application helper, also, I added

<%= engine_javascript "datebocks_engine", "calendar",
"lang/calendar-en", "calendar-setup" %>
  <%= engine_stylesheet "datebocks_engine",
"calendar-win2k-cold-1.css"
%>

to my layout.

Lastly I tried adding Engines.start :datebocks to my environment.rb, but
that doesn''t work with Engines 1.2


Did anyone successfully get Datebocks to work on Engines 1.2?  Is there
a way to revert back to an older version?  Or if someone did get it to
work with different versions, could you please tell me how to install
older versions of Rails or Engines to get this to work. I do not have
any previous versions of Rails installed on my computer. There really
isn''t that much about Datebocks and Engines 1.2.  Thanks in advance

dlo

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