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: </p> 46: <p> 47: <%= f.label :bday %><br /> 48: <%= f.date_select :bday %> 49: </p> 50: <p> 51: <%= f.label :last_visit_date %><br />

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

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 %>

2) Next I added to the <head> of my layout html.erb file

  <%= calendar_date_select_includes "red" %>

3) Finally next to the date field in the form_for I have something like this:

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

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 Yadav wrote:

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 %>

2) Next I added to the <head> of my layout html.erb file

    <%= calendar_date_select_includes "red" %>

3) Finally next to the date field in the form_for I have something like this:

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

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.

Rajinder Yadav wrote:

Rajinder Yadav wrote:

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

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 <script> tag.

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

47: <%= f.label :bday %><br /> Rajinder Yadav |http://DevMentor.org| Do Good! - Share Freely

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

Best,