Datetime toolbocks plugin
Plugin details
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 documentationEdit plugin | (0 older versions) | Last edited by: scott, 9 months ago

