Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

formtastic_calendar_date_select

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formtastic_calendar_date_select

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

h1. FormtasticCalendarDateSelect

Based on Paul Smith's Formtastic_Calendar (http://github.com/elandesign/formtastic_calendar), an extension for Formtastic[1] to generate lightweight javascript calendar date inputs using the CalendarDateSelect plugin[2]

h2. Example

Where Task#due_date is a :date field

<% semantic_form_for @task do |form| %>
  <% form.inputs do %>
    <%= form.input :due_date, :as => :calendardateselect %>
  <% end %>
<% end %>

h2. Dependencies

You must have the formtastic gem/plugin added to your application.

You must have the calendar_date_select gem/plugin added to your application.

(Tested with formtastic 0.9.7 and calendar_date_select 1.15)

h2. Todo

Test, test, test...

Attempt to port this to unobtrusive javascript, and provide graceful degradation if possible.

h2. References

fn1. "Formtastic @ GitHub":http://github.com/justinfrench/formtastic

fn2. "CalendarDateSelect":http://github.com/timcharper/calendar_date_select

Copyright (c) 2009 David Oshiro, released under the MIT license

FAQs

Package last updated on 13 Jan 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc