Datetime toolbocks plugin

Plugin details

Datetime Toolbocks is a very simple Ruby on Rails Engine which provides a helper method to instantly deploy the Datetime Toolbocks into your application.

The Datetime Toolbocks also includes JSCalendar as a subset of functionality. It is in the long term goal to enable this plugin to be able to be used as a whole, or by accessing each part. Whether that is the JSCalendar with a default text input box, advanced Datetime Toolbocks input without JSCalendar, or with both combined which is currently the default.

This software package is developed using the Engines plugin. To find out more about how to use engines in general, go to http://svn.rails-engines.org for general documentation about the Engines mechanism.

Websitehttp://datetime.toolbocks.com Repositoryhttp://svn.toolbocks.com/plugins/datetime_toolbocks/ Author Nathaniel Brown Tags FormHelper, Calendar, Engine LicenseLGPL

Documentation

Install the plugin:
ruby script/plugin install http://svn.toolbocks.com/plugins/datetime_toolbocks/

Install the Engines plugin.

script/plugin install http://svn.rails-engines.org/plugins/engines/



Add the following within the "Rails::Initializer.run do |config|" block in config/environment.rb

config.plugins = ["engines", "*"]



The Datetime Toolbocks provides a core stylesheets and in addition to several javascript files, so you'll need to include these two lines within your application's layout. Add the following lines:

<%= stylesheet_link_tag 'datetime_toolbocks', 'calendar-blue', :plugin => 'datetime_toolbocks' %>
<%= javascript_include_tag 'datetime_toolbocks', 'calendar', 'lang/calendar-en', 'calendar-setup', :plugin => 'datetime_toolbocks' %>
<%= javascript_include_tag 'prototype' %>



For any model (ex Event) that has a :date column, to utilize Datetime Toolbocks use toolbocks_date_select('event', 'start_date') as a helper within your view.

<%= toolbocks_date_select :model, :date_column, { :format => 'us', :autoRollOver => false} %>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: scott, 9 months ago