Forum: Ruby on Rails Calendar date picker for use with rails.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
27fa9937f07791744f0e072c7f7889b0?d=identicon&s=25 Alan Francis (Guest)
on 2006-01-20 13:37
Howdy folks,

As I was putting together a rough form for a rails app, I got to
thinking how much smoother (in my siytuation) a little calendar widget
would be than the default date picker selects.

Does anyone know if such a thing exists ?

I suspect it would have to be somewhat designed with rails in mind to
populate the right kind of post params for convenient use at the
controller end.   Without that, I guess a little controller magic to
unpack whatever format a generic javascript calendar widget generated,
wouldn't be too much trouble.

Might make a nice alternative to date_select.

Thoughts, suggestions(*), howls of derisive laughter welcomed.

Alan
(*)aside from the "great idea, you should get right on that"
variety...my javascript chops are nonexistent :-S
27fa9937f07791744f0e072c7f7889b0?d=identicon&s=25 Alan Francis (Guest)
on 2006-01-20 13:42
Alan Francis wrote:

> Does anyone know if such a thing exists ?
>

http://projects.exactlyoneturtle.com/date_picker/#

Doh!  Amazing what a difference searching for "date picker rails" made
over searching for "calendar widget rails".

Alan
C8a634a01a2c4508360874bff7fb1a7f?d=identicon&s=25 Kevin Olbrich (olbrich)
on 2006-01-20 14:15
Alan Francis wrote:
> Alan Francis wrote:
>
>> Does anyone know if such a thing exists ?
>>
>
> http://projects.exactlyoneturtle.com/date_picker/#
>
> Doh!  Amazing what a difference searching for "date picker rails" made
> over searching for "calendar widget rails".
>
> Alan

This one is pretty good too.... http://datebox.inimit.com/

It also lets you do things like "+1 week"

_Kevin
Cee38055ae36590c654c04c2d5cc2778?d=identicon&s=25 Sky Yin (cookoo)
on 2006-01-20 14:39
(Received via mailing list)
I prefer this one: http://www.dynarch.com/projects/calendar/
It's open sourced and with beautiful theme support.

On 1/20/06, Kevin Olbrich <kevin.olbrich@duke.edu> wrote:
> >
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Blog >>> http://spaces.msn.com/members/skyincookoo
Cb610750ee94ca103aef4b2dc7b1b768?d=identicon&s=25 Nick Stuart (Guest)
on 2006-01-20 15:07
(Received via mailing list)
Going to agree with Sky on this one. Just recently added this calendar
to a couple of apps of mine and its worked great!
82476266af9d460415d8f1fc16bb54ed?d=identicon&s=25 Jarkko Laine (jarkko)
on 2006-01-20 15:13
(Received via mailing list)
On 20.1.2006, at 15.29, Nick Stuart wrote:

> Going to agree with Sky on this one. Just recently added this calendar
> to a couple of apps of mine and its worked great!

The one Kevin mentioned uses the Dynarch calendar. In addition, it
supports some cool freehand input like "tomorrow" etc.

//jarkko

--
Jarkko Laine
http://jlaine.net
http://odesign.fi
9b7647d55df4584d7031130915556040?d=identicon&s=25 Will Briggs (Guest)
on 2006-01-20 15:46
(Received via mailing list)
I can ditto this one...  I'm using the Dynarch calendar in one of my
apps and it works extremely well.

-Will
4c1e3c1e624e37a94a82791a64496275?d=identicon&s=25 Peter Aszkenasy (mrpete)
on 2006-05-27 23:46
I've had a look at the Dynarch calendar and it looks really nice. I'm
new to rails  and I'm wondering how I can convert a scaffold form tied
to a table with with the normal default rails date selector to one with
the Dynarch Calendar so that it updates the datefield in the database?

Many thanks in advance
Ad91bce9c9a8c68b6942607e4721f74e?d=identicon&s=25 Beate Paland (Guest)
on 2006-05-28 00:02
(Received via mailing list)
Peter,

try the Bundled Resource Plugin:

http://blog.inquirylabs.com/index.php?s=Bundled+Re...

There is a helper for the Dynarch calendar.

Beate
4c1e3c1e624e37a94a82791a64496275?d=identicon&s=25 Peter Aszkenasy (mrpete)
on 2006-05-28 00:13
Hi Beate,

Thanks very much for that. As soon as I get it to work I'll post some
sample code.

Peter
5f23b06d22b84ec6c902bf390071a79c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-05-28 00:51
Peter Aszkenasy wrote:
> Hi Beate,
>
> Thanks very much for that. As soon as I get it to work I'll post some
> sample code.
>
> Peter

I think the Dynarch Calendar picker has been incorporated into the
Datebox Engine (see http://rails-engines.org)

_Kevin
4c1e3c1e624e37a94a82791a64496275?d=identicon&s=25 Peter Aszkenasy (mrpete)
on 2006-05-28 12:16
Kevin Olbrich wrote:
> Peter Aszkenasy wrote:
>> Hi Beate,
>>
>> Thanks very much for that. As soon as I get it to work I'll post some
>> sample code.
>>
>> Peter
>
> I think the Dynarch Calendar picker has been incorporated into the
> Datebox Engine (see http://rails-engines.org)
>
> _Kevin

Kevin

I've had a look at the rails engine version, it uses the following as
its engine,

http://datebox.inimit.com/

Also, its not clear from the documentation how you tie it to a database
table field.

Peter
53cca1f55d947a176d419736ab639f1e?d=identicon&s=25 Bala Paranj (Guest)
on 2006-05-28 17:59
(Received via mailing list)
Can this calendar be used with JSF?

--- Beate Paland <bpaland@gmail.com> wrote:

> Peter,
>
> try the Bundled Resource Plugin:
>
> http://blog.inquirylabs.com/index.php?s=Bundled+Re...
>
> There is a helper for the Dynarch calendar.
>
> Beate


http://www.ProblemSolvingSkill.net
Hone your problem-solving skills
4c1e3c1e624e37a94a82791a64496275?d=identicon&s=25 Peter Aszkenasy (mrpete)
on 2006-05-28 21:29
Hi Beate,

Many thanks for that. With rails 1.1.2 and Bundled Resource v 0.9 I was
able to get the following working. Here's the partial form for my test
app t1

<% require_bundle :dynarch_calendar %>
<%= error_messages_for 't1' %>
<!--[form:t1]-->
<p><label for="t1_start_date">Start date</label><br/>
<%= dynarch_date_select 't1', 'start_date' %></p>

<p><label for="t1_description">Description</label><br/>
<%= text_field 't1', 'description'  %></p>
<!--[eoform:t1]-->

And here's the associated layout file with all the necessary includes

<html>
<head>
  <title>T1s: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= javascript_include_tag :defaults %>
  <%= stylesheet_auto_link_tags %>
  <%= javascript_auto_include_tags %>
</head>
<body>

<p style="color: green"><%= flash[:notice] %></p>

<%= @content_for_layout %>

</body>
</html>

I've openned another thread to see if anyone else is using the
dynarch_date_select to see if I've got the above code right.

http://www.ruby-forum.com/topic/67304

Anyway, my code seems to work:)
This topic is locked and can not be replied to.