Topic: Jquery datepicker and Rails 3.1.3 SOLVED
Hi,
I am using rails 3.1.3 and ruby 1.9.3-p0 as well as postgresql 9.1.
I am trying to use Jquery' datepicker and I do have it working but just not to my satisfaction.
Here is what I have:
in my download file I have: css
development-bundle
js
and an index.html file that tells me all that I downloaded. I choose the LeFrog theme.
In the css folder we have LeFrog and under it we have the jquery-ui-1.8.16.custom.css file which i moved to the app/assets/stylesheets directory and then in the application.css file I have
*= require_self
*= require_tree .
*= require jquery-ui-1.8.16.custom.css ... this line I added.
Also under the LeFrog directory we have an images folder and I moved it's contents into app/assets/images.
in app/assets/javascripts/application.js I added these lines:
$(function() {
$('#employee_birth_date').datepicker();
$('#employee_hire_date').datepicker();
$('#employee_term_date').datepicker();
});
also I did add the //= require jquery-ui line.
I gathered all of this from researching online and the datepicker does work but it is translucent and it does not refelect the theme that I downloaded.
Furthermore I am not sure what I should do, and where I should put the host of other files that came with the download.
For instance, in the js folder in the download directory we have jquery-1.6.2.min.js and jquery-ui-1.8.16.custom.min.js
Does anyone know where I should put these two files?
Reading the index.html file it seems that they have all of the information related to the theme I downloaded.
Lastly, can someone tell me what I do with the development-bundle that came with the download?
I have done a number of days of reading and researching but I am no clearer today than what I was a couple of days ago, well, not true ... I did learn how to get the datepicker to work but just not the theme that I choose.
Thanks for any help, suggestions or pointers or even further research you could point me towards.
fuzzy.
Last edited by fuzzytom (2012-03-23 16:16:37)