Skip to content

Instantly share code, notes, and snippets.

#
# This is using gem called simple_form by Jose Valim, but it can work with normal Rails calendar_select form inputs
#
<form....>
<%= f.input :target_date, :input_html => {:rel => '{"changeYear":true, "changeMonth":true, "minDate":"+1D", "maxDate":"+12M"}'} %>
</form>
@aquam8
aquam8 / 0_reuse_code.js
Created October 11, 2013 03:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console