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 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
calendar_date_select is the easiest. Step 4 is just: <%= calendar_date_select_includes "red" %> or whatever color you want. On Jan 31, 7:54 am, Rajinder Yadav <devguy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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?> > On Jan 31, 7:54 am, Rajinder Yadav <devguy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 <devguy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 FreelyBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.