私はレールビューでdatepickerを実装しようとしています。datepickerがレールで動作していません3
<%= f.label :start_date %>
<%= f.text_field :start_date,:id => "season_start_date" %>
マイapplication.html.erb: - - :
私の見解である
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js",
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js","application" %>
そして、私application.jsファイルには、次のようになります -
$(document).ready(function(ev){
$("#season_start_date").click(function(){
$('#season_start_date').datepicker();
});
});
そして、私の宝石ファイル: -
gem "jquery_datepicker"
gem 'jquery-rails'
あなたが唯一んクリックで打ち上げ日付ピッカーを必要としないあなたに
応答のためのshingaraありがとう。しかし、私はまだ日付を得ることができません –
あなたのjsコンソールにいくつかのエラーがありますか? – shingara
YEs Uncaught TypeError:Object [object Object]にメソッド 'datepicker'がありません –