Skip to content

Instantly share code, notes, and snippets.

@lando2319
Created August 4, 2013 04:22
Show Gist options
  • Select an option

  • Save lando2319/6149109 to your computer and use it in GitHub Desktop.

Select an option

Save lando2319/6149109 to your computer and use it in GitHub Desktop.
#Gemfile
group :assests do
...
gem 'jquery-ui-rails'
end
#app/assets/javascripts/application.js
//= require jquery.ui.datepicker
#app/assets/javascripts/message.js.coffee
jQuery ->
$('#message_date').datepicker ()
#app/assets/stylesheets/application.css
*= require jquery.ui.datepicker
#app/views/messages/show.html.erb
text_field_tag "messages[date]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment