Skip to main content

All Questions

0 votes
1 answer
149 views

Calculate calendar days Rails where start time is 09:00 AM

I appreciate your help with the following: I am active in the rental industries. The idea is that a customer pays for the amount of calendar days, whereby the calendar day should be from 09:01 AM to ...
Jeroen Swart's user avatar
1 vote
2 answers
407 views

Set date_select with jquery

I've got this field in my form: <div class="field"> <%= f.label :date %><br> <%= f.date_select :date,{order: [:day, :month, :year]}, class: "datepicker task_date" ...
Yakalent's user avatar
  • 1,152
0 votes
3 answers
1k views

jQuery datepicker default format not working

This is what I have in my .js file: var ready; ready = function () { $.datepicker.setDefaults({ dateFormat: 'yy-mm-dd' }); }; $(document).ready(ready); But datepicker format is still ...
Pod Mays's user avatar
  • 2,593
0 votes
1 answer
1k views

Jquery Datepicker - Show the date based on the User's custom Timezone saved in database

In my Rails application, there is a requirement that a user can choose a working location and he should be able to work on that timezone in the application no matter where ever he is. So, a particular ...
Rajesh Omanakuttan's user avatar
0 votes
1 answer
94 views

Why is my index view not working when I implement datepicker in my rails app

Hi I am new to rails and would really appreciate some help, I am using the jQuery datepicker, the show view works however the index view doesn't, i get "undefined method `start_date' for nil:NilClass" ...
achilles77's user avatar
1 vote
1 answer
535 views

How to update a jquery datepicker in a partial in rails

I have a partial that has two datepickers to show the beginning and ending of data to be displayed in another partial. I also have a dropdown to determine the date ranges for some predetermined ...
mmr's user avatar
  • 14.9k
1 vote
2 answers
6k views

How to properly configure jquery-ui datepicker max/min range and initialize default from Rails column?

I'm using jquery-ui datepicker on a User DOB field in a Rails 3.2 app. I'm trying to achieve the following: restrict the range of dates that can be selected, max = today, min = 100 years ago. ...
Andy Harvey's user avatar
  • 12.7k
0 votes
1 answer
284 views

Using jQuery datepicker with Chronic

I'm trying to get a nice combination working for the strengths of the jQuery datepicker, and Chronic date parser for Ruby on Rails. The jQuery UI date picker is useful for selecting a date visually. ...
asc99c's user avatar
  • 3,905
0 votes
1 answer
818 views

How to get datepicker to be highlighted upon refresh

I have a datepicker that highlights a selected week. It is using an ajax request. Which is where I am having a problem. When I select a week i.e. 29/08/11 and the page refreshes the highlighted week ...
user avatar