Calendar date picker plugin

Hi I’m new to rails and trying to find a calendar picker plugin. I’ve
come across ‘calendardateselect’, but I can’t seem to figure out step 4
=P

The other one I tired is ‘activecalendar’ (does anyone know if this
project is maintained?) I tried using this one and I am getting the
following errors:

ArgumentError in Members#new

Showing app/views/members/new.html.erb where line #48 raised:

wrong number of arguments (4 for 3)

Extracted source (around line #48):

45:


46:


47: <%= f.label :bday %>

48: <%= f.date_select :bday %>
49:


50:


51: <%= f.label :last_visit_date %>

Is there something better out there, easier to use with no fuzz and
actually has some documentation?


Kind Regards,
Rajinder Y. | http://DevMentor.org | Do Good! - Share Freely

calendar_date_select is the easiest. Step 4 is just:
<%= calendar_date_select_includes “red” %> or whatever color you
want.

Me wrote:

calendar_date_select is the easiest. Step 4 is just:
<%= calendar_date_select_includes “red” %> or whatever color you
want.

unfortunately I don’t understand easy =P

  1. I included the following into my new.html.erb scaffold test code at
    the top

<%= javascript_include_tag :defaults %>
<%= calendar_date_select_includes %>

  1. Next I added to the of my layout html.erb file

<%= calendar_date_select_includes “red” %>

  1. Finally next to the date field in the form_for I have something like
    this:

    <%= f.label :bday %> <%= calendar_date_select_tag "e_date" %>
    <%= f.date_select :bday %>

Now when I stop/stop Webrick and refresh my page I get the following
error dialog box

“CalendarDateSelect Error: prototype could not be found…”

What prototype as I missing and where should it be added?

Rajinder Y. wrote:

<%= javascript_include_tag :defaults %>
<%= f.label :bday %> <%= calendar_date_select_tag "e_date" %> <br/>
<%= f.date_select :bday %>

Now when I stop/stop Webrick and refresh my page I get the following
error dialog box

“CalendarDateSelect Error: prototype could not be found…”

What prototype as I missing and where should it be added?

OK never mind, it mysteriously started to work now? I’ll play around
with it a bit more.

47: <%= f.label :bday %>

Rajinder Y. |http://DevMentor.org| Do Good! - Share Freely


Kind Regards,
Rajinder Y. | http://DevMentor.org | Do Good! - Share Freely

Rajinder Y. wrote:

Rajinder Y. wrote:

<%= javascript_include_tag :defaults %>
<%= f.label :bday %> <%= calendar_date_select_tag "e_date" %> <br/>
<%= f.date_select :bday %>

Now when I stop/stop Webrick and refresh my page I get the following
error dialog box

“CalendarDateSelect Error: prototype could not be found…”

What prototype as I missing and where should it be added?

Probably the prototype.js library itself. It’s included with Rails,
but you have to make sure the generated page brings it in with an
appropriate tag.

OK never mind, it mysteriously started to work now? I’ll play around
with it a bit more.

47: <%= f.label :bday %>

Rajinder Y. |http://DevMentor.org| Do Good! - Share Freely


Kind Regards,
Rajinder Y. | http://DevMentor.org | Do Good! - Share Freely

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]