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.
On Jan 31, 7:54 am, Rajinder Yadav <[email protected]> wrote:
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?
--
Kind Regards,
Rajinder Yadav |http://DevMentor.org| Do Good! - Share Freely
--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.