Fredrik Karlsson
2008-Mar-01 21:29 UTC
How do I get the CalendarDateSelect plugin to work i Rails 2.0.2
Hi, I am new to rails and found areally nice looking plugin for date selection here: http://code.google.com/p/calendardateselect/ I have installed it according to the instructions, but when I try to change one of the date selections to use the plugin, I get something like: undefined method `calendar_date_select_tag'' for #<ActionView::Base:0x176aa4c> Extracted source (around line #45): 42: </td> 43: <td> 44: <%= f.date_select :date_of_birth %> 45: <!-- <%= calendar_date_select_tag "e_date" %> --> 46: </td> 47: <td>City 48: </td> How do I do this? /Fredrik -- "Give up learning, and put an end to your troubles." --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff Coleman
2008-Mar-02 08:15 UTC
Re: How do I get the CalendarDateSelect plugin to work i Rails 2.0.2
Do you have the includes in your view? This should be either in your main view (application.html.erb, or in the specific view where you need the calendar): <%= calendar_date_select_includes "red" # or "blue", or "silver", or nil for the default! %> On Mar 1, 3:29 pm, "Fredrik Karlsson" <dargo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I am new to rails and found areally nice looking plugin for date selection here: > > http://code.google.com/p/calendardateselect/ > > I have installed it according to the instructions, but when I try to > change one of the date selections to use the plugin, I get something > like: > > undefined method `calendar_date_select_tag'' for #<ActionView::Base:0x176aa4c> > > Extracted source (around line #45): > > 42: </td> > 43: <td> > 44: <%= f.date_select :date_of_birth %> > 45: <!-- <%= calendar_date_select_tag "e_date" %> --> > 46: </td> > 47: <td>City > 48: </td> > > How do I do this? > > /Fredrik > > -- > "Give up learning, and put an end to your troubles."--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Fredrik Karlsson
2008-Mar-03 21:26 UTC
Re: How do I get the CalendarDateSelect plugin to work i Rails 2.0.2
Thanks! I don''t know what I did wrong, but reinserted teh same code I used before solved the problem. Thanks for making me try it again :-) /Fredrik On Sun, Mar 2, 2008 at 9:15 AM, Jeff Coleman <progressions-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Do you have the includes in your view? This should be either in your > main view (application.html.erb, or in the specific view where you > need the calendar): > > <%= calendar_date_select_includes "red" # or "blue", or "silver", or > nil for the default! %> > > > > > On Mar 1, 3:29 pm, "Fredrik Karlsson" <dargo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > I am new to rails and found areally nice looking plugin for date selection here: > > > > http://code.google.com/p/calendardateselect/ > > > > I have installed it according to the instructions, but when I try to > > change one of the date selections to use the plugin, I get something > > like: > > > > undefined method `calendar_date_select_tag'' for #<ActionView::Base:0x176aa4c> > > > > Extracted source (around line #45): > > > > 42: </td> > > 43: <td> > > 44: <%= f.date_select :date_of_birth %> > > 45: <!-- <%= calendar_date_select_tag "e_date" %> --> > > 46: </td> > > 47: <td>City > > 48: </td> > > > > How do I do this? > > > > /Fredrik > > > > -- > > "Give up learning, and put an end to your troubles." > > >-- "Give up learning, and put an end to your troubles." --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---