Re: Need Help With Datebock plugin

Conrad Taylor
Thu, 29 Mar 2007 00:55:07 -0000

Hi dlo, I was able to successfully install it.  BTW, I was using Ruby
1.8.6, Rails 1.2.3, Engines 1.2, and Rake 0.7.2.  It took me about 20
minutes to get a test application up and operational using the most
current version of Datetime Toolbocks.

-Conrad

On 3/21/07, dlo
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
>
> 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/.