My favorites | Sign in
Project Home Wiki
Search
for
Documentation  

Featured
Updated Feb 4, 2010 by timchar...@gmail.com
  • Changing the date format - A small tutorial on how to use a different format other than the default. Also, how to implement your own date format, if one provided does not meet your needs.

Specific how-tos:

  • How to localize - If you need to change languages, here's how to approach it.

Third-party tutorials

If things still aren't making sense, try one of the following fabulous third-party tutorials

Comment by Ryan.War...@gmail.com, Aug 27, 2007

Wow. Nice plugin. And your js proves how little I know of the subject. I want to change the layout of the days of the week from SMTWTFS to SSMTWTF, typical corporate work week format. I couldn't make heads or tails of the loops iterating over cell_index. Where do all of the foo.build objects come from? body_div seems to be the root origin for all of these in your code, but I can't find an origin for the body_div object. I've grepped all of your source, prototype's, and googled.

Comment by xxdesmus, Mar 8, 2010

...the documentation for this really leaves some room for improvement.

Comment by project member timchar...@gmail.com, Mar 8, 2010

xxdesmus: great point. would you care to help improve it?

Comment by xxdesmus, Mar 8, 2010

If I could get it working (so I could then understand it a bit better) I'd be more than happy to contribute. I just can't even get it working yet though. I have a pop-up calendar so far, but I can't get the selected value to save to my variable. I'm using a form, and yes -- I'm new to RoR so I'm going to be a bit slow.

Comment by project member shih....@gmail.com, Mar 10, 2010

@xxdesmus: Since you are new to RoR, I recommend you download the demo at http://github.com/timcharper/calendar_date_select_demo and get it up and running in your local. It is currently running on Rails 2.2.2. I plan to upgrade it to run on a newer version after I resolve an issue.

Comment by juerggl...@gmail.com, Mar 11, 2010

Calendar does not pop up when in scrolled region.

The main window of my app has fixed height so the content scrolls in there. The according css is: #content {

clear: both; width: 980px; float: right; font-size: 0.8em;
padding-left: 20px;
padding-top: 5px; padding-bottom: 10px; padding-right: 10px; height: 660px; overflow: auto;
}

DateSelects? at the top of the content work find. But when content is scrolled down in browser (IE or FF) the calendar does not pop up (it looks as it has lost position).

How can I fix this?

BTW: I use the shape "blue".

Comment by juerggl...@gmail.com, Mar 11, 2010

Some additional information: I am afraid calendardateselect does something wrong: It creates

<div class="calendar_date_select" style="position: absolute; left: 611px; top: 1229px;">

ignoring the scrolled position of the content-div. Scrolling the content leaves the calendar at its absolute screen position and justs scrolls the content (and the the field calendar should hook at).

Comment by michael....@gmail.com, May 18, 2010

I have the same issue. The standard position is great in normal forms, but wherever they are inside scrolling divs it causes a problem. If there could be another option to always pop up the date picker next to the image would be really handy.

Comment by jcatt...@gmail.com, May 25, 2010

I can't seem to get this going in rails 3.0beta3

I've installed the gem and specified it in the Gemfile and restarted the server. The CalendarDateSelect constant is defined, but the helper methods are not available in the view, and the scripts/css have not been copied into /public.

Is this Just Not Gonna Work (tm), or am I Doing It Wrong (tm)?

Comment by sedanos...@gmail.com, Jul 13, 2010

jcattley, this is how I have it in my Gemfile, but I'm still having issues:

group :plugins do

gem 'calendar_date_select'
end

Comment by RayParke...@gmail.com, Aug 31, 2010

JCattley -- did you get this working as a gem? I have the same issue wherein I have all the helpers and such (I'm pretty sure), but the assets aren't copied over. No rake tasks are listed, etc.

Comment by ray.brad...@gmail.com, Aug 31, 2010

I seem to be missing something. I get this error: ActionController?::RoutingError? (No route matches "/stylesheets/calendar_date_select.css" with {:method=>:get}):

This is in the head of my layout: <%= stylesheet_link_tag "calendar_date_select" %>

Similar error appears for Javascript.

Ideas?

Comment by ekal...@gmail.com, Sep 7, 2010

Yep jonkernpa, this tutorial its very nice for people like me.

Regards

Comment by drobs...@gmail.com, Oct 1, 2010

Here is how I got this plugin working in my rails3 app.

http://dugganroberts.com/articles/2010/10/01/calendar_date_select-rails3/

Hope this helps at least one person.

Comment by zonet...@gmail.com, Jan 6, 2011

@drobsock: that helped me, and I'm one person.

Comment by Kirill.N...@gmail.com, Jan 31, 2011

Change ianli.org to ianli.com Correct http://ianli.com/site/HowTo/UseCalendarDateSelectRailsPlugin

Comment by jmigue...@gmail.com, Jul 19, 2011

i did gem install calendar_date_select, then in config/environments/development.rb i wrote config.gem "calendar_date_select"

now i'm always getting the error: undefined local variable or method `calendar_date_select_includes' for #<#<Class:0xa1de50c>:0xa1dc874>

Comment by jamese...@gmail.com, Mar 6, 2012

I love this date picker. It was very easy to install, simple to customize, and looks nice. Thanks for making this available to the masses!


Sign in to add a comment
Powered by Google Project Hosting